Changeset 33590

Show
Ignore:
Timestamp:
22.10.2019 11:12:22 (3 weeks ago)
Author:
kjdon
Message:

added 'this colleciton contains X documents and was last build Y days ago' message to collection description template

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/etc/collectionConfig.xml

    r33542 r33590  
    3939     too, such as search, if wishing to display the link only in particular sections.--> 
    4040    <gsf:option name="RSS" value="true"/> 
     41    <!-- modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message --> 
     42    <xsl:template name="coll-description"> 
     43      <p><gslib:collectionDescriptionTextAndServicesLinks/></p> 
     44      <xsl:variable name="raw_date"><gslib:collectionMeta name="buildDate"/></xsl:variable> 
     45      <xsl:variable name="formatted_date"><xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/></xsl:variable> 
     46      <xsl:variable name="numdocs"><gslib:collectionMeta name="numDocs"/></xsl:variable> 
     47      <p><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/></p> 
     48    </xsl:template> 
    4149  </format> 
    4250  <search type="lucene">