/[webpac2]/Webpacus/root/results.tt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /Webpacus/root/results.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 133 - (show annotations)
Thu Nov 24 16:30:11 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 1575 byte(s)
 r9103@llin:  dpavlin | 2005-11-24 15:00:27 +0100
 added ability to specify word operator by inserting field which is called
 same as search fields but begins with underscore (_). You can put Hyper
 Estraier operator in there (e.g. AND, OR) to force search engine to
 insert those characters between words entered in that field

1 <!-- results -->
2
3 <!--
4 <pre>[%
5 USE dumper;
6 dumper.dump( params )
7 %]</pre>
8 -->
9
10 [% c.prototype.form_remote_tag(
11 url => base _ 'results',
12 update => 'results',
13 loading => 'show_searching();',
14 loaded => 'hide_searching();',
15 html_options => {
16 id => 'results_form',
17 }
18 ) %]
19
20 <!-- persistant fileds for search -->
21
22 <input name="all" type="hidden" />
23 <input name="_all" type="hidden" />
24 <input name="TitleProper" type="hidden" />
25 <input name="PersonalName" type="hidden" />
26
27 <input name="_template" type="hidden" id="template_name" />
28
29 <span style="float: left; font-size: 90%; color: #404040;">
30
31 [% hits = html_results.size %]
32
33 Found
34 [%- IF html_results.size == 100 ; -%]
35 more than
36 [%- END %]
37 [% hits %]
38 result
39 [%- IF hits > 1 ; 's' ; END %]
40 for '[% phrase %]'.
41
42 [% IF attr && attr.size %]
43 <span style="font-size: 80%; color: #a0a0a0;">
44 [
45 [% attr.join(", ") %]
46 ]
47 </span>
48 [% END %]
49
50 </span>
51
52
53
54 <span style="float: right; font-size: 80%; color: #808080;">
55 <a href="#" onclick="load_template('html_ffzg_results_nonstd.tt'); return false;">full</a>
56 <img src="img/star-red.gif"/>
57 <a href="#" onclick="load_template('html_ffzg_results_apa.tt'); return false;">APA</a>
58 <img src="img/star-red.gif"/>
59 <a href="#" onclick="load_template('html_ffzg_results_isbd.tt'); return false;">ISBD</a>
60 </span>
61
62 <br/>
63
64 <div style="clear: left; float; left;">
65
66 [% FOREACH r IN html_results %]
67 [% r %]
68 [% END %]
69
70 </div>
71
72 </form>
73
74 <div style="font-size: 80%; color: #a0a0a0;">
75 End of results.
76 </div>
77
78 <!-- end of results -->
79
80 <script type="text/javascript">
81 hide_searching();
82 </script>
83

  ViewVC Help
Powered by ViewVC 1.1.26