From e8b7ea183bf09e97edf6b46a5a6d7572911c3786 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 12 Dec 2008 17:33:58 +0000 Subject: [PATCH] more work toward bib source selector git-svn-id: svn://svn.open-ils.org/ILS/trunk@11540 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/vandelay/inc/upload.xml | 2 +- Open-ILS/web/vandelay/vandelay.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Open-ILS/web/vandelay/inc/upload.xml b/Open-ILS/web/vandelay/inc/upload.xml index 8911c6c518..71a87662c5 100644 --- a/Open-ILS/web/vandelay/inc/upload.xml +++ b/Open-ILS/web/vandelay/inc/upload.xml @@ -32,7 +32,7 @@ &vandelay.import.bib_sources; - diff --git a/Open-ILS/web/vandelay/vandelay.js b/Open-ILS/web/vandelay/vandelay.js index 40977654f2..af96999859 100644 --- a/Open-ILS/web/vandelay/vandelay.js +++ b/Open-ILS/web/vandelay/vandelay.js @@ -123,9 +123,9 @@ function vlInit() { ); fieldmapper.standardRequest( - ['open-ils.permacrud', 'open-ils.permacrud.search.cbs'], + ['open-ils.permacrud', 'open-ils.permacrud.search.cbs.atomic'], { async: true, - params: [authtoken, {id:{"!=":null}}], + params: [authtoken, {id:{"!=":null}}, {order_by:{cbs:'id'}}], oncomplete : function(r) { vlBibSources = openils.Util.readResponse(r, false, true); checkInitDone(); @@ -845,7 +845,9 @@ function vlFleshQueueSelect(selector, type) { function vlShowUploadForm() { displayGlobalDiv('vl-marc-upload-div'); vlFleshQueueSelect(vlUploadQueueSelector, vlUploadRecordType.getValue()); - vlUploadSourceSelector.store = new dojo.data.ItemFileReadStore({data:cbs.toStoreData(vlBibSources)}); + vlUploadSourceSelector.store = + new dojo.data.ItemFileReadStore({data:cbs.toStoreData(vlBibSources, 'source')}); + vlUploadSourceSelector.setValue(vlBibSources[0].id()); } function vlShowQueueSelect() { -- 2.11.0