Approximate number of search results
authorKathy Lussier <klussier@masslnc.org>
Sun, 14 Apr 2013 04:38:53 +0000 (00:38 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 18 Apr 2013 17:31:37 +0000 (13:31 -0400)
The number of results listed on the search results page is often an
estimate when working with a large set. Let's add the word "about" to
reflect the fact that it is indeed an estimate.

At the same time, I moved the <strong> tags out of the code, adding a CSS
class in its place, moved the HTML tags out of the translatable
string (as recommended by Pasi Kallinen), and fixed a typo in the
stylesheet.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/result/paginate.tt2

index 587e62a..959609d 100644 (file)
@@ -692,8 +692,12 @@ tr.result_table_row > td.result_table_pic_header {
     padding-left: 1em;
 }
 
-.result_numbers {
-    font-size: [% css_fonts.size_small %]; padding-left:15px; white-space: nowrap; width: 320px;
+.result_number {
+    padding-left:15px; white-space: nowrap; width: 320px;
+}
+
+.result_count_number {
+   font-weight: bold;
 }
 
 .result_table_subtable {
index edcc817..34c092b 100644 (file)
@@ -2,11 +2,16 @@
 <div class="results_header_nav1">
     <span class="h1">[% ctx.bookbag ? l('List Contents') : l('Search Results') %]</span>
     <span nowrap="nowrap" class="result_number">
-                [% |l(ctx.result_start, ctx.result_stop, ctx.hit_count) %]
-                Results <strong>[_1]</strong> - <strong>[_2]</strong> of <strong>[_3]</strong>
-                [% END %]
+                [% |l('<span class="result_count_number">' _ ctx.result_start _'</span>',
+                '<span class="result_count_number">' _ ctx.result_stop _ '</span>',
+                '<span class="result_count_number">' _ ctx.hit_count _ '</span>')  -%]
+                Results [_1] - [_2] of about [_3]
+                [%- END %]
                 <span style='padding-left: 6px;'>
-                    [% |l(page + 1, page_count) %](page <strong>[_1]</strong> of <strong>[_2]</strong>)[% END %]
+                    [% |l('<span class="result_count_number">' _ (page + 1) _ '</span>',
+                    '<span class="result_count_number">' _ page_count _ '</span>') -%]
+                    (page [_1] of [_2])
+                    [%- END %]
                 </span>
     </span>
     [%- INCLUDE "opac/parts/pref_lib_display.tt2" %]