source: greenstone3/trunk/web/interfaces/oran/transform/pages/classifier.xsl@ 19988

Last change on this file since 19988 was 19988, checked in by oranfry, 15 years ago

checking in a batch of changes to the oran skin. more work yet to do.

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 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
23 <!-- show the classifiers (title, subject, etc.) -->
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
33 <!-- this right sidebar -->
34 <div id="rightSidebar">
35 <!-- show the berry basket if it's turned on -->
36 <gslib:berryBasket/>
37 <xsl:text> </xsl:text>
38 </div>
39
40 <!--
41 show the clasifier results -
42 you can change the appearance of the results by editing
43 the two templates at the bottom of this file
44 -->
45 <ul id="results">
46 <xsl:apply-templates select="classifier/*"/>
47 </ul>
48 <div class="clear"><xsl:text> </xsl:text></div>
49
50 </xsl:template>
51
52
53 <!--
54 TEMPLATE FOR DOCUMENTS
55 -->
56 <xsl:template match="documentNode" priority="3">
57
58 <!-- show the document details -->
59 <li class="document">
60
61 <a>
62 <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"/></xsl:attribute>
63 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>
64 </a>
65 <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>
66
67 </li>
68
69 </xsl:template>
70
71
72 <!--
73 TEMPLATE FOR GROUPS OF DOCUMENTS
74 -->
75 <xsl:template match="classifierNode" priority="3">
76
77 <li class="shelf">
78
79 <a>
80 <xsl:attribute name="href">
81 <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>
82 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/>
83 </a>
84
85 <!-- show any documents or sub-groups in this group -->
86 <xsl:if test="documentNode|classifierNode">
87 <ul>
88 <xsl:apply-templates select="documentNode|classifierNode"/>
89 </ul>
90 </xsl:if>
91 </li>
92
93 </xsl:template>
94
95</xsl:stylesheet>
96
Note: See TracBrowser for help on using the repository browser.