ACQ+Vandelay limit upload queue selector to ACQ queues
authorBill Erickson <berick@esilibrary.com>
Tue, 31 Jan 2012 20:59:41 +0000 (15:59 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 13 Mar 2012 19:27:53 +0000 (15:27 -0400)
When uploading bibs to vandelay queues from ACQ interfaces, only allow
records to be added to queues tagged as 'acq' queues (or to new 'acq'
queues).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/ui/default/acq/common/vlagent.js

index e7c5b05..8444b9c 100644 (file)
@@ -33,7 +33,8 @@ function VLAgent(args) {
                         fmClass : widg.cls,
                         selfReference : true,
                         orgLimitPerms : [self.limitPerm || 'CREATE_PURCHASE_ORDER'],
-                        parentNode : dojo.byId('acq_vl:' + widg.key)
+                        parentNode : dojo.byId('acq_vl:' + widg.key),
+                        searchFilter : (widg.cls == 'vbq') ? {queue_type : 'acq'} : null
                     }).build(function(dijit) { 
                         widg.dijit = dijit; 
                         self.attachOnChange(widg);