# Location tracking options # (See http://docs.collectiveaccess.org/wiki/Location_tracking for details) # ----------------------------------- # --- # Movement-based storage location tracking # --- locationTrackingMode = ca_movements object_storage_location_tracking_relationship_type = storage_loc movement_storage_location_tracking_relationship_type = moved_to movement_object_tracking_relationship_type = part record_movement_information_when_moving_storage_location = 1 movement_storage_location_date_element = removal_date #movement_storage_location_date_element = effective_date original_storage_location_path_template = "app.conf L124 Location:^ca_object_representations.media.thumbnail ^ca_storage_locations.hierarchy.preferred_labels%delimiter=_?_
Movement: ^ca_movements.preferred_labels(^ca_movements.idno) ^ca_movements.movement_date " #---------------------------------- history_tracking_policies = { defaults = { ca_objects = current_location }, policies = { current_location = { name = _(Current location), table = ca_objects, elements = { #------------- ca_storage_locations = { __default__ = { date = ca_objects_x_storage_locations.effective_date, setInterstitialElementsOnAdd = [effective_date], useDatePicker = 0, template = "Location:
^ca_storage_locations.preferred_labels
(^ca_storage_locations.idno)
Movement Date: ^ca_objects_x_storage_locations.effective_date
L150
^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_?_
", trackingRelationshipType = related, restrictToRelationshipTypes = [related], color = "#cccc00", } }, #------------- ca_occurrences = { exhibition = { date = ca_occurrences.exhibition_date, setInterstitialElementsOnAdd = [effective_date], template = "^ca_occurrences.preferred_labels.name", }, __default__ = { date = ca_objects_x_occurrences.effective_date, setInterstitialElementsOnAdd = [effective_date], template = "^ca_occurrences.idno ^ca_occurrences.preferred_labels.name", } }, #------------- ca_loans = { __default__ = { date = ca_loans_x_objects.effective_date, setInterstitialElementsOnAdd = [effective_date], color = F78B8B, template = ^ca_loans.idno ^ca_loans.preferred_labels (^ca_loans.institution ^ca_loans.date)
COMMENTS: ^ca_loans_x_objects.movement_comments
, restrictToRelationshipTypes = [loan] } }, #------------- ca_movements = { __default__ = { date = ca_movements.removal_date, setInterstitialElementsOnAdd = [effective_date], template =" Location:
^ca_storage_locations.preferred_labels
(^ca_storage_locations.idno)
Movement Date: ^ca_movements.removal_date
L172
^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_?_
^ca_movements_x_storage_locations.original_path

Movement: ^ca_movements.preferred_labels.name (^ca_movements.idno)
Movement of
^ca_storage_locations.preferred_labels.name%delimiter=_?_
from:
^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_?_
    to:
^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_?_
", trackingRelationshipType = location, # useRelated = for browsing purposes log the current value as the first related item in this table useRelated = ca_storage_locations, # useRelatedRelationshipType = relationship type used when logging current value against related table useRelatedRelationshipType = location_tracking, # ca_movements_x_storage_locations relationship types for old and new parent locations originalLocationTrackingRelationshipType = moved_from, #original_location, newLocationTrackingRelationshipType = moved_to, #new_location, subLocationTrackingRelationshipType = moved_into, #sub_location } }, #------------- ca_object_checkouts = { __default__ = { date = ca_object_checkouts.checkout_date, setInterstitialElementsOnAdd = [checkout_date], useDatePicker = 0, template = "Location:
^ca_users.user_name
(^ca_object_checkouts.checkout_notes)
", trackingRelationshipType = Current, restrictToRelationshipTypes = [Current], color = "#c00c00", } }, #------------- }#elements }, #======== End Polcy current_location ========= #============================================= # Template to format the left pane # inspector_tracking_displays defined below: current_location_inspector = { name = _(Current Location), table = [ca_objects, ca_movements, ca_storage_locations], elements = { ca_objects = { __default__ = { template ="L270^ca_object_representations.media.thumbnail ^ca_storage_locations.preferred_labels
[^ca_storage_locations.hierarchy.preferred_labels%delimiter=_?_ ]

From Movement: ^ca_movements.preferred_labels.name[^ca_movements.idno]", } }, ca_movements = { __default__ = { template ="L280^ca_object_representations.media.thumbnail ^ca_storage_locations.preferred_labels
[^ca_storage_locations.hierarchy.preferred_labels%delimiter=_?_ ]

From Movement: ^ca_movements.preferred_labels.name[^ca_movements.idno]", } }, ca_storage_locations = { __default__ = { template ="L289^ca_object_representations.media.thumbnail ^ca_storage_locations.preferred_labels
[^ca_storage_locations.hierarchy.preferred_labels%delimiter=_?_ ]

Movement: ^ca_movements.preferred_labels.name[^ca_movements.idno]", } } } }, #============================================= object_location_reports = { name = _(Current location for Reports), table = ca_objects, elements = { ca_storage_locations = { __default__ = { template = "^ca_storage_locations.preferred_labels", color = "#cccc00" } }, ca_movements = { __default__ = { template ="^ca_storage_locations.preferred_labels ( ^ca_storage_locations.idno )", } } } }, object_location_hierarchy_reports = { name = _(Current location for Reports), table = ca_objects, elements = { ca_storage_locations = { __default__ = { template = "^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_?_", color = "#cccc00" } }, ca_movements = { __default__ = { template ="^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_?_", } } } } } } #------------------------- inspector_tracking_displays = { ca_objects = { __default__ = { policy = current_location_inspector, label = _(Current Location) } }, ca_movements = { __default__ = { policy = current_location_inspector, label = _(Location) } }, ca_storage_locations = { __default__ = { policy = current_location_inspector, label = _(Location) } } }