source: documented-examples/trunk/authen-e/transform/pages/about.xsl@ 36246

Last change on this file since 36246 was 36246, checked in by anupama, 23 months ago

First attempt at porting authen-e DEC (documented example collection) to GS3. At present all but 2 docs (farming butterflies, fb33fe and fb34fe) are private and accessible only to users in the group: demo. This is as in the GS2 version of authen-e. The collection description text still needs to be updated and the collectionCofig.properties files for the 5 languages already supported should have the collection description split into multilines, but there's now an overridden about.xsl, as Dr Bainbridge described, that will ensure the coll description is loaded from teh collectionConfig.props file for the selected language where available. I've also worked out how GS3 allows displayItem static strings to be declared in props file to be called from the collectionConfig.xml file. An example is textsource, which replaced the GS2 macro _textsource_.

File size: 794 bytes
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <!--xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 extension-element-prefixes="java util"
8 exclude-result-prefixes="java util">-->
9
10 <xsl:template name="coll-description">
11 <!-- Only the chosen language's description comes through in the pageResponse,
12 so there's no need to choose the description for the selected language
13 as that's all the description available to us. -->
14 <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/displayItemList/displayItem[@name='description']"/>
15
16 </xsl:template>
17
18</xsl:stylesheet>
19
Note: See TracBrowser for help on using the repository browser.