source: greenstone3/trunk/web/interfaces/gs2/transform/about.xsl@ 20232

Last change on this file since 20232 was 20232, checked in by kjdon, 15 years ago

to decide whether search form is displayed on about page, use qt arg. if not there or equals 0, then display teh form, otherwise don't.

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