1 | package query
|
---|
2 |
|
---|
3 |
|
---|
4 | #######################################################################
|
---|
5 | # Macros whose values are set from within the server at runtime. These
|
---|
6 | # are here only for reference and to set default values if required.
|
---|
7 | #######################################################################
|
---|
8 |
|
---|
9 | _quotedquery_ {}
|
---|
10 | _freqmsg_ {}
|
---|
11 | _resultline_ {}
|
---|
12 | _thisfirst_ {}
|
---|
13 | _thislast_ {}
|
---|
14 | _nextfirst_ {}
|
---|
15 | _nextlast_ {}
|
---|
16 | _prevfirst_ {}
|
---|
17 | _prevlast_ {}
|
---|
18 |
|
---|
19 | #######################################################################
|
---|
20 | # https
|
---|
21 | #######################################################################
|
---|
22 |
|
---|
23 | _httpiconthispage_ {_httpiconhsearch_}
|
---|
24 | _widthiconthispage_ {_widthiconhsearch_}
|
---|
25 | _heighticonthispage_ {_heighticonhsearch_}
|
---|
26 |
|
---|
27 | _httpiconhsearch_ {_httpimg_/h\_search.gif}
|
---|
28 | _httpiconhsearch_ [l=mi] {_httpimg_/mh\_srch.gif}
|
---|
29 | _widthhsearch_ {200}
|
---|
30 | _heighthsearch_ {57}
|
---|
31 |
|
---|
32 |
|
---|
33 | #######################################################################
|
---|
34 | # icons
|
---|
35 | #######################################################################
|
---|
36 |
|
---|
37 | _iconthispage_ {<img src="_httpiconthispage_" alt="_texticonthispage_" width="_widthiconthispage_" height="_heighticonthispage_">}
|
---|
38 | _iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}
|
---|
39 |
|
---|
40 | _iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">}
|
---|
41 | _iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}
|
---|
42 |
|
---|
43 | # _iconnext_ and _iconprev_ are overridden in this package as we
|
---|
44 | # don't want alt text here
|
---|
45 | _iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
|
---|
46 | _iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
|
---|
47 |
|
---|
48 | #######################################################################
|
---|
49 | # images
|
---|
50 | #######################################################################
|
---|
51 |
|
---|
52 | _imagethispage_ {_iconthispage_}
|
---|
53 |
|
---|
54 |
|
---|
55 | #######################################################################
|
---|
56 | # page content
|
---|
57 | #######################################################################
|
---|
58 |
|
---|
59 | _pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
|
---|
60 |
|
---|
61 | _content_ {
|
---|
62 | <center>
|
---|
63 | _navigationbar_
|
---|
64 | </center>
|
---|
65 | _queryform_
|
---|
66 | _If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
|
---|
67 | <small>
|
---|
68 | _freqmsg_
|
---|
69 | _textpostprocess_</small><br>
|
---|
70 | _resultline_
|
---|
71 | ,<center>_iconblankbar_</center>)<br>
|
---|
72 | }
|
---|
73 |
|
---|
74 | _queryform_ {
|
---|
75 | <!-- query form -->
|
---|
76 | <form name=QueryForm method=get action="_gwcgi_">
|
---|
77 |
|
---|
78 | <input type=hidden name="a" value="q">
|
---|
79 | <input type=hidden name="e" value="_compressedoptions_">
|
---|
80 | <input type=hidden name="r" value="1">
|
---|
81 |
|
---|
82 | <center>
|
---|
83 | <table><tr><td>
|
---|
84 | <nobr>
|
---|
85 | _textselect_<br>
|
---|
86 | </nobr>
|
---|
87 | </td></tr><tr><td>
|
---|
88 | <nobr>
|
---|
89 | <input type="text" name="q" value="_cgiargq_" size="50">
|
---|
90 | <input type="submit" value="_textbeginsearch_">
|
---|
91 | </nobr>
|
---|
92 | </td></tr></table>
|
---|
93 | </center>
|
---|
94 | </form>
|
---|
95 | <!-- end of query form -->
|
---|
96 | }
|
---|
97 |
|
---|
98 | # we want to put the links to previous/next pages of results
|
---|
99 | # in the footer
|
---|
100 | _pagefooterextra_ {
|
---|
101 | <center>
|
---|
102 | <table cellspacing=0 cellpadding=0 width=_pagewidth_>
|
---|
103 | <tr>
|
---|
104 | <td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
|
---|
105 | <td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
|
---|
106 | </tr></table>
|
---|
107 | </center>
|
---|
108 | }
|
---|
109 |
|
---|
110 | #######################################################################
|
---|
111 | # English text
|
---|
112 | #######################################################################
|
---|
113 |
|
---|
114 | _textquerytitle_ {_If_(_thislast_,results _thisfirst_ - _thislast_ for query: _cgiargq_,No matches for query: _cgiargq_}
|
---|
115 | _textnoquerytitle_ {Search page}
|
---|
116 |
|
---|
117 | _texticonthispage_ {search}
|
---|
118 | _textsome_ {_If_(_cgiargb_,ranked,some)}
|
---|
119 | _textall_ {_If_(_cgiargb_,boolean,all)}
|
---|
120 | _texticonqueryresultsbar_ {}
|
---|
121 | _textfreqmsg1_ {Word count: }
|
---|
122 | _textpostprocess_ {_If_(_quotedquery_,<br><i>post-processed to find _quotedquery_</i>
|
---|
123 | )}
|
---|
124 |
|
---|
125 | _textmorethan_ {More than }
|
---|
126 | _textapprox_ {About }
|
---|
127 | _textnodocs_ {No documents matched the query.}
|
---|
128 | _text1doc_ {1 document matched the query.}
|
---|
129 | _textlotsdocs_ {documents matched the query.}
|
---|
130 | _textmatches_ {Matches }
|
---|
131 | _textbeginsearch_ {Begin Search}
|
---|
132 |
|
---|
133 | # the textselect macro may need to be overridden for some collections
|
---|
134 | # _hselection_, _jselection_ and _nselection_ are set from within the server
|
---|
135 | # some or all of them may remain unset
|
---|
136 | _textselect_ {_If_(_cgiargb_,_textadvancedsearch_,_textsimplesearch_)}
|
---|
137 |
|
---|
138 | _textsimplesearch_ {Search for _If_(_hselection_, _hselection_)_If_(_jselection_,_textjselect_)_If_(_nselection_, in _nselection_ language)
|
---|
139 | which contain _querytypeselection_ of the words}
|
---|
140 |
|
---|
141 | _textadvancedsearch_ {Search_If_(_hselection_, _hselection_)_If_(_jselection_,_textjselect_)_If_(_nselection_, in _nselection_ language)
|
---|
142 | using _querytypeselection_ query}
|
---|
143 |
|
---|
144 | _textjselect_ {_If_(_hselection_, of) _jselection_}
|
---|
145 |
|
---|
146 | _querytypeselection_ {
|
---|
147 | <select name="t">
|
---|
148 | <option value="1"_If_(_cgiargt_, selected)>_textsome_
|
---|
149 | <option value="0"_If_(_cgiargt_,, selected)>_textall_
|
---|
150 | </select>
|
---|
151 | }
|
---|
152 |
|
---|
153 | _textstemon_ { (ignoring word endings)}
|
---|
154 |
|
---|
155 |
|
---|
156 | #######################################################################
|
---|
157 | # Maori text
|
---|
158 | #######################################################################
|
---|
159 |
|
---|
160 | _texticonthispage_ [l=mi] {rapu}
|
---|
161 | _textsome_ [l=mi] {ëtehi}
|
---|
162 | _textall_ [l=mi] {te katoa}
|
---|
163 | _textbeginsearch_ [l=mi] {Rapua}
|
---|
164 | _textfreqmsg1_ [l=mi] {Kia hia ngä kupu: }
|
---|
165 | _textmorethan_ [l=mi] {Neke atu i te }
|
---|
166 | _textnodocs_ [l=mi] {käore he pukapuka e pä ana ki äu kupu rapu.}
|
---|
167 | _text1doc_ [l=mi] {1 te pukapuka e pä ana ki äu kupu rapu.}
|
---|
168 | _textlotsdocs_ [l=mi] {ngä pukapuka e pä ana ki äu kupu rapu.}
|
---|
169 |
|
---|
170 | _textstemon_ [l=mi] { (hei aha te kümuri)}
|
---|
171 |
|
---|