From 3288d77eab0ea26ed5a8d2be11140316fec10615 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 11 Apr 2013 05:56:50 -0700 Subject: [PATCH] TPAC: Render record titles and authors consistently Yamil Suarez noticed that the titles and authors in the call number browse results page were presented differently than the regular search results. This change removes some of the hard-coded tags and "bold" classes, in favour of new "record_author" and "record_title" CSS classes. Now sites can simply change the CSS in one place to keep things consistent between the two search results pages. Signed-off-by: Dan Scott Signed-off-by: Yamil Suarez Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/css/style.css.tt2 | 8 ++++++++ Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 | 4 ++-- Open-ILS/src/templates/opac/parts/result/table.tt2 | 10 ++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index e4c2cdd917..587e62aa4f 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1503,3 +1503,11 @@ a.preflib_change { #patron_usr_barcode_not_found { font-weight: bold; color: [% css_colors.text_alert %]; } + +.record_title { + font-weight: bold; +} + +.record_author { + font-style: italic; +} diff --git a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 index 661c1320f7..153dc9ad3c 100644 --- a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 @@ -40,11 +40,11 @@ [% END %]
[% cn.label | html %]
[% IF rec_attrs.author %] [%- FOR entry IN attrs.graphic_titles; FOR alt IN entry.graphic; @@ -71,12 +69,12 @@ END; -%]
- 'author', query => authorquery}, ['page']) - -%]">[% attrs.author | html %] + -%]">[% attrs.author | html %] [%- UNLESS CGI.param('detail_record_view') OR (show_more_details.default == 'true' OR show_more_details.default == 'hide') -- 2.43.2