Repair tpac OU hiding test for copy counts display user/berick/tpac-ou-hiding
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Dec 2012 15:19:00 +0000 (10:19 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 6 Dec 2012 15:19:00 +0000 (10:19 -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>
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;