source: main/branches/64_bit_Greenstone/greenstone3/web/interfaces/oran/transform/pages/classifier.xsl@ 24007

Last change on this file since 24007 was 24007, checked in by sjm84, 13 years ago

Updating this branch to match the latest Greenstone3 changes

File size: 3.1 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 xmlns:gslib="http://www.greenstone.org/skinning"
7 extension-element-prefixes="java util"
8 exclude-result-prefixes="java util">
9
10 <!-- use the 'main' layout -->
11 <xsl:include href="layouts/main.xsl"/>
12
13 <!-- set page title -->
14 <xsl:template name="pageTitle"><gslib:serviceName/></xsl:template>
15
16 <!-- set page breadcrumbs -->
17 <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/> <gslib:collectionNameLinked/><gslib:rightArrow/></xsl:template>
18
19 <!-- the page content -->
20 <xsl:template match="/page/pageResponse">
21
22 <!-- show the classifiers if more than one (title, subject, etc.) -->
23 <!--<xsl:if test="service/classifierList/classifier[2]">
24 <div id="classifierList" class="navList">
25 <ul>
26 <xsl:for-each select="service/classifierList/classifier">
27 <li><gslib:classifierLink/></li>
28 </xsl:for-each>
29 </ul>
30 <div class="clear"><xsl:text> </xsl:text></div>
31 </div>
32 </xsl:if>-->
33
34 <!-- this right sidebar -->
35 <xsl:if test="$berryBasketOn">
36 <div id="rightSidebar">
37 <!-- show the berry basket if it's turned on -->
38 <gslib:berryBasket/>
39 <xsl:text> </xsl:text>
40 </div>
41 </xsl:if>
42
43 <!--
44 show the clasifier results -
45 you can change the appearance of the results by editing
46 the two templates at the bottom of this file
47 -->
48 <ul id="results">
49 <xsl:apply-templates select="classifier/*"/>
50 </ul>
51 <div class="clear"><xsl:text> </xsl:text></div>
52
53 </xsl:template>
54
55
56 <!--
57 TEMPLATE FOR DOCUMENTS
58 -->
59 <xsl:template match="documentNode" priority="3">
60
61 <!-- show the document details -->
62 <li class="document">
63
64 <a>
65 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&amp;d=<xsl:value-of select="@nodeID"/>&amp;dt=<xsl:value-of select="@docType"/>&amp;p.a=b&amp;p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;ed=1</xsl:attribute>
66 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>
67 </a>
68 <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>
69
70 </li>
71
72 </xsl:template>
73
74
75 <!--
76 TEMPLATE FOR GROUPS OF DOCUMENTS
77 -->
78 <xsl:template match="classifierNode" priority="3">
79
80 <li class="shelf">
81
82 <a>
83 <xsl:attribute name="href">
84 <xsl:value-of select="$library_name"/>?a=b&amp;rt=r&amp;s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&amp;cl=<xsl:value-of select='@nodeID'/><xsl:if test="classifierNode|documentNode">.pr</xsl:if></xsl:attribute>
85 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>
86 </a>
87
88 <!-- show any documents or sub-groups in this group -->
89 <xsl:if test="documentNode|classifierNode">
90 <ul>
91 <xsl:apply-templates select="documentNode|classifierNode"/>
92 </ul>
93 </xsl:if>
94 </li>
95
96 </xsl:template>
97
98</xsl:stylesheet>
99
Note: See TracBrowser for help on using the repository browser.