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

Last change on this file since 13381 was 13267, checked in by shaoqun, 18 years ago

now replace table tags with div tages to make changing styles easier

  • 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 <xsl:include href="style.xsl"/>
10 <xsl:include href="classifiertools.xsl"/>
11 <xsl:include href="berrytools.xsl"/>
12
13 <xsl:output method="html"/>
14 <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
15
16 <xsl:template name="pageTitle">
17 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
18 </xsl:template>
19
20 <!-- page specific style goes here -->
21 <xsl:template name="pageStyle">
22 <!--<xsl:if test="$berryBaskets = 'true'">-->
23 <xsl:if test="$berrybasketswitch = 'on'">
24 <xsl:call-template name="berryStyleSheet"/>
25 <xsl:call-template name="js-library"/>
26 </xsl:if>
27 </xsl:template>
28
29
30 <xsl:template match="pageResponse">
31 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
32 <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
33 <xsl:call-template name="standardPageBanner">
34 <xsl:with-param name="collName" select="$collName"/>
35 </xsl:call-template>
36
37 <xsl:call-template name="navigationBar">
38 <xsl:with-param name="collName" select="$collName"/>
39 </xsl:call-template>
40
41 <div class="document">
42 <xsl:apply-templates select="service/classifierList">
43 <xsl:with-param name="collName" select="$collName"/>
44 <xsl:with-param name="serviceName" select="$serviceName"/>
45 </xsl:apply-templates>
46
47 <!--<xsl:if test="$berryBaskets = 'true'">-->
48 <xsl:if test="$berrybasketswitch = 'on'">
49 <xsl:call-template name="berrybasket" />
50 </xsl:if>
51 <xsl:apply-templates select="classifier">
52 <xsl:with-param name="collName" select="$collName"/>
53 <xsl:with-param name="serviceName" select="$serviceName"/>
54 </xsl:apply-templates>
55 </div>
56 </xsl:template>
57
58 <xsl:template match="classifierList">
59 <xsl:param name="collName"/>
60 <xsl:param name="serviceName"/>
61 <xsl:variable name="selected" select="/page/pageResponse/classifier/@name"/>
62 <div class="classifierlist">
63 <xsl:for-each select="classifier">
64 <div class="classifieritem">
65 <xsl:choose>
66 <xsl:when test="@name=$selected">
67 <xsl:value-of select="displayItem[@name='name']"/>
68 </xsl:when>
69 <xsl:otherwise>
70 <a class="classifierlink" href="{$library_name}?a=b&amp;rt=r&amp;s={$serviceName}&amp;c={$collName}&amp;cl={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></xsl:otherwise></xsl:choose>
71 </div>
72 </xsl:for-each>
73 </div>
74 </xsl:template>
75
76</xsl:stylesheet>
77
78
79
80
81
82
Note: See TracBrowser for help on using the repository browser.