From bfb8cf2c0be81a7803317e8efb4cb4d49adcc046 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 19 Jan 2015 18:14:12 -0500 Subject: [PATCH] Tweaks to layout of holdings on item details page. Signed-off-by: Terran McCanna --- .../src/templates/opac/parts/library_name_link.tt2 | 6 +++- .../src/templates/opac/parts/record/copy_table.tt2 | 38 +++++++++++----------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/library_name_link.tt2 b/Open-ILS/src/templates/opac/parts/library_name_link.tt2 index e039543257..299a31d00a 100644 --- a/Open-ILS/src/templates/opac/parts/library_name_link.tt2 +++ b/Open-ILS/src/templates/opac/parts/library_name_link.tt2 @@ -15,8 +15,12 @@ lib_url = mkurl(opac_root _ '/library/' _ ctx.get_aou(copy_info.circ_lib).shortname, {}, 1); END; IF lib_url; ''; END; - ''; parent_org_name _ ': ' _ org_name | html; ''; + ''; parent_org_name _ ':' | html; ''; + '
      '; + IF lib_url; ''; END; + org_name; IF lib_url; ''; END; + -%] 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 eaab4b8cd3..413216b129 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -26,7 +26,7 @@ FOREACH copy_info IN copies; END; -%] [%- IF has_copies; %] - +
[% IF serial_holdings -%] @@ -56,7 +56,7 @@ END; [%- FOREACH peer IN ctx.foreign_copies; FOREACH bib IN peer.foreign_copy_maps; %] - - - - - + + + + [%- IF ctx.is_staff %] - + [%- END %] [%- END; # FOREACH peer @@ -98,21 +98,21 @@ END; # FOREACH bib [%- copy_info.holding_label | html; -%] [%- ELSE %] - [% END %] - - + + [%- IF has_parts == 'true' %] - + [%- END %] - [%- IF ctx.is_staff %] - - [% END # is_staff %] [% IF ctx.is_staff OR serial_holdings %] - [%- END %] - [%- IF ctx.is_staff %] -
+
[%- bib_lib_name = ctx.get_aou(bib.target_copy.circ_lib).name | html; l("[_1] (foreign item)", bib_lib_name); -%]
  • @@ -67,12 +67,12 @@ END;
[% copy_info.copy_location | html %][% bib.target_copy.call_number.label | html %][% bib.target_copy.barcode | html %][% copy_info.copy_status | html %][% copy_info.copy_location | html %][% bib.target_copy.call_number.label | html %][% bib.target_copy.barcode | html %][% copy_info.copy_status | html %][% copy_info.due_date | html %][% copy_info.due_date | html %]
+ [%- INCLUDE "opac/parts/library_name_link.tt2"; -%] [% copy_info.copy_location | html %][% callnum | html %] [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](Send Text Message)[% END %][% copy_info.copy_location | html %][% callnum | html %][% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %]
(Send Call No. in Text Message)[% END %]
[% copy_info.part_label | html %][% copy_info.part_label | html %] + [% copy_info.barcode | html -%] - [% IF ctx.is_staff %] + [% IF ctx.is_staff %]
[%- IF ctx.is_browser_staff %] [% l('view') %] [% IF ctx.has_perm('UPDATE_COPY', copy_info.circ_lib) @@ -144,17 +144,17 @@ END; # FOREACH bib END; -%]
+ [% 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 ) %][% # 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 @@ -202,12 +202,12 @@ END; # FOREACH bib l("Not holdable"); 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), -- 2.11.0