KPAC - fix Get It and pickup library selector
authorBen Shum <bshum@biblio.org>
Mon, 19 Nov 2012 22:34:33 +0000 (17:34 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 27 Nov 2012 19:26:26 +0000 (14:26 -0500)
Change PROCESS to INCLUDE to prevent variable leaks from breaking
the pickup library selector's values.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Open-ILS/src/templates/kpac/getit.tt2

index 72619b0..b4942df 100644 (file)
@@ -3,7 +3,7 @@
     PROCESS "opac/parts/misc_util.tt2"; # MARC 
     WRAPPER "kpac/parts/subpage.tt2";
     attrs = {marc_xml => ctx.marc_xml};
-    PROCESS get_marc_attrs args=attrs;
+    INCLUDE get_marc_attrs args=attrs;
     ctx.page_title = attrs.title | html 
 %]
 
@@ -70,7 +70,7 @@
                                 <div class="pickup_lib">
                                     [%  def_lib = ctx.default_pickup_lib || ctx.physical_loc;
                                         PROCESS "opac/parts/org_selector.tt2";
-                                        PROCESS build_org_selector name='pickup_lib' 
+                                        INCLUDE build_org_selector name='pickup_lib' 
                                         value=def_lib id='pickup_lib' can_have_vols_only=1 %]
                                 </div>
                             </div>