root/greenstone3/trunk/web/interfaces/gs2/transform/about.xsl @ 18392

Revision 18392, 2.8 KB (checked in by kjdon, 20 months ago)

changes to keep in line with default interface. class removed from body tag, main div id changed from page to page-wrapper

  • Property svn:keywords set to Author Date Id Revision
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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  extension-element-prefixes="java util"
7  exclude-result-prefixes="java util">
8
9  <!-- style includes global params interface_name, library_name -->
10  <xsl:include href="style.xsl"/>
11  <xsl:include href="help-common.xsl"/>
12  <xsl:include href="query-common.xsl"/>
13  <xsl:include href="service-params.xsl"/>
14  <xsl:output method="html"/> 
15 
16  <!-- the main page layout template is here -->
17  <xsl:template match="page">
18    <html>
19      <head>
20        <title>
21          <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
22          <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
23        </title>
24        <xsl:call-template name="globalStyle"/>
25        <xsl:call-template name="pageStyle"/>
26      </head>
27      <body>
28        <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
29        <div id="page-wrapper">
30          <xsl:apply-templates select="pageResponse"/>
31          <xsl:call-template name="greenstoneFooter"/>                     
32        </div>
33      </body>
34    </html>
35  </xsl:template>
36
37  <xsl:template name="pageTitle">
38    <xsl:value-of select="/page/pageResponse/collection/displayItem[@name='name']"/> 
39  </xsl:template>
40
41  <!-- page specific style goes here -->
42  <xsl:template name="pageStyle"/>
43
44
45  <xsl:template match="pageResponse">
46    <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
47    <xsl:apply-templates select="collection"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
48
49  </xsl:template>
50
51  <xsl:template match="collection">
52    <xsl:param name="collName"/>
53    <xsl:call-template name="standardPageBanner">
54      <xsl:with-param name="collName" select="$collName"/>
55      <xsl:with-param name="pageType">about</xsl:with-param>
56    </xsl:call-template>
57    <xsl:call-template name="navigationBar">
58      <xsl:with-param name="collName" select="$collName"/>
59    </xsl:call-template>
60    <div class="document">
61      <xsl:if test="/page/pageRequest/paramList/param[@name='ct']/@value = 0">
62        <xsl:apply-templates select="serviceList/service[@name='TextQuery']">
63          <xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
64        <xsl:call-template name="dividerBar"/>
65      </xsl:if>
66    </div>
67    <div>
68      <xsl:if test="displayItem[@name='description']">
69        <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.aboutcoll')"/></h3>
70        <p><xsl:value-of select="displayItem[@name='description']" disable-output-escaping='yes'/></p>
71      </xsl:if>
72      <xsl:apply-templates select="." mode="simplehelp"/>
73    </div>     
74  </xsl:template>
75
76</xsl:stylesheet> 
77
Note: See TracBrowser for help on using the browser.