Uploaded image for project: 'Providence'
  1. PROV-1355

Add display template syntax for getting related fields in an authority metadata element

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 1.5
    • Fix versions: 1.7
    • Components: Core Libraries
    • Labels:
      None

      Description

      When referencing authority metadata elements (ListAttributeValue, EntityAttributeValue and friends) in a display template it is currently only possible to get the display text of the referenced item.

      We need to add syntax to allow getting of arbitrary fields attached to the referenced item. For example, given an occurrence attribute on an object named "vesselType" we should be able to us this:

      ^ca_object.vesselType.hierarchy.preferred_labels.name

      to get the fill hierarchy of occurrences for the referenced occurrence.

      Similarly, if we have a loan record with an EntityAttributeValue of "approved_by" we should be able to do this:

      ^ca_loans.approved_by.lifedates

      to get life dates for the approver.

      A plain ca_objects.vesselTypes or ca_loans.approved_by should continue to return display text for the preferred label of the referenced item.

        Attachments

          Activity

            People

            • Assignee:
              Former user (Inactive)
              Reporter:
              Julia Weist
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: