From f11c8a83cbfbbc14c5ca8130d318b82658492460 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 15 Jul 2013 14:36:30 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/css/style.css.tt2 | 9 +++++++-- Open-ILS/src/templates/opac/parts/record/copy_table.tt2 | 14 +++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 65f20ce43f..1bf379eca4 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -447,9 +447,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 d6f6fa6aa6..24fe3eadc3 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 @@ -186,7 +186,7 @@ END; # FOREACH bib [% END %] [% END %] - + [%- IF copy_info.peer_bib_marc.size > 1; '