Repair tpac OU hiding test for copy counts display
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Dec 2012 15:19:00 +0000 (10:19 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 14 Feb 2013 19:12:57 +0000 (14:12 -0500)
Ensure calls to ctx.org_hiding_disabled() are made against the context
(ctx) object, instead of the old-style in-template invocation without
the context.

Thanks to Dale Rigney for spotting this.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/record/copy_counts.tt2

index 9a6c695..a400aad 100644 (file)
@@ -4,7 +4,7 @@
     [%- depths = ctx.copy_summary.size;
         depth = 0;
         displayed_ous = {};
-        ou_hiding_disabled = org_hiding_disabled();
+        ou_hiding_disabled = ctx.org_hiding_disabled();
         WHILE depth < depths;
             ou_avail = ctx.copy_summary.$depth.available;
             ou_id = ctx.copy_summary.$depth.org_unit;