source: trunk/gsdl3/web/interfaces/default/transform/about.xsl@ 5131

Last change on this file since 5131 was 5130, checked in by kjdon, 21 years ago

small modifications to the about page

  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 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 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
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageHead">
15 <head>
16 <title>
17 <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/><xsl:text> </xsl:text>
18 </title>
19 </head>
20 </xsl:template>
21
22 <xsl:template match="pageResponse">
23 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
24 <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
25 </xsl:template>
26
27 <xsl:template match="collection|serviceCluster">
28 <xsl:param name="collName"/>
29 <xsl:call-template name="standardPageBanner">
30 <xsl:with-param name="collName" select="$collName"/>
31 </xsl:call-template>
32 <xsl:call-template name="navigationBar">
33 <xsl:with-param name="collName" select="$collName"/>
34 </xsl:call-template>
35 <p/><xsl:value-of select="displayItem[@name='description']"/>
36 <p/><xsl:apply-templates select="serviceList">
37 <xsl:with-param name="collName" select="$collName"/>
38 </xsl:apply-templates>
39 </xsl:template>
40
41
42 <xsl:template match="serviceList">
43 <xsl:param name="collName"/>
44 <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.services')"/></h2>
45 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.servicehelp')"/>
46 <p/>
47 <xsl:if test="service">
48 <table border='0' cellspacing='4'>
49 <xsl:for-each select="service">
50 <xsl:variable name="action"><xsl:choose>
51 <xsl:when test="@type='query'">q</xsl:when>
52 <xsl:when test="@type='browse'">b</xsl:when>
53 <xsl:when test="@type='process'">pr</xsl:when>
54 <xsl:when test="@type='applet'">a</xsl:when>
55 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
56 </xsl:choose></xsl:variable>
57 <xsl:if test="$action !='DO_NOT_DISPLAY'">
58 <tr><td xsl:use-attribute-sets="td-brownbutton"><a style="text-decoration:none" href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><b><font color='{$colour-button-text}'><xsl:value-of select="displayItem[@name='name']"/></font></b></a></td><td><xsl:value-of select="displayItem[@name='description']"/></td></tr>
59 </xsl:if>
60 </xsl:for-each>
61 </table>
62 </xsl:if>
63 <xsl:call-template name="dividerBar"/>
64 </xsl:template>
65
66
67</xsl:stylesheet>
68
Note: See TracBrowser for help on using the repository browser.