Location working....contents not

What would cause history_tracking_chronology and ca_objects_location to be correctly show an objects current location, but.... history_tracking_current_contents does NOT contain the object.


I'm trying to use Movement based tracking. It had been working...I might have broken it somewhere and just noticed. PAW git/develop.

Here's the app.conf excerpt:

Comments

  • Try running caUtils reload-current-values-for-history-tracking-policies

  • Finally I got it working!

    Oh my, after much much trouble I discovered some typo's in my app.conf. In particular, I discovered that comments (#.....) do NOT work within a structure: i.e.

    # This comment is ok

    locationTrackingMode = ca_movements # This comment I think is OK

     elements = {            

                     ca_storage_locations = {

                           __default__ = {

                               date = ca_objects_x_storage_locations.effective_date, # This comment will blow things up

                               setInterstitialElementsOnAdd = [effective_date],

                               useDatePicker = 0,

    ...

    ...

  • Seth, shall I use this new feature also with v1.7.16?

    I recently updated to this version and tracking stopped working.


    These are my settings (in app.conf)

    # -----------------------------------

    # Location tracking options

    # (See http://docs.collectiveaccess.org/wiki/Location_tracking for details)

    # -----------------------------------


    # ---

    # Direct object-location reference storage location tracking

    # (also set this for movement-based storage location tracking)

    # ---

    #

    object_storage_location_tracking_relationship_type = related


    # ---

    # Movement-based storage location tracking

    # ---

    #

    movement_storage_location_tracking_relationship_type = destination

    movement_object_tracking_relationship_type = part

    record_movement_information_when_moving_storage_location = 0

    movement_storage_location_date_element = planned_removal_date  


    current_location_criteria = {

    ca_movements = {

    movement_exhibition = {

    date = planned_removal_date, 

    template = <unit relativeTo="ca_movements">^ca_movements.type_id:<br><unit relativeTo="ca_movements_x_storage_locations" delimiter=";" restrictToRelationshipTypes="destination">

    <l>^ca_movements_x_storage_locations.coll_spec_mov</l>

    </unit></unit> },

    movement_laboratory = { 

    date = planned_removal_date,

    template = <unit relativeTo="ca_movements">^ca_movements.type_id:<br><unit relativeTo="ca_movements_x_storage_locations" delimiter=";" restrictToRelationshipTypes="destination">

    <l>^ca_storage_locations.hierarchy.preferred_labels.name%maxLevelsFromBottom=2&delimiter=_➔_</l> <br/>

    <more>(</more>^ca_movements_x_storage_locations.coll_spec_mov<ifdef code="ca_movements_x_storage_locations.coll_spec_mov">)</ifdef>

    </unit></unit> },

    movement_temporary = { 

    date = planned_removal_date,

    template = <unit relativeTo="ca_movements">^ca_movements.type_id:<br><unit relativeTo="ca_movements_x_storage_locations" delimiter=";" restrictToRelationshipTypes="destination">

    <l>^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_➔_</l> <br/>

    <more>(</more>^ca_movements_x_storage_locations.coll_spec_mov<ifdef code="ca_movements_x_storage_locations.coll_spec_mov">)</ifdef>

    </unit></unit> },

    movement_permanent = { 

    date = planned_removal_date,

    template = <unit relativeTo="ca_movements">^ca_movements.type_id:<br><unit relativeTo="ca_movements_x_storage_locations" delimiter=";" restrictToRelationshipTypes="destination">

    <l>^ca_storage_locations.hierarchy.preferred_labels.name%delimiter=_➔_</l> <br/>

    <more>(</more>^ca_movements_x_storage_locations.coll_spec_mov<ifdef code="ca_movements_x_storage_locations.coll_spec_mov">)</ifdef>

    </unit></unit> }

    }

    }


    and in browse.conf:

    current_location = {

    type = location,

    restrict_to_types = [po_inv],


    group_mode = none,

    collapse = {

    ca_movements/movement_exhibition = _("On exhibition"),

    ca_movements/movement_laboratory = _("In laboratory"),

    ca_movements/movement_temporary = _("Out of place"),

    ca_movements/movement_permanent = _("On place")

    },

    include_none_option = No Location Specified,

    multiple = 1,

    label_singular = _("current location"),

    label_plural = _("current locations")

    },

Sign In or Register to comment.