[4047] | 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"
|
---|
[4712] | 5 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
| 6 | extension-element-prefixes="java util"
|
---|
| 7 | exclude-result-prefixes="java util">
|
---|
[4047] | 8 |
|
---|
[17017] | 9 | <!-- style includes global params interface_name, library_name -->
|
---|
[4047] | 10 | <xsl:include href="style.xsl"/>
|
---|
[4883] | 11 | <xsl:include href="classifiertools.xsl"/>
|
---|
[12015] | 12 | <xsl:include href="berrytools.xsl"/>
|
---|
| 13 |
|
---|
[17017] | 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 | <div id="globalwrapper">
|
---|
| 29 | <xsl:call-template name="response" />
|
---|
| 30 | <xsl:call-template name="greenstoneFooter"/>
|
---|
| 31 | </div>
|
---|
| 32 | </body>
|
---|
| 33 | </html>
|
---|
| 34 | </xsl:template>
|
---|
| 35 |
|
---|
[12152] | 36 | <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
|
---|
[4872] | 37 |
|
---|
[8526] | 38 | <xsl:template name="pageTitle">
|
---|
| 39 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
|
---|
[4047] | 40 | </xsl:template>
|
---|
| 41 |
|
---|
[8526] | 42 | <!-- page specific style goes here -->
|
---|
[12015] | 43 | <xsl:template name="pageStyle">
|
---|
[12152] | 44 | <!--<xsl:if test="$berryBaskets = 'true'">-->
|
---|
| 45 | <xsl:if test="$berrybasketswitch = 'on'">
|
---|
[12028] | 46 | <xsl:call-template name="berryStyleSheet"/>
|
---|
| 47 | <xsl:call-template name="js-library"/>
|
---|
| 48 | </xsl:if>
|
---|
[12015] | 49 | </xsl:template>
|
---|
[8526] | 50 |
|
---|
| 51 |
|
---|
[4047] | 52 | <xsl:template match="pageResponse">
|
---|
[4712] | 53 | <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
|
---|
[4047] | 54 | <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
|
---|
[12028] | 55 | <xsl:call-template name="standardPageBanner">
|
---|
| 56 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 57 | </xsl:call-template>
|
---|
[13267] | 58 |
|
---|
[5119] | 59 | <xsl:call-template name="navigationBar">
|
---|
| 60 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 61 | </xsl:call-template>
|
---|
[13267] | 62 |
|
---|
[13505] | 63 | <div id="content">
|
---|
[13267] | 64 | <xsl:apply-templates select="service/classifierList">
|
---|
| 65 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 66 | <xsl:with-param name="serviceName" select="$serviceName"/>
|
---|
| 67 | </xsl:apply-templates>
|
---|
| 68 |
|
---|
[12152] | 69 | <!--<xsl:if test="$berryBaskets = 'true'">-->
|
---|
| 70 | <xsl:if test="$berrybasketswitch = 'on'">
|
---|
[12028] | 71 | <xsl:call-template name="berrybasket" />
|
---|
[13267] | 72 | </xsl:if>
|
---|
[12028] | 73 | <xsl:apply-templates select="classifier">
|
---|
| 74 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 75 | <xsl:with-param name="serviceName" select="$serviceName"/>
|
---|
| 76 | </xsl:apply-templates>
|
---|
[13267] | 77 | </div>
|
---|
[4047] | 78 | </xsl:template>
|
---|
| 79 |
|
---|
| 80 | <xsl:template match="classifierList">
|
---|
| 81 | <xsl:param name="collName"/>
|
---|
| 82 | <xsl:param name="serviceName"/>
|
---|
[4712] | 83 | <xsl:variable name="selected" select="/page/pageResponse/classifier/@name"/>
|
---|
[13505] | 84 | <ul id="classifierlist">
|
---|
[4047] | 85 | <xsl:for-each select="classifier">
|
---|
| 86 | <xsl:choose>
|
---|
| 87 | <xsl:when test="@name=$selected">
|
---|
[13546] | 88 | <li id="activeclassifier"><xsl:value-of select="displayItem[@name='name']"/></li>
|
---|
[4047] | 89 | </xsl:when>
|
---|
| 90 | <xsl:otherwise>
|
---|
[13546] | 91 | <li><a href="{$library_name}?a=b&rt=r&s={$serviceName}&c={$collName}&cl={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></li></xsl:otherwise></xsl:choose>
|
---|
| 92 |
|
---|
[4712] | 93 | </xsl:for-each>
|
---|
[13505] | 94 | </ul>
|
---|
[13267] | 95 | </xsl:template>
|
---|
[4872] | 96 |
|
---|
[4047] | 97 | </xsl:stylesheet>
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 |
|
---|
| 102 |
|
---|
| 103 |
|
---|