From 31d4bf4e1a4258e3c58c18b7ff24a53f6e92a284 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Mon, 13 Aug 2012 17:22:33 -0400 Subject: [PATCH] Don't show duplicate copy counts Always show the top and bottom of the available tree, though. Signed-off-by: Thomas Berezansky --- Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 | 5 +++++ 1 file changed, 5 insertions(+) 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; %] -- 2.11.0