From 6d4c6b60dcc04d15007a68701c73f91d168594a2 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 10 May 2021 15:55:59 -0400 Subject: [PATCH] LP1908612 Bootstrap Opac - Limit to Available Adds the 'Show All Copies' and 'Show Only Available Copies' to the Bootstrap Opac's copy screen. Signed-off-by: Garry Collum Signed-off-by: Jason Boyer Signed-off-by: Galen Charlton --- .../templates-bootstrap/opac/parts/record/copy_table.tt2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 index 489c3f2cf0..9d9251346e 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 @@ -12,6 +12,7 @@ IF serial_holdings; copies = copies.merge(units); END; END; +available=ctx.available; FOREACH copy_info IN copies; IF copy_info.call_number_label != '##URI##'; @@ -67,6 +68,19 @@ IF has_copies or ctx.foreign_copies; [% END %] [% END %] + +
+[% IF available == 'true'; %] + + [% l('Show All Copies') %] + +[% END %] +[% IF available == 'false'; %] + + [% l('Show Only Available Copies') %] + +[% END %] + -- 2.11.0