source: trunk/gsdl3/web/interfaces/default/transform/classifier.xsl@ 6690

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

removed a divider bar, enlarged the text for the classification names

  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 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 <xsl:include href="style.xsl"/>
10 <xsl:include href="classifiertools.xsl"/>
11
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageHead">
15 <head>
16 <title><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></title>
17 </head>
18 </xsl:template>
19
20 <xsl:template match="pageResponse">
21 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
22 <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
23 <xsl:call-template name="standardPageBanner">
24 <xsl:with-param name="collName" select="$collName"/>
25 </xsl:call-template>
26 <p/>
27 <xsl:call-template name="navigationBar">
28 <xsl:with-param name="collName" select="$collName"/>
29 </xsl:call-template>
30 <p/>
31 <xsl:apply-templates select="service/classifierList">
32 <xsl:with-param name="collName" select="$collName"/>
33 <xsl:with-param name="serviceName" select="$serviceName"/>
34 </xsl:apply-templates>
35 <p/>
36 <xsl:apply-templates select="classifier">
37 <xsl:with-param name="collName" select="$collName"/>
38 <xsl:with-param name="serviceName" select="$serviceName"/>
39 </xsl:apply-templates>
40 </xsl:template>
41
42 <xsl:template match="classifierList">
43 <xsl:param name="collName"/>
44 <xsl:param name="serviceName"/>
45 <xsl:variable name="selected" select="/page/pageResponse/classifier/@name"/>
46 <table width='100%'><tr>
47 <xsl:for-each select="classifier">
48 <xsl:choose>
49 <xsl:when test="@name=$selected">
50 <td align='center'><font size="+1"><xsl:value-of select="displayItem[@name='name']"/></font></td>
51 </xsl:when>
52 <xsl:otherwise>
53 <td align='center'><a href="{$library_name}?a=b&amp;rt=r&amp;s={$serviceName}&amp;c={$collName}&amp;cl={@name}"><font size="+1"><xsl:value-of select="displayItem[@name='name']"/></font></a></td></xsl:otherwise></xsl:choose>
54 </xsl:for-each>
55 </tr></table>
56 </xsl:template>
57
58</xsl:stylesheet>
59
60
61
62
63
64
Note: See TracBrowser for help on using the repository browser.