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="classifiertools.xsl"/>
|
---|
12 |
|
---|
13 | <xsl:output method="html"/>
|
---|
14 |
|
---|
15 | <!-- the main page layout template is here -->
|
---|
16 | <xsl:template match="page">
|
---|
17 | <html>
|
---|
18 | <head>
|
---|
19 | <title>
|
---|
20 | <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
|
---|
21 | <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
|
---|
22 | </title>
|
---|
23 | <xsl:call-template name="globalStyle"/>
|
---|
24 | <xsl:call-template name="pageStyle"/>
|
---|
25 | </head>
|
---|
26 | <body class="bgimage">
|
---|
27 | <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
|
---|
28 | <div id="page">
|
---|
29 | <xsl:apply-templates select="pageResponse"/>
|
---|
30 | <xsl:call-template name="greenstoneFooter"/>
|
---|
31 | </div>
|
---|
32 | </body>
|
---|
33 | </html>
|
---|
34 | </xsl:template>
|
---|
35 |
|
---|
36 | <xsl:template name="pageTitle">
|
---|
37 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
|
---|
38 | </xsl:template>
|
---|
39 |
|
---|
40 | <!-- page specific style goes here -->
|
---|
41 | <xsl:template name="pageStyle"/>
|
---|
42 |
|
---|
43 | <xsl:template match="pageResponse">
|
---|
44 | <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
|
---|
45 | <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
|
---|
46 | <xsl:variable name="cl" select="/page/pageRequest/paramList/param[@name='cl']/@value"/>
|
---|
47 | <xsl:variable name="clTop">
|
---|
48 | <xsl:choose>
|
---|
49 | <xsl:when test="contains($cl, '.')"><xsl:value-of select="substring-before($cl, '.')"/></xsl:when>
|
---|
50 | <xsl:otherwise>
|
---|
51 | <xsl:value-of select="$cl"/>
|
---|
52 | </xsl:otherwise>
|
---|
53 | </xsl:choose>
|
---|
54 | </xsl:variable>
|
---|
55 | <xsl:call-template name="standardPageBanner">
|
---|
56 | <xsl:with-param name="collName" select="$collName"/>
|
---|
57 | <xsl:with-param name="pageType">browse</xsl:with-param>
|
---|
58 | <xsl:with-param name="clTop" select="$clTop"/>
|
---|
59 | </xsl:call-template>
|
---|
60 | <xsl:call-template name="navigationBar">
|
---|
61 | <xsl:with-param name="collName" select="$collName"/>
|
---|
62 | <xsl:with-param name="clTop" select="$clTop"/>
|
---|
63 | </xsl:call-template>
|
---|
64 | <div class="document">
|
---|
65 | <xsl:apply-templates select="classifier">
|
---|
66 | <xsl:with-param name="collName" select="$collName"/>
|
---|
67 | <xsl:with-param name="serviceName" select="$serviceName"/>
|
---|
68 | </xsl:apply-templates>
|
---|
69 | </div>
|
---|
70 | </xsl:template>
|
---|
71 |
|
---|
72 |
|
---|
73 | </xsl:stylesheet>
|
---|
74 |
|
---|
75 |
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|