Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.

If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping

Answers may be delayed for posts that do not include sufficient information.

Excluding media sub-element of a container when creating displays

Is it possible to exclude a sub-element of a container metadata when creating displays?

As a background, I have a container metadata for "Condition Reports" and one of its sub-elements is a media data type where we could upload and view a a complete softcopy of the condition report. As I was creating its display, I noticed that the media sub-element is still being seen in the display, even if I unchecked the 'Can be used in display' setting for it.

So far my display template goes something like this:

<unit><ifdef code="ca_objects.condition_incoming.condition_status"><b>Condition status:</b> ^ca_objects.condition_incoming.condition_status<br/></ifdef><ifdef code="ca_objects.condition_incoming.conservation_priority"><b>Conservation priority:</b> ^ca_objects.condition_incoming.conservation_priority<br/></ifdef></unit>

Is there something I could code so that the media sub-element won't be in the display anymore?

Thank you
775 x 452 - 61K


  • Are you making the whole display relativeTo the condition_incoming container?
  • edited September 22
    Hello Julia,

    Sorry for the delayed response. Yes, I'm trying to create a display relative to the condition_incoming container. I have since edited my code to:

    priority:</b> ^ca_objects.condition_incoming.conservation_priority<br/></ifdef>
    treatment/notes:</b> ^ca_objects.condition_incoming.suggested_treatment<br/></ifdef>
    by:</b> ^ca_objects.condition_incoming.examinedby
    by:</b> ^ca_objects.condition_incoming.notedentity
    event:</b> ^ca_objects.condition_incoming.relatedevent<br/></ifdef></unit>

    The 'Media' sub-element is still being displayed even if I didn't define it above, and did not enable Can be used in display.

    I also noticed that the 'Occurrences' and 'Entities' sub-elements are not being displayed.

    Thank you

  • What version are you running?

    Try enabling "debugging" in setup.php and using the display template tester that appears on the Summary screen. What is output for your displays?
  • We're running 1.7.5, and is on the cloud (Whirl-i-Gig)

    Right now the code displays the attached image when viewing an artwork's summary. 

    789 x 495 - 75K
Sign In or Register to comment.