source: greenstone3/branches/customizingGreenstone3/web/ui/skins/oran/xsl/search.xsl@ 14712

Last change on this file since 14712 was 14712, checked in by dnk2, 17 years ago

dump of existing code

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