From 144dc798cafb4773201c1a3b625618f1822e23d0 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Sun, 14 Apr 2013 00:38:53 -0400 Subject: [PATCH] Approximate number of search results 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 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 Signed-off-by: Mike Rylander --- Open-ILS/src/templates/opac/css/style.css.tt2 | 8 ++++++-- Open-ILS/src/templates/opac/parts/result/paginate.tt2 | 13 +++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 587e62aa4f..959609ddfe 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -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 { diff --git a/Open-ILS/src/templates/opac/parts/result/paginate.tt2 b/Open-ILS/src/templates/opac/parts/result/paginate.tt2 index edcc817b48..34c092b9ed 100644 --- a/Open-ILS/src/templates/opac/parts/result/paginate.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/paginate.tt2 @@ -2,11 +2,16 @@
[% ctx.bookbag ? l('List Contents') : l('Search Results') %] - [% |l(ctx.result_start, ctx.result_stop, ctx.hit_count) %] - Results [_1] - [_2] of [_3] - [% END %] + [% |l('' _ ctx.result_start _'', + '' _ ctx.result_stop _ '', + '' _ ctx.hit_count _ '') -%] + Results [_1] - [_2] of about [_3] + [%- END %] - [% |l(page + 1, page_count) %](page [_1] of [_2])[% END %] + [% |l('' _ (page + 1) _ '', + '' _ page_count _ '') -%] + (page [_1] of [_2]) + [%- END %] [%- INCLUDE "opac/parts/pref_lib_display.tt2" %] -- 2.11.0