--- Webpacus/root/results.tt 2005/11/24 22:29:39 137
+++ Webpacus/root/results.tt 2005/12/31 13:41:02 332
@@ -1,13 +1,6 @@
-
-
-[% hits = html_results.size %]
+[% hits = html_results.size || 0 %]
[% IF hits < 1 %]
@@ -15,70 +8,45 @@
[% IF attr && attr.size %]
-
- [ [% attr.join(", ") %] ]
-
+ [ [% attr.join(", ") %] ]
[% END %]
- [% STOP %]
-[% END %]
+[% ELSE %]
-[% c.prototype.form_remote_tag(
- url => base _ 'results',
- update => 'results',
- loading => 'show_searching();',
- loaded => 'hide_searching();',
- html_options => {
- id => 'results_form',
- name => 'results_form',
- }
-) %]
-
-
-
-
-
-
-
-
-
-
-
+
Found
-[%- IF hits == 100 ; -%]
+[%- IF hits == hits_on_page ; -%]
more than
[%- END %]
-[% hits %]
+[% ( (page - 1) * hits_on_page ) + hits %]
result
[%- IF hits > 1 ; 's' ; END %]
for '[% phrase %]'.
[% IF attr && attr.size %]
-
-[
-[% attr.join(", ") %]
-]
-
+[ [% attr.join(", ") %] ]
[% END %]
-
-
- full
-
- APA
-
- ISBD
+
+
+ short
+ ·
+ full
+ ·
+ APA
+ ·
+ ISBD
-
+
[% FOREACH r IN html_results %]
[% r %]
@@ -86,17 +54,29 @@
-
-
-
+
-
-End of results.
+
-
+[% END # if hits > 1 %]
+
+