* Creates a new vandelay queue
*/
function createQueue(queueName, type, onload, importDefId, matchSet) {
- var name = (type=='bib') ? 'bib' : 'authority';
+ var name = (type=='auth') ? 'authority' : 'bib';
var method = 'open-ils.vandelay.'+ name +'_queue.create'
fieldmapper.standardRequest(
['open-ils.vandelay', method],
* out into the vandelay tables
*/
function processSpool(key, queueId, type, onload) {
+ if (type.match(/acq/)) type = 'bib';
fieldmapper.standardRequest(
['open-ils.vandelay', 'open-ils.vandelay.'+type+'.process_spool'],
{ async: true,
if(!type) type = currentType;
else currentType = type;
+ if (type.match(/acq/)) type = 'bib';
if(!queueId) queueId = currentQueueId;
else currentQueueId = queueId;
if(!onload) onload = handleRetrieveRecords;
}
function vlFetchQueueSummary(qId, type, onload) {
+ if (type.match(/acq/)) type = 'bib';
fieldmapper.standardRequest(
['open-ils.vandelay', 'open-ils.vandelay.'+type+'_queue.summary.retrieve'],
{ async: true,
function vlGetQueueData(type, asStore) {
var filter;
switch(type) {
+ case 'acq':
case 'bib-acq':
filter = 'acq';
case 'bib':
}
function vlUpdateMatchSetSelector(type) {
- type = (type.match(/bib/)) ? 'biblio' : 'authority';
+ type = (type.match(/auth/)) ? 'authority' : 'biblio';
vlUploadQueueMatchSet.store =
new dojo.data.ItemFileReadStore({data:vms.toStoreData(matchSets[type])});
}