source: greenstone3/trunk/web/ui/skins/oran/xsl/search.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.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet version="1.0"
4xmlns:gslib="http://www.greenstone.org/skinning"
5xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6
7<xsl:import href="./util.xsl"/>
8<xsl:output method="html"/>
9
10
11<xsl:template match="/">
12 <html>
13 <head>
14 <title>
15 <gslib:metadataItem name="siteName" />
16 /
17 <gslib:metadataItem name="collectionName" />
18 </title>
19
20 <gslib:css/>
21 <gslib:js/>
22 </head>
23 <body>
24 <div id="container">
25
26 <div id="header">
27 <div class="title_minor">
28
29 <a href="{$site_homeUrl}">
30 <gslib:metadataItem name="siteName" />
31 </a>
32 </div>
33
34 <div class="title_major">
35 <gslib:metadataItem name="collectionName" />
36 </div>
37
38 <div id="tablist" class="linklist">
39 <ul>
40 <xsl:for-each select="$services">
41 <li>
42 <a href="">
43 <xsl:attribute name="href"> <gslib:service_url/> </xsl:attribute>
44 <xsl:attribute name="title"> <gslib:service_description/> </xsl:attribute>
45 <gslib:service_title/>
46 </a>
47 </li>
48 </xsl:for-each>
49 <li>
50 <a href="{$collection_homeUrl}">
51 Home
52 </a>
53 </li>
54 </ul>
55 </div>
56
57 <div class="quicksearchBox" >
58 <form method="get" name="quickSearch">
59 <input type="text" name="s1.query" value="{$search_query}"/>
60
61 <input type="submit" value="Quick Search"/>
62 <gslib:search_hiddenInputs/>
63 </form>
64 </div>
65 </div>
66
67 <div id="content" class="noSidebar">
68
69 <xsl:if test="$search_query != ''">
70 <xsl:choose>
71 <xsl:when test="$search_docsReturned = 0">
72 <div class="searchSummary">
73 Your search - <em><gslib:search_query/></em> - did not return any results.
74 </div>
75 </xsl:when>
76 <xsl:otherwise>
77 <div class="searchSummary">
78 Results <em><gslib:search_startIndex/></em> to <em><gslib:search_endIndex/></em>
79 of about <em><gslib:search_docsReturned/></em>
80 for
81 <xsl:for-each select="$search_queryTerms">
82 <a>
83 <xsl:attribute name="title">
84 found in <gslib:search_queryTerm_freq/> documents
85 </xsl:attribute>
86 <gslib:search_queryTerm_text />
87 </a>
88 </xsl:for-each>
89 </div>
90
91 <div class="searchResults">
92 <ul>
93 <xsl:for-each select="$search_results">
94 <li class="leafNode">
95 <gslib:metadata name="ancestors_*: *_Title"/> /
96 <br/>
97 <a>
98 <xsl:attribute name="href"><gslib:documentNode_url/>&amp;ec=1</xsl:attribute>
99
100 <gslib:documentNode_title/>
101 </a>
102 </li>
103 </xsl:for-each>
104 </ul>
105 </div>
106 </xsl:otherwise>
107 </xsl:choose>
108 </xsl:if>
109 </div>
110
111 <div id="footer" >
112 <gslib:uiItem name="collectionFooter" />
113 </div>
114 </div>
115 </body>
116 </html>
117</xsl:template>
118
119
120
121</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.