[7831] | 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"
|
---|
[20026] | 6 | xmlns:gslib="http://www.greenstone.org/skinning"
|
---|
[7831] | 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"/>
|
---|
[17019] | 16 |
|
---|
[18318] | 17 | <!-- the main page layout template is here -->
|
---|
[17019] | 18 | <xsl:template match="page">
|
---|
| 19 | <html>
|
---|
[18318] | 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>
|
---|
[18392] | 28 | <body>
|
---|
[17019] | 29 | <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
|
---|
[18392] | 30 | <div id="page-wrapper">
|
---|
[18318] | 31 | <xsl:apply-templates select="pageResponse"/>
|
---|
| 32 | <xsl:call-template name="greenstoneFooter"/>
|
---|
[17019] | 33 | </div>
|
---|
| 34 | </body>
|
---|
| 35 | </html>
|
---|
| 36 | </xsl:template>
|
---|
[7831] | 37 |
|
---|
[8532] | 38 | <xsl:template name="pageTitle">
|
---|
| 39 | <xsl:value-of select="/page/pageResponse/collection/displayItem[@name='name']"/>
|
---|
[7831] | 40 | </xsl:template>
|
---|
| 41 |
|
---|
[8532] | 42 | <!-- page specific style goes here -->
|
---|
| 43 | <xsl:template name="pageStyle"/>
|
---|
| 44 |
|
---|
| 45 |
|
---|
[7831] | 46 | <xsl:template match="pageResponse">
|
---|
| 47 | <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
|
---|
[18318] | 48 | <xsl:apply-templates select="collection"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
|
---|
[13254] | 49 |
|
---|
[7831] | 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>
|
---|
[13254] | 61 | <div class="document">
|
---|
[20232] | 62 | <xsl:if test="not(/page/pageRequest/paramList/param[@name='qt']) or /page/pageRequest/paramList/param[@name='qt']/@value = 0">
|
---|
[23570] | 63 | <xsl:if test="serviceList/service[@name='TextQuery']">
|
---|
| 64 | <xsl:apply-templates select="serviceList/service[@name='TextQuery']">
|
---|
| 65 | <xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
|
---|
| 66 | <xsl:call-template name="dividerBar"/>
|
---|
| 67 | </xsl:if>
|
---|
[20232] | 68 | </xsl:if>
|
---|
[13254] | 69 | </div>
|
---|
| 70 | <div>
|
---|
[18318] | 71 | <xsl:if test="displayItem[@name='description']">
|
---|
| 72 | <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.aboutcoll')"/></h3>
|
---|
| 73 | <p><xsl:value-of select="displayItem[@name='description']" disable-output-escaping='yes'/></p>
|
---|
| 74 | </xsl:if>
|
---|
| 75 | <xsl:apply-templates select="." mode="simplehelp"/>
|
---|
[13254] | 76 | </div>
|
---|
[7831] | 77 | </xsl:template>
|
---|
| 78 |
|
---|
[20026] | 79 |
|
---|
[7831] | 80 | </xsl:stylesheet>
|
---|
| 81 |
|
---|