Changeset 30859

Show
Ignore:
Timestamp:
10.10.2016 14:48:05 (3 years ago)
Author:
kjdon
Message:

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

Files:
1 modified

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"/>