From: Garry Collum Date: Mon, 10 May 2021 19:55:59 +0000 (-0400) Subject: LP1908612 Bootstrap Opac - Limit to Available X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=commitdiff_plain;h=6d4c6b60dcc04d15007a68701c73f91d168594a2 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 --- 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 489c3f2..9d92513 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 %] +