Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Rosetta

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Rosetta
    3. Knowledge Articles
    4. Adding metadata field order display logic to the viewer's " i " Information

    Adding metadata field order display logic to the viewer's " i " Information

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution
    • Product: Rosetta
    • Product Version: v5
    • Relevant for Installation Type: Local

     

     

    Description

    This display logic can be added to any metadata field.


    In this example we want the http link to a high resolution jpeg to display at the top of the "Descriptive Data - IE DC" window when you click on the " i " button.

    Resolution

     

    1. Connect to the Management module and select the appropriate institution

     

    NOTE: This is an institution-level configuration.

     

    NOTE: DC element must already exist in the ingest metadata in order to display in the viewer.

     

    2. Go to: Home > Deposits > Advanced Tools > Delivery XSL Files > Details > ie.xsl

     

    3. Click "Edit"

     

    4. Add the following code in the appropriate location in the file:

     

    NOTE: Asterisk in "xsl:for-each select=" below refers to each DC element (i.e. go through each DC record element)


              <div class="typeC">
                <div class="formDiv">
                  <xsl:apply-templates select="/metadata/ie_metadata/ie-dc/dc:record" />
                  <xsl:for-each select="/metadata/ie_metadata/ie-dc/dc:record/*">
                    <xsl:variable name="dcFieldName" select="local-name()" />
                    <xsl:if test="string(.)">
                      <xsl:choose>
                        <xsl:when test="contains($dcFieldName,&apos;fulltext&apos;)" />
                        <xsl:otherwise>
                          <div class="line clearfix width98">
                            <div title="Title" class="width20 fieldName">
                                </xsl:otherwise>
                              </xsl:choose>                                                                                                                                                                                                      

                                               

    5. Add the following code in the appropriate location in the file (towards the end):

     

      <xsl:template match="dc:record">
        <xsl:if test="dcterms:relationHighResolution">
          <div class="line clearfix width98">
            <div title="Title" class="width20 fieldName">High Resolution</div>
            <div class="width50">
              <xsl:element name="a">
                <xsl:attribute name="href">
                  <xsl:value-of select="dcterms:relationHighResolution" />
                </xsl:attribute>
                <xsl:attribute name="style">color:blue</xsl:attribute>
                <xsl:value-of select="dcterms:relationHighResolution" />
              </xsl:element>
            </div>
          </div>
        </xsl:if>
      </xsl:template>

     

    6. Click "Save"

     

    7. Clear your browser's cache

     

    8. Navigate to the IE and click "View", then " i " to confirm that  "dcterms:relationHighResolution" is listed at the top of the metadata display.

     

     

     


    • Article last edited: 20-Feb-2017
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Add an IP Address to Access Ex Libris Products Through Hosted Server Firewall
      • Update IE representation lock the IE and update never ends
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
      Product
      Rosetta
    2. Tags
      1. Display
      2. Metadata
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved