From: Thomas Berezansky Date: Mon, 13 Aug 2012 21:22:33 +0000 (-0400) Subject: Don't show duplicate copy counts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Ftsbere%2Fskip_equal_depths;p=working%2FEvergreen.git Don't show duplicate copy counts Always show the top and bottom of the available tree, though. 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 cd5944285f..85bc489550 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 @@ -12,6 +12,11 @@ depth = depth + 1; NEXT; END; + nextdepth = depth + 1; + IF depth > 0 and ctx.copy_summary.$nextdepth.available == ou_avail; + depth = depth + 1; + NEXT; + END; ou_name = cp_org_unit.name; displayed_ous.$ou_name = 1; %]