From b3f414a24743591137b3acc97ad39feaebc9e4ad Mon Sep 17 00:00:00 2001 From: McCanna Date: Tue, 7 Nov 2017 15:58:42 -0500 Subject: [PATCH] OPAC Customization: Item Details Page Upgrade fixes to OPAC item details page - force Novelist content to stay open, re-show List links in staff client, fix problems with duplicate holdings tables and column adjustments, fixed e-resource link within the staff client, removed print/email link. Signed-off-by: McCanna --- .../src/templates/opac/parts/record/copy_table.tt2 | 4 +- .../src/templates/opac/parts/record/extras.tt2 | 2 +- .../src/templates/opac/parts/record/summary.tt2 | 59 ++++++++++++---------- 3 files changed, 34 insertions(+), 31 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 5877bbbbad..d36426ee35 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -51,7 +51,7 @@ END; [%- END %] [% l("Status") %] [%- IF ctx.is_staff %] - [% l("Due Date") %] + [% l("Due Date") %] [%- END -%] @@ -140,7 +140,7 @@ END; # FOREACH bib ''; END; -%] - [%- INCLUDE "opac/parts/location_name_link.tt2"; -%] + [%- IF ctx.is_staff %] [% copy_info.age_protect ? diff --git a/Open-ILS/src/templates/opac/parts/record/extras.tt2 b/Open-ILS/src/templates/opac/parts/record/extras.tt2 index da75116d39..c6c55cb335 100644 --- a/Open-ILS/src/templates/opac/parts/record/extras.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/extras.tt2 @@ -75,7 +75,7 @@ IF tab_is_active(name); href = mkurl('', {}, ['expand', 'ac']); arrow = arrow_down; - ELSIF !ctx.is_staff AND name == 'awards' AND !CGI.request_uri.match('expand'); + ELSIF name == 'awards'; href = mkurl('', {}, ['expand', 'ac']); arrow = arrow_down; ELSE; diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 49e46beb5d..c4f59e2dbf 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -97,7 +97,32 @@ [%- END -%]
- [% IF !ctx.is_staff %] + + [% IF ctx.is_staff %] + [% IF ctx.user; + INCLUDE "opac/parts/bookbag_actions.tt2"; + %] + [% ELSE; + operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add"; + label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); + %] + + + [% label %] + + + Learn about lists + [% END %] + [% END %] + + + + + + + + + [% IF !ctx.is_staff %] [% IF ctx.user; INCLUDE "opac/parts/bookbag_actions.tt2"; %] @@ -114,7 +139,7 @@ [% END %] [% END %]
-
+
[% IF ctx.mylist.size %] [%- IF ctx.user; %] [% l('View My Lists') %][% l(' View My Lists') %] @@ -123,11 +148,13 @@ [%- END %] [% END %]
+ [%- IF ctx.refworks.enabled == 'true' %] [%- INCLUDE 'opac/parts/record/refworks.tt2' %] [%- END %] @@ -183,7 +210,7 @@ num_uris = merged_uris.size; IF num_uris > 0; -%] -

[% l("Related electronic resources") %]

+

[% l("Related electronic resources") %]

[%- IF num_uris > 1 %]
[%- END %] -- 2.11.0