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. IIIF and Universal Viewer METADATA customization

    IIIF and Universal Viewer METADATA customization

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Question
    2. Answer
    • Product: Rosetta
    • Product Version: 5.5

     

    Question

    How to configure the Metadata shown in the IIIF Viewer?

    Answer

    Modify the mets2manifest.xsl available in Deposits: Delivery XSL Files

    The xsl mets2manifest has a section called IE_METADATA. The viewer takes all the md defined here and presents it in viewer.

    For example below we added the dc:type section:

     

    <xsl:template name="IE_METADATA">

                  <xsl:for-each select="/mets:mets/mets:dmdSec[@ID=$IE_DMD_ID]/mets:mdWrap/mets:xmlData/dc:record/dc:creator |

                                        /mets:mets/mets:dmdSec[@ID=$IE_DMD_ID]/mets:mdWrap/mets:xmlData/dc:record/dcterms:creator ">

                         {<xsl:value-of select="$LABEL" />Author", <xsl:value-of select="$VALUE" />

                         <xsl:value-of select="." />"}

                <xsl:if test="position()!=last() or count(//dc:type) > 0 or count(//dcterms:type) > 0">, </xsl:if>

                  </xsl:for-each>

                  <xsl:for-each select="/mets:mets/mets:dmdSec[@ID=$IE_DMD_ID]/mets:mdWrap/mets:xmlData/dc:record/dc:type |

                                        /mets:mets/mets:dmdSec[@ID=$IE_DMD_ID]/mets:mdWrap/mets:xmlData/dc:record/dcterms:type ">

                         {<xsl:value-of select="$LABEL" />Type", <xsl:value-of select="$VALUE" />

                         <xsl:value-of select="." />"}

                <xsl:if test="position()!=last() or count(//dc:subject) > 0 or count(//dcterms:subject) > 0">, </xsl:if>

                  </xsl:for-each>

                  <xsl:for-each select="/mets:mets/mets:dmdSec[@ID=$IE_DMD_ID]/mets:mdWrap/mets:xmlData/dc:record/dc:subject |

                                        /mets:mets/mets:dmdSec[@ID=$IE_DMD_ID]/mets:mdWrap/mets:xmlData/dc:record/dcterms:subject">

                         {<xsl:value-of select="$LABEL" />Subject", <xsl:value-of select="$VALUE" />

                  <xsl:value-of select="." />"}

             <xsl:if test="position()!=last()">, </xsl:if>

                  </xsl:for-each>

                  ]

           </xsl:template>

     


    • Article last edited: 20-Nov-2018
    View article in the Exlibris Knowledge Center
    1. Back to top
      • IEs failing to index due to a huge significant property
      • IIIF Manifest Delivery Fails
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
    2. Tags
      This page has no tags.
    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