source: greenstone3/trunk/web/ui/skins/oran/xsl/collectBrowse.xsl@ 16495

Last change on this file since 16495 was 16495, checked in by max, 16 years ago

Remove xalan namespace (not needed)

File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:gslib="http://www.greenstone.org/skinning">
6
7<xsl:import href="./util.xsl"/>
8
9<xsl:template match="/">
10 <html>
11 <head>
12 <title>
13 <gslib:metadataItem name="siteName" />
14 /
15 <gslib:metadataItem name="collectionName" />
16 </title>
17
18 <gslib:css/>
19 <gslib:js/>
20 </head>
21 <body>
22 <div id="container">
23
24 <div id="header">
25 <div class="title_minor">
26
27 <a href="{$site_homeUrl}">
28 <gslib:metadataItem name="siteName" />
29 </a>
30 </div>
31
32 <div class="title_major">
33 <gslib:metadataItem name="collectionName" />
34 </div>
35
36 <div id="tablist" class="linklist">
37 <ul>
38 <xsl:for-each select="$services">
39 <li>
40 <a href="">
41 <xsl:attribute name="href"> <gslib:service_url/> </xsl:attribute>
42 <xsl:attribute name="title"> <gslib:service_description/> </xsl:attribute>
43 <gslib:service_title/>
44 </a>
45 </li>
46 </xsl:for-each>
47 <li>
48 <a href="{$collection_homeUrl}">
49 Home
50 </a>
51 </li>
52 </ul>
53 </div>
54
55 <div class="quicksearchBox" >
56 <form method="get" name="quickSearch">
57 <input type="text" name="s1.query" value="{$search_query}"/>
58
59 <input type="submit" value="Quick Search"/>
60 <gslib:search_hiddenInputs/>
61 </form>
62 </div>
63 </div>
64
65 <div id="content" class="noSidebar">
66 <div id="subServiceList" class="linklist">
67 <ul>
68 <xsl:for-each select="$classifiers">
69 <li>
70 <xsl:choose>
71 <xsl:when test=". = $currentClassifier">
72 <gslib:classifier_title/>
73 </xsl:when>
74 <xsl:otherwise>
75 <a>
76 <xsl:attribute name="title"><gslib:classifier_description/></xsl:attribute>
77 <xsl:attribute name="href"><gslib:classifier_url/></xsl:attribute>
78
79 <gslib:classifier_title/>
80 </a>
81 </xsl:otherwise>
82 </xsl:choose>
83 </li>
84 </xsl:for-each>
85 </ul>
86 </div>
87
88 <div id="classifierData">
89 <ul>
90 <xsl:for-each select="$topLevelClassifierNodes">
91 <xsl:call-template name="classifierNode"/>
92 </xsl:for-each>
93 </ul>
94 </div>
95 </div>
96
97 <div id="footer" >
98 <gslib:uiItem name="collectionFooter" />
99 </div>
100 </div>
101 </body>
102 </html>
103</xsl:template>
104
105<!-- default browsing format statements -->
106
107<xsl:template name="classifierNode">
108 <li>
109 <xsl:attribute name="class">
110 <xsl:choose>
111 <xsl:when test="./classifierNode or ./documentNode">expandedNode</xsl:when>
112 <xsl:otherwise>collapsedNode</xsl:otherwise>
113 </xsl:choose>
114 </xsl:attribute>
115
116 <a>
117 <xsl:attribute name="href"><gslib:classifierNode_url/></xsl:attribute>
118 <gslib:classifierNode_title/>
119 </a>
120
121 <xsl:if test="./documentNode or ./classifierNode">
122 <ul>
123 <xsl:for-each select="./classifierNode">
124 <xsl:call-template name="classifierNode"/>
125 </xsl:for-each>
126
127 <xsl:for-each select="./documentNode">
128 <xsl:call-template name="documentNode"/>
129 </xsl:for-each>
130 </ul>
131 </xsl:if>
132 </li>
133</xsl:template>
134
135<xsl:template name="documentNode">
136 <li class="leafNode">
137 <a>
138 <xsl:attribute name="href"><gslib:documentNode_url/>&amp;ec=1</xsl:attribute>
139 <gslib:documentNode_title/>
140 </a>
141 </li>
142</xsl:template>
143
144
145</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.