source: greenstone3/trunk/web/ui/skins/oran/xsl/collectbrowse.xsl@ 16315

Last change on this file since 16315 was 16315, checked in by davidb, 16 years ago

Merging of skin work with the main trunk

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