fixe method name for new authority queues
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Oct 2008 13:38:32 +0000 (13:38 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 9 Oct 2008 13:38:32 +0000 (13:38 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10803 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/vandelay/vandelay.js

index 021b26f..17249aa 100644 (file)
@@ -237,8 +237,9 @@ function uploadMARC(onload){
   * Creates a new vandelay queue
   */
 function createQueue(queueName, type, onload) {
+    var method = 'open-ils.vandelay.'+ ((type=='bib') ? 'bib' : 'authority') +'_queue.create'
     fieldmapper.standardRequest(
-        ['open-ils.vandelay', 'open-ils.vandelay.'+type+'_queue.create'],
+        ['open-ils.vandelay', method],
         {   async: true,
             params: [authtoken, queueName, null, type],
             oncomplete : function(r) {