From ce03c73b699f62f0a8d739fa0fea141ffe9caec2 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Wed, 12 Sep 2012 16:56:45 -0400 Subject: [PATCH] TPAC - Allow looking at non-available copies There are lots of reasons, on the staff side or otherwise, to want to see copies at a given depth that are not available. So draw it even if there are no available copies, so long as there are copies. Signed-off-by: Thomas Berezansky --- Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 index 288c31b14c..fc3819260f 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 @@ -18,12 +18,12 @@ %]
  • [%- this_depth = ctx.get_aou(ou_id).ou_type.depth; - IF ou_avail > 0 && this_depth != ctx.copy_depth %] + IF ou_count > 0 && this_depth != ctx.copy_depth %] [%- END; %] [% l('[_1] of [quant,_2,copy,copies] at [_3].', ou_avail, ou_count, ou_name) | html %] - [%- IF ou_avail > 0 && this_depth != ctx.copy_depth -%] + [%- IF ou_count > 0 && this_depth != ctx.copy_depth -%] [%- END; %]
  • -- 2.11.0