From: Dan Scott Date: Thu, 11 Apr 2013 12:56:50 +0000 (-0700) Subject: TPAC: Render record titles and authors consistently X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fdbs%2Ftpac_author_name_style;p=working%2FEvergreen.git 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 --- diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index fb39da263f..a429b12f1f 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')