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

Last change on this file since 8526 was 8526, checked in by kjdon, 19 years ago

tidied up the style stuff - now uses css. pageHead is now defined by style, with pageTitle and pageStyle in each page. got rid of the attribute sets and colors in style - uses css instead.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 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="pageTitle">
15 <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>
16 </xsl:template>
17
18 <!-- page specific style goes here -->
19 <xsl:template name="pageStyle"/>
20
21 <xsl:template match="pageResponse">
22 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
23 <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
24 </xsl:template>
25
26 <xsl:template match="collection|serviceCluster">
27 <xsl:param name="collName"/>
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>
34 <p/><xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
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>
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/>
53 <xsl:if test="service">
54 <table border='0' cellspacing='4'>
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'">
64 <tr><td class="brownbutton"><a class="brownbutton" href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a></td><td><xsl:value-of select="displayItem[@name='description']"/></td></tr>
65 </xsl:if>
66 </xsl:for-each>
67 </table>
68 </xsl:if>
69 <xsl:call-template name="dividerBar"/>
70 </xsl:template>
71
72</xsl:stylesheet>
73
Note: See TracBrowser for help on using the repository browser.