Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: How can I change what is displayed in XMLUI for a particular collection?

...

Code Block
<xsl:template name="disable_front-page-search" match="dri:div[@id='aspect.discovery.SiteViewer.div.front-page-search']">
</xsl:template>

How can I change what is displayed in XMLUI for a particular collection?

If you want items in a particular collection to be rendered differently (add/remove/modify elements) than in the rest of the repository, you can use this recipe.

Code Block
<xsl:variable name='mycollection'><xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:trail[@target='/handle/123456789/1234']"/></xsl:variable>
 
<xsl:template ...>
    ...
 
    <xsl:if test="$mycollection">
        <p>This item belongs to collection 123456789/1234.</p>
    </xsl:if>
 
    ...
</xsl:template>

I'm getting 'relation "bi_5_dis" does not exist' (or any other number)

...