From: Thomas Berezansky Date: Wed, 12 Sep 2012 20:56:45 +0000 (-0400) Subject: TPAC - Allow looking at non-available copies X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Ftsbere%2Ftpac_record_copy_counts;p=working%2FEvergreen.git 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 --- 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; %]