Don't show duplicate copy counts user/tsbere/skip_equal_depths
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 13 Aug 2012 21:22:33 +0000 (17:22 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 13 Aug 2012 21:22:33 +0000 (17:22 -0400)
Always show the top and bottom of the available tree, though.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/templates/opac/parts/record/copy_counts.tt2

index cd59442..85bc489 100644 (file)
                 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;
     %]