Changeset 19926
- Timestamp:
- 2009-06-26T13:26:04+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/sites/localsite/collect/gberg/transform/about.xsl
r18461 r19926 4 4 xmlns:java="http://xml.apache.org/xslt/java" 5 5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 6 xmlns:gslib="http://www.greenstone.org/skinning" 6 7 extension-element-prefixes="java util" 7 8 exclude-result-prefixes="java util"> … … 12 13 <xsl:output method="html"/> 13 14 14 15 <!-- the main page layout template is here --> 15 16 <xsl:template match="page"> 16 17 17 <xsl:choose> 18 18 <!-- if we are using the classic GS2 look and feel use this template otherwise use the default GS3 look and feel template --> 19 19 <xsl:when test="$interface_name = 'gs2'"> 20 21 22 23 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->24 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>25 26 27 28 29 30 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>31 <div id="page">32 <xsl:apply-templates select="pageResponse"/>33 <xsl:call-template name="greenstoneFooter"/>34 </div>35 36 20 <html> 21 <head> 22 <title> 23 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 24 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 25 </title> 26 <xsl:call-template name="globalStyle"/> 27 <xsl:call-template name="pageStyle"/> 28 </head> 29 <body class="bgimage"> 30 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 31 <div id="page"> 32 <xsl:apply-templates select="pageResponse"/> 33 <xsl:call-template name="greenstoneFooter"/> 34 </div> 35 </body> 36 </html> 37 37 </xsl:when> 38 <!-- default gs3 mode --> 39 <xsl:otherwise> 40 <html> 41 <head> 42 <title> 43 <gslib:aboutCollectionPageTitle/> 44 </title> 45 <link rel="stylesheet" href="interfaces/default/style/core.css" type="text/css"/> 46 </head> 47 48 <body><gslib:textDirectionAttribute/> 38 49 39 <xsl:otherwise> 40 <html> 41 <head> 42 <title> 43 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 44 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 45 </title> 46 <xsl:call-template name="globalStyle"/> 47 <xsl:call-template name="pageStyle"/> 48 </head> 49 <body> 50 <div id="page-wrapper"> 51 <xsl:call-template name="response" /> 52 <xsl:call-template name="greenstoneFooter"/> 53 </div> 54 </body> 55 </html> 50 <div id="page-wrapper"> 51 <gslib:displayErrorsIfAny/> 52 53 <div id="banner"> 54 <p> 55 <gslib:collectionHomeLinkWithLogoIfAvailable/> 56 </p> 57 <ul id="bannerlist"> 58 <li><gslib:homeButtonTop/></li> 59 <li><gslib:helpButtonTop/></li> 60 <li><gslib:preferencesButtonTop/></li> 61 </ul> 62 </div> 63 64 <!--If some services are available for the current collection display the navigation bar--> 65 <xsl:choose> 66 <xsl:when test="serviceList/service"> 67 <div id="navbar"> 68 <ul id="navbarlist"> 69 <gslib:servicesNavigationBar/> 70 </ul> 71 </div> 72 </xsl:when> 73 <!--Otherwise simply display a blank divider bar--> 74 <xsl:otherwise> 75 <div class="divbar"><gslib:noTextBar/></div> 76 </xsl:otherwise> 77 </xsl:choose> 78 79 <div id="content"> 80 <!--Display the description text of the current collection, 81 and if some services are available then create a list 82 of links for each service within a <ul id="servicelist"> element.--> 83 <gslib:collectionDescriptionTextAndServicesLinks/> 84 </div> 85 86 <div id="footer"> 87 <div class="divbar"><gslib:poweredByGS3TextBar/></div> 88 </div> 89 </div> 90 </body> 91 </html> 56 92 </xsl:otherwise> 57 93 </xsl:choose> 58 94 </xsl:template> 59 95 60 96 61 97 … … 72 108 </xsl:template> 73 109 74 <xsl:template match="collection"> 110 <!-- this is for gs2 mode --> 111 <xsl:template match="collection" priority="5"> 112 <xsl:if test="$interface_name = 'gs2'"> 75 113 <xsl:variable name="collName" select="@name"/> 76 114 <xsl:call-template name="standardPageBanner"> … … 80 118 <xsl:call-template name="navigationBar"> 81 119 <xsl:with-param name="collName" select="$collName"/> 82 </xsl:call-template> 120 </xsl:call-template> 121 </xsl:if> 83 122 <p/><xsl:value-of select="displayItem[@name='description']" disable-output-escaping='yes'/> 84 123 <p/><xsl:apply-templates select="documentList">
Note:
See TracChangeset
for help on using the changeset viewer.