We're updating the issue view to help you get more done. 

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

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.

Environment

None

Assignee

User known

Reporter

Julia Weist

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure