Simplified Hold Pull List: Fix broken filters
[transitory.git] / Open-ILS / src / templates / circ / hold_pull_list.tt2
index 8355ffe..b468136 100644 (file)
@@ -5,6 +5,10 @@
     dojo.require("openils.widget.OrgUnitFilteringSelect");
     dojo.require("openils.widget.FlattenerGrid");
 
+    /* We're going to supress copy_circ_lib from the actual filter dialog later,
+       but we still want it here so we can use a special widget ot filter on
+       it.  This is the widget that's basically saying, "show me the pull list
+       for /what/ library." */
     var map_extras = {
         "copy_circ_lib": {
             "path": "current_copy.circ_lib",
         fmClass="'ahopl'"
         defaultSort="['copy_location_order_position','call_number_sort_key']"
         mapExtras="map_extras"
+        suppressFilterFields="['copy_circ_lib']"
         sortFieldReMap="{call_number_label:'call_number_sort_key',shelving_loc:'copy_location_order_position'}"
         fetchLock="true"
         query="{}">
         <thead>
             <tr>
                 <th field="shelving_loc" fpath="current_copy.location.name" ffilter="true">Shelving Location</th>
-                <th field="call_number_label" fpath="call_number_label"></th>
-                <th field="author" fpath="current_copy.call_number.record.simple_record.author">Author</th>
-                <th field="title" fpath="current_copy.call_number.record.simple_record.title">Title</th>
-                <th field="barcode" fpath="current_copy.barcode"></th>
+                <th field="call_number_label" fpath="call_number_label" ffilter="true"></th>
+                <th field="author" fpath="current_copy.call_number.record.simple_record.author" ffilter="true">Author</th>
+                <th field="title" fpath="current_copy.call_number.record.simple_record.title" ffilter="true">Title</th>
+                <th field="barcode" fpath="current_copy.barcode" ffilter="true"></th>
                 <th field="parts" fpath="current_copy.parts.label" fsort="false">Parts</th>
                 <th field="notes" fpath="notes.body" fsort="false" _visible="false">Hold Notes</th>
-                <th field="patron_barcode" fpath="usr.card.barcode" _visible="false">Patron Barcode</th>
-                <th field="pickup_lib_name" fpath="pickup_lib.name" _visible="false">Pickup Library</th>
-                <th field="pickup_lib_shortname" fpath="pickup_lib.shortname" _visible="false">Pickup Library (Shortname)</th>
-                <th field="request_lib_name" fpath="request_lib.name" _visible="false">Request Library</th>
-                <th field="request_lib_shortname" fpath="request_lib.shortname" _visible="false">Request Library (Shortname)</th>
-                <th field="selection_ou" fpath="selection_ou.shortname" _visible="false">Selection Locus</th>
-                <th field="sms_carrier_name" fpath="sms_carrier.name" _visible="false">SMS Carrier</th>
+                <th field="patron_barcode" fpath="usr.card.barcode" _visible="false" ffilter="true">Patron Barcode</th>
+                <th field="pickup_lib_name" fpath="pickup_lib.name" _visible="false" ffilter="true">Pickup Library</th>
+                <th field="pickup_lib_shortname" fpath="pickup_lib.shortname" _visible="false" ffilter="true">Pickup Library (Shortname)</th>
+                <th field="request_lib_name" fpath="request_lib.name" _visible="false" ffilter="true">Request Library</th>
+                <th field="request_lib_shortname" fpath="request_lib.shortname" _visible="false" ffilter="true">Request Library (Shortname)</th>
+                <th field="selection_ou" fpath="selection_ou.shortname" _visible="false" ffilter="true">Selection Locus</th>
+                <th field="sms_carrier_name" fpath="sms_carrier.name" _visible="false" ffilter="true">SMS Carrier</th>
             </tr>
         </thead>
     </table>