From cf421fe14298ab9eef46ecbd0cb67604460dec78 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 10 Apr 2014 10:59:49 -0400 Subject: [PATCH] LP#1305958 Change copy table header atts to scope attributes Per http://webaim.org/techniques/tables/data, the current best practice for marking up tables for accessibility is to use the "scope" attribute for headers, rather than the error-prone and markup-heavy "headers" attribute on table cells. Signed-off-by: Dan Scott Signed-off-by: Chris Sharp Signed-off-by: Ben Shum --- .../opac/parts/record/copy_table.tt2 | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) 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 6ecaa10848..7f529b05de 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -30,31 +30,31 @@ END; [% IF serial_holdings -%] - [% l("Issue Label") %] + [% l("Issue Label") %] [%- ELSE -%] - [% l("Location") %] + [% l("Location") %] [%- END %] - [% l("Call Number / Copy Notes") %] + [% l("Call Number / Copy Notes") %] [%- IF has_parts == 'true' %] - [% l("Part") %] + [% l("Part") %] [%- END %] - [% l("Barcode") %] - [% l("Shelving Location") %] + [% l("Barcode") %] + [% l("Shelving Location") %] [%- IF ctx.is_staff %] - [% l("Age Hold Protection") %] - [% l("Create Date") %] + [% l("Age Hold Protection") %] + [% l("Create Date") %] [%- END %] [%- IF ctx.is_staff OR serial_holdings %] - [% l("Holdable?") %] + [% l("Holdable?") %] [%- END %] - [% l("Status") %] - [% l("Due Date") %] + [% l("Status") %] + [% l("Due Date") %] [%- 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,19 +90,19 @@ END; # FOREACH bib END; -%] - [%- IF serial_holdings %] + [%- IF serial_holdings %] [%- copy_info.holding_label | html; -%] - [%- ELSE %] + [%- ELSE %] [%- INCLUDE "opac/parts/library_name_link.tt2"; -%] [% 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 %] - + [% copy_info.barcode | html -%] [% IF ctx.is_staff %] [%- IF ctx.is_browser_staff %] @@ -135,19 +135,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 @@ -195,11 +195,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), @@ -216,7 +216,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