From: Dan Scott Date: Mon, 15 Jul 2013 18:36:30 +0000 (-0400) Subject: Improved copy table CSS/markup for conjoined bibs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2b0f09fec33c7a24ef8069423d2556d46d31d0d5;p=working%2FEvergreen.git Improved copy table CSS/markup for conjoined bibs Let the library name column wrap now that it may potentially contain stupidly long title/author combos. Also, associate the table cells with their corresponding headers for improved accessibility. 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 39858f79e4..d1bdd3965c 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -448,9 +448,14 @@ div.format_icon { padding-top: 1.5em; } -#rdetails_status td, #rdetails_status2 td { - white-space:nowrap !important; +#rdetails_status td { padding: 7px 0px 3px 13px; + white-space: nowrap; +} + +#rdetails_status td[header=copy_header_library], +#rdetails_status td[header=copy_header_shelfloc] { + white-space: normal; } #rdetails_status thead th { diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index c52d9a806f..1b4c58828d 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -54,7 +54,7 @@ END; [%- FOREACH peer IN ctx.foreign_copies; FOREACH bib IN peer.foreign_copy_maps; %] - + [%- bib_lib_name = ctx.get_aou(bib.target_copy.circ_lib).name | html; l("[_1] (foreign item)", bib_lib_name); -%] - [% bib.target_copy.call_number.label | html %] - [% bib.target_copy.barcode | html %] - [% copy_info.copy_location | html %] - [% copy_info.copy_status | html %] - [% copy_info.due_date | html %] + [% bib.target_copy.call_number.label | html %] + [% bib.target_copy.barcode | html %] + [% copy_info.copy_location | html %] + [% copy_info.copy_status | html %] + [% copy_info.due_date | html %] [%- END; # FOREACH peer END; # FOREACH bib @@ -205,7 +205,7 @@ END; # FOREACH bib [% END %] [% END %] - + [%- IF copy_info.peer_bib_marc.size > 1; '