source: other-projects/tipple-android/i-greenstone-server-files/greenstone/webapps/greenstone3/interfaces/gs2/transform/about.xsl@ 26899

Last change on this file since 26899 was 26899, checked in by davidb, 11 years ago

Tipple reborn after Chris's Summer of Code 2013

  • Property svn:mime-type set to application/xml
File size: 3.0 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: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>
68 </xsl:if>
69 </div>
70 <div>
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"/>
76 </div>
77 </xsl:template>
78
79
80</xsl:stylesheet>
81
Note: See TracBrowser for help on using the repository browser.