From 75bccb437672598f94e764449e4df1cb2a0f6a57 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 4 Dec 2020 14:13:48 -0500 Subject: [PATCH] LP1895676: Record Print and Email Enhancements for Bootstrap OPAC Bring the improvements from LP1749475 to the Bootstrap OPAC. Signed-off-by: Jason Boyer Signed-off-by: Terran McCanna --- .../templates-bootstrap/opac/parts/anon_list.tt2 | 1 + .../src/templates-bootstrap/opac/parts/cart.tt2 | 4 +- .../opac/parts/record/summary.tt2 | 6 +- .../src/templates-bootstrap/opac/record/email.tt2 | 7 +- .../opac/record/email_preview.tt2 | 116 +++++++++++++++++++++ .../src/templates-bootstrap/opac/record/print.tt2 | 23 ++-- .../opac/record/print_preview.tt2 | 85 +++++++++++++++ 7 files changed, 223 insertions(+), 19 deletions(-) create mode 100644 Open-ILS/src/templates-bootstrap/opac/record/email_preview.tt2 create mode 100644 Open-ILS/src/templates-bootstrap/opac/record/print_preview.tt2 diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/anon_list.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/anon_list.tt2 index 3012d2821e..5aa31810f0 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/anon_list.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/anon_list.tt2 @@ -4,6 +4,7 @@

[% l('Basket') %]

+
diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/cart.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/cart.tt2 index 84514133f5..9a97f36fa6 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/cart.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/cart.tt2 @@ -4,8 +4,8 @@ - - + + [% IF !ctx.is_browser_staff %] [% END %] diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 index 6ae5c9b68e..8d4d810831 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 @@ -415,9 +415,9 @@ ctx.metalinks.push(' - [% l('Print') %] - [% l('Email') %] [%- IF ctx.refworks.enabled == 'true' %] @@ -564,4 +564,4 @@ ctx.metalinks.push('
[%- INCLUDE "opac/parts/record/extras.tt2" %] -
\ No newline at end of file +
diff --git a/Open-ILS/src/templates-bootstrap/opac/record/email.tt2 b/Open-ILS/src/templates-bootstrap/opac/record/email.tt2 index 70da6d2877..a08b743dc8 100755 --- a/Open-ILS/src/templates-bootstrap/opac/record/email.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/record/email.tt2 @@ -7,14 +7,13 @@
- [% IF ctx.user.email %] - [% ELSE %] + [% IF ctx.user && !ctx.user.email %]