From e7d001c401017dc9d5fb37ba35b18a953e14f9f6 Mon Sep 17 00:00:00 2001 From: McCanna Date: Mon, 4 Dec 2017 17:51:00 -0500 Subject: [PATCH] PINES OPAC Fix: Holdings Navigation Add in OPAC code from Master to calculate the number of copies. Signed-off-by: McCanna --- Open-ILS/src/templates/opac/parts/record/copy_table.tt2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 d36426ee35..d706b25292 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -25,7 +25,11 @@ FOREACH copy_info IN copies; END; END; -%] -[%- IF has_copies; %] +[%- +IF has_copies or ctx.foreign_copies; + depth = CGI.param('copy_depth').defined ? CGI.param('copy_depth') : CGI.param('depth').defined ? CGI.param('depth') : ctx.copy_summary.last.depth; + total_copies = ctx.copy_summary.$depth.count; +%] -- 2.11.0