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&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>&p.a=b&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&rt=r&s=<xsl:value-of select="/page/pageResponse/service/@name"/>&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&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 |
|
---|