Changeset 38911 for documented-examples


Ignore:
Timestamp:
2024-04-09T11:42:46+12:00 (3 weeks ago)
Author:
kjdon
Message:

pass in args to description1a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documented-examples/trunk/marc-e/transform/pages/about.xsl

    r36275 r38911  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<xsl:stylesheet version="1.0"
    3     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">   
     3        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     4        xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
     5        xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
     6        xmlns:gslib="http://www.greenstone.org/skinning">
     7
    48   
    5     <xsl:template name="coll-description">
    6       <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='shortDescription']"/>
    7      
     9  <xsl:template name="coll-description">
     10    <xsl:variable name="args"><gslib:collectionMeta name="numDocs"/>;https://www.cs.waikato.ac.nz;https://www.waikato.ac.nz;library/collection/marc-e/document/D0s156</xsl:variable>
     11    <!-- want to pass in arguments to this key (numdocs + urls), so need to call getCollectionText directly, as args won't be filled out in displayItemList -->
     12    <xsl:copy-of select="util:getCollectionText($collName, $site_name,'collectionConfig', /page/@lang, 'description1a', $args)/node()"/>
    813      <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description1']"/>
    914      <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description2']"/>
Note: See TracChangeset for help on using the changeset viewer.