User Tools

Site Tools


en:user:gs3_sample_interface_modifications

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user:gs3_sample_interface_modifications [2019/09/23 00:18] kjdonen:user:gs3_sample_interface_modifications [2019/09/23 22:52] kjdon
Line 18: Line 18:
 </code> </code>
  
-<gslib> elements are shortcuts to predefined templates, and can be found in web/interfaces/default/transform/gslib.xsl.+<gslib> elements are shortcuts to predefined templates, and can be found in web/interfaces/default/transform/gslib.xsl. See the [[en:user:gslib|gslib page]] for more details.
  
 Lets leave the collection description displayed as is, but output "This collection contains X documents, and was last built on Y". Lets leave the collection description displayed as is, but output "This collection contains X documents, and was last built on Y".
Line 27: Line 27:
    <gslib:collectionDescriptionTextAndServicesLinks/>    <gslib:collectionDescriptionTextAndServicesLinks/>
    <xsl:variable name="raw_date"><gslib:collectionMeta name="buildDate"/></xsl:variable>    <xsl:variable name="raw_date"><gslib:collectionMeta name="buildDate"/></xsl:variable>
-   The collection contains <gslib:collectionMeta name="numDocs"/> documents, and was last built on <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 0, /page/@lang)"/>.+   The collection contains <gslib:collectionMeta name="numDocs"/> documents, and was last  
 +   built on <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 0, /page/@lang)"/>.
 </xsl:template> </xsl:template>
 </code> </code>
  
-<gslib:collectionMeta> can retrieve metadata elements from the collection (as opposed to from documents).+<gslib:collectionMeta> can retrieve metadata elements from the collection (as opposed to from documents). Here we use it to retrieve "numDocs" metadata - the number of documents in the colleciton. 
 The buildDate metadata element is a timestamp, so is not user friendly. We can use one of our utility functions to format it. The buildDate metadata element is a timestamp, so is not user friendly. We can use one of our utility functions to format it.
  
en/user/gs3_sample_interface_modifications.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1