Changeset 33590


Ignore:
Timestamp:
2019-10-22T11:12:22+13:00 (5 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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">
Note: See TracChangeset for help on using the changeset viewer.