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 |
|
---|
67 | <xsl:if test="$search_query != ''">
|
---|
68 | <xsl:choose>
|
---|
69 | <xsl:when test="$search_docsReturned = 0">
|
---|
70 | <div class="searchSummary">
|
---|
71 | Your search - <em><gslib:search_query/></em> - did not return any results.
|
---|
72 | </div>
|
---|
73 | </xsl:when>
|
---|
74 | <xsl:otherwise>
|
---|
75 | <div class="searchSummary">
|
---|
76 | Results <em><gslib:search_startIndex/></em> to <em><gslib:search_endIndex/></em>
|
---|
77 | of about <em><gslib:search_docsReturned/></em>
|
---|
78 | for
|
---|
79 | <xsl:for-each select="$search_queryTerms">
|
---|
80 | <a>
|
---|
81 | <xsl:attribute name="title">
|
---|
82 | found in <gslib:search_queryTerm_freq/> documents
|
---|
83 | </xsl:attribute>
|
---|
84 | <gslib:search_queryTerm_text />
|
---|
85 | </a>
|
---|
86 | </xsl:for-each>
|
---|
87 | </div>
|
---|
88 |
|
---|
89 | <div class="searchResults">
|
---|
90 | <ul>
|
---|
91 | <xsl:for-each select="$search_results">
|
---|
92 | <li class="leafNode">
|
---|
93 | <gslib:metadata name="ancestors_*: *_Title"/> /
|
---|
94 | <br/>
|
---|
95 | <a>
|
---|
96 | <xsl:attribute name="href"><gslib:documentNode_url/>&ec=1</xsl:attribute>
|
---|
97 |
|
---|
98 | <gslib:documentNode_title/>
|
---|
99 | </a>
|
---|
100 | </li>
|
---|
101 | </xsl:for-each>
|
---|
102 | </ul>
|
---|
103 | </div>
|
---|
104 | </xsl:otherwise>
|
---|
105 | </xsl:choose>
|
---|
106 | </xsl:if>
|
---|
107 | </div>
|
---|
108 |
|
---|
109 | <div id="footer" >
|
---|
110 | <gslib:uiItem name="collectionFooter" />
|
---|
111 | </div>
|
---|
112 | </div>
|
---|
113 | </body>
|
---|
114 | </html>
|
---|
115 | </xsl:template>
|
---|
116 |
|
---|
117 |
|
---|
118 |
|
---|
119 | </xsl:stylesheet>
|
---|