Changeset 30859


Ignore:
Timestamp:
2016-10-10T14:48:05+13:00 (5 years ago)
Author:
kjdon
Message:

added a template for displaying collection metadata: eg <gslib:collectionMeta name='numDocs'/>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl

    r30841 r30859  
    7777  </xsl:template>
    7878 
     79  <xsl:template name="collectionMeta">
     80    <xsl:param name="name"/>
     81    <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name=$name]"/>
     82  </xsl:template>
     83
    7984  <!-- text to get the name of the current service ("Browse","Search" etc) -->
    8085  <xsl:template name="serviceName">
     
    500505    <xsl:apply-templates select="pageResponse/collection|serviceCluster"/>
    501506  </xsl:template>
     507 
    502508  <xsl:template match="collection|serviceCluster">
    503509    <xsl:value-of select="displayItemList/displayItem[@name='description']" disable-output-escaping="yes"/>
Note: See TracChangeset for help on using the changeset viewer.