[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 |
|
---|
[4880] | 9 | <!-- style includes global params interface_name, library_name -->
|
---|
[4047] | 10 | <xsl:include href="style.xsl"/>
|
---|
| 11 |
|
---|
| 12 | <xsl:output method="html"/>
|
---|
[17017] | 13 |
|
---|
[18316] | 14 | <!-- the main page layout template is here -->
|
---|
[17017] | 15 | <xsl:template match="page">
|
---|
[18316] | 16 | <html>
|
---|
| 17 | <head>
|
---|
| 18 | <title>
|
---|
| 19 | <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
|
---|
| 20 | <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
|
---|
| 21 | </title>
|
---|
| 22 | <xsl:call-template name="globalStyle"/>
|
---|
| 23 | <xsl:call-template name="pageStyle"/>
|
---|
| 24 | </head>
|
---|
| 25 | <body>
|
---|
[18388] | 26 | <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
|
---|
| 27 | <div id="page-wrapper">
|
---|
[18316] | 28 | <xsl:call-template name="response" />
|
---|
| 29 | <xsl:call-template name="greenstoneFooter"/>
|
---|
| 30 | </div>
|
---|
| 31 | </body>
|
---|
| 32 | </html>
|
---|
[17017] | 33 | </xsl:template>
|
---|
[4047] | 34 |
|
---|
[8526] | 35 | <xsl:template name="pageTitle">
|
---|
| 36 | <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>
|
---|
[4047] | 37 | </xsl:template>
|
---|
| 38 |
|
---|
[8526] | 39 | <!-- page specific style goes here -->
|
---|
| 40 | <xsl:template name="pageStyle"/>
|
---|
| 41 |
|
---|
[4047] | 42 | <xsl:template match="pageResponse">
|
---|
[18316] | 43 | <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
|
---|
[4047] | 44 | <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
|
---|
[18316] | 45 | </xsl:template>
|
---|
[4712] | 46 |
|
---|
| 47 | <xsl:template match="collection|serviceCluster">
|
---|
| 48 | <xsl:param name="collName"/>
|
---|
[5119] | 49 | <xsl:call-template name="standardPageBanner">
|
---|
| 50 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 51 | </xsl:call-template>
|
---|
| 52 | <xsl:call-template name="navigationBar">
|
---|
| 53 | <xsl:with-param name="collName" select="$collName"/>
|
---|
[13267] | 54 | </xsl:call-template>
|
---|
[13505] | 55 | <div id="content">
|
---|
[18316] | 56 | <xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
|
---|
| 57 | <xsl:apply-templates select="serviceList">
|
---|
| 58 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 59 | </xsl:apply-templates>
|
---|
[13267] | 60 | </div>
|
---|
[4712] | 61 | </xsl:template>
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 | <xsl:template match="serviceList">
|
---|
| 65 | <xsl:param name="collName"/>
|
---|
[13267] | 66 | <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.services')"/></h3>
|
---|
[7473] | 67 | <xsl:choose>
|
---|
| 68 | <xsl:when test="service">
|
---|
| 69 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.servicehelp')"/>
|
---|
| 70 | </xsl:when>
|
---|
| 71 | <xsl:otherwise>
|
---|
| 72 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.noservices')"/>
|
---|
| 73 | </xsl:otherwise>
|
---|
| 74 | </xsl:choose>
|
---|
[13267] | 75 |
|
---|
[4880] | 76 | <xsl:if test="service">
|
---|
[18316] | 77 | <ul id="servicelist">
|
---|
| 78 | <xsl:for-each select="service">
|
---|
| 79 | <xsl:variable name="action"><xsl:choose>
|
---|
[4712] | 80 | <xsl:when test="@type='query'">q</xsl:when>
|
---|
| 81 | <xsl:when test="@type='browse'">b</xsl:when>
|
---|
| 82 | <xsl:when test="@type='process'">pr</xsl:when>
|
---|
| 83 | <xsl:when test="@type='applet'">a</xsl:when>
|
---|
| 84 | <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
|
---|
| 85 | </xsl:choose></xsl:variable>
|
---|
[18316] | 86 | <xsl:if test="$action !='DO_NOT_DISPLAY'">
|
---|
| 87 | <li><a href="{$library_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li>
|
---|
[4712] | 88 | </xsl:if>
|
---|
[13505] | 89 | </xsl:for-each>
|
---|
| 90 | </ul>
|
---|
[18316] | 91 | </xsl:if>
|
---|
[13505] | 92 | </xsl:template>
|
---|
[4047] | 93 |
|
---|
| 94 | </xsl:stylesheet>
|
---|
| 95 |
|
---|