From 6ada1170bf0ef90a93240625d0d96fe194416236 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sun, 27 Oct 2013 13:11:37 -0400 Subject: [PATCH] Fix copy_table HTML markup errors TD elements take a "headers" attribute, not a "header" attribute. Also, we have a few typos in identifying the header attributes. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/css/style.css.tt2 | 4 +- .../opac/parts/record/copy_table.tt2 | 38 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 9c5feb7876..a40d3768f0 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -473,8 +473,8 @@ div.format_icon { white-space: nowrap; } -#rdetails_status td[header=copy_header_library], -#rdetails_status td[header=copy_header_shelfloc] { +#rdetails_status td[headers=copy_header_library], +#rdetails_status td[headers=copy_header_shelfloc] { white-space: normal; } 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 e9f962e6a2..9c8407ba88 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -34,7 +34,7 @@ END; [%- ELSE -%] [% l("Location") %] [%- END %] - [% l("Call Number / Copy Notes") %] + [% l("Call Number / Copy Notes") %] [%- IF has_parts == 'true' %] [% l("Part") %] [%- END %] @@ -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); -%]
  • @@ -65,11 +65,11 @@ END;
- [% 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 @@ -90,10 +90,10 @@ END; # FOREACH bib END; -%] - [%- IF serial_holdings %] + [%- IF serial_holdings %] [%- copy_info.holding_label | html; -%] - [%- ELSE %] + [%- ELSE %] [%- org_name = ctx.get_aou(copy_info.circ_lib).name; lib_url = ctx.get_org_setting(copy_info.circ_lib, 'lib.info_url'); @@ -104,11 +104,11 @@ END; # FOREACH bib [% END %] - [% callnum | html %] [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](Text)[% END %] + [% callnum | html %] [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](Text)[% END %] [%- IF has_parts == 'true' %] - [% copy_info.part_label | html %] + [% copy_info.part_label | html %] [%- END %] - + [%- IF ctx.is_staff -%] [% copy_info.barcode | html %] [%- ELSE -%][% copy_info.barcode | html %] @@ -117,19 +117,19 @@ END; # FOREACH bib ''; END; -%] - [% copy_info.copy_location | html %] + [% copy_info.copy_location | html %] [%- IF ctx.is_staff %] - + [% copy_info.age_protect ? ctx.get_crahp(copy_info.age_protect).name : l('None') | html %] - [% date.format( + [% date.format( ctx.parse_datetime(copy_info.create_date), DATE_FORMAT ) %] [% END # is_staff %] [% IF ctx.is_staff OR serial_holdings %] - [% # Show copy/volume hold links to staff (without + [% # Show copy/volume hold links to staff (without # checking whether they have permissions to do those). overall_holdable = ( copy_info.holdable == 't' AND @@ -177,11 +177,11 @@ END; # FOREACH bib l("Not holdable"); END %] [%- END %] - [%- + [%- schema_copy_status.${copy_info.status_code}; copy_info.copy_status | html; -%] - [% + [% IF copy_info.due_date; date.format( ctx.parse_datetime(copy_info.due_date), @@ -198,7 +198,7 @@ END; # FOREACH bib [% END %] [% END %] - + [%- IF copy_info.peer_bib_marc.size > 1; '
    '; FOREACH bib IN copy_info.peer_bib_marc; -- 2.43.2