[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"/>
|
---|
| 13 |
|
---|
[8526] | 14 | <xsl:template name="pageTitle">
|
---|
| 15 | <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>
|
---|
[4047] | 16 | </xsl:template>
|
---|
| 17 |
|
---|
[8526] | 18 | <!-- page specific style goes here -->
|
---|
| 19 | <xsl:template name="pageStyle"/>
|
---|
| 20 |
|
---|
[4047] | 21 | <xsl:template match="pageResponse">
|
---|
[4712] | 22 | <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
|
---|
[4047] | 23 | <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
|
---|
| 24 | </xsl:template>
|
---|
[4712] | 25 |
|
---|
| 26 | <xsl:template match="collection|serviceCluster">
|
---|
| 27 | <xsl:param name="collName"/>
|
---|
[5119] | 28 | <xsl:call-template name="standardPageBanner">
|
---|
| 29 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 30 | </xsl:call-template>
|
---|
| 31 | <xsl:call-template name="navigationBar">
|
---|
| 32 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 33 | </xsl:call-template>
|
---|
[6240] | 34 | <p/><xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
|
---|
[4712] | 35 | <p/><xsl:apply-templates select="serviceList">
|
---|
| 36 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 37 | </xsl:apply-templates>
|
---|
| 38 | </xsl:template>
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | <xsl:template match="serviceList">
|
---|
| 42 | <xsl:param name="collName"/>
|
---|
| 43 | <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.services')"/></h2>
|
---|
[7473] | 44 | <xsl:choose>
|
---|
| 45 | <xsl:when test="service">
|
---|
| 46 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.servicehelp')"/>
|
---|
| 47 | </xsl:when>
|
---|
| 48 | <xsl:otherwise>
|
---|
| 49 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.noservices')"/>
|
---|
| 50 | </xsl:otherwise>
|
---|
| 51 | </xsl:choose>
|
---|
| 52 | <p/>
|
---|
[4880] | 53 | <xsl:if test="service">
|
---|
[5119] | 54 | <table border='0' cellspacing='4'>
|
---|
[4712] | 55 | <xsl:for-each select="service">
|
---|
| 56 | <xsl:variable name="action"><xsl:choose>
|
---|
| 57 | <xsl:when test="@type='query'">q</xsl:when>
|
---|
| 58 | <xsl:when test="@type='browse'">b</xsl:when>
|
---|
| 59 | <xsl:when test="@type='process'">pr</xsl:when>
|
---|
| 60 | <xsl:when test="@type='applet'">a</xsl:when>
|
---|
| 61 | <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
|
---|
| 62 | </xsl:choose></xsl:variable>
|
---|
| 63 | <xsl:if test="$action !='DO_NOT_DISPLAY'">
|
---|
[8526] | 64 | <tr><td class="brownbutton"><a class="brownbutton" href="{$library_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a></td><td><xsl:value-of select="displayItem[@name='description']"/></td></tr>
|
---|
[4712] | 65 | </xsl:if>
|
---|
| 66 | </xsl:for-each>
|
---|
| 67 | </table>
|
---|
| 68 | </xsl:if>
|
---|
[5119] | 69 | <xsl:call-template name="dividerBar"/>
|
---|
[4712] | 70 | </xsl:template>
|
---|
[4047] | 71 |
|
---|
| 72 | </xsl:stylesheet>
|
---|
| 73 |
|
---|