[open-ils-commits] r11539 - in branches/rel_1_4/Open-ILS/web/vandelay: . inc
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Dec 12 12:33:46 EST 2008
Author: erickson
Date: 2008-12-12 12:33:44 -0500 (Fri, 12 Dec 2008)
New Revision: 11539
Modified:
branches/rel_1_4/Open-ILS/web/vandelay/inc/upload.xml
branches/rel_1_4/Open-ILS/web/vandelay/vandelay.js
Log:
more work toward bib source selector
Modified: branches/rel_1_4/Open-ILS/web/vandelay/inc/upload.xml
===================================================================
--- branches/rel_1_4/Open-ILS/web/vandelay/inc/upload.xml 2008-12-12 17:03:31 UTC (rev 11538)
+++ branches/rel_1_4/Open-ILS/web/vandelay/inc/upload.xml 2008-12-12 17:33:44 UTC (rev 11539)
@@ -32,7 +32,7 @@
<tr>
<td>&vandelay.import.bib_sources;</td>
<td>
- <select jsId='vlUploadSourceSelector' dojoType='dijit.form.FilteringSelect'>
+ <select jsId='vlUploadSourceSelector' dojoType='dijit.form.FilteringSelect' labelAttr='source' searchAttr='source'>
</select>
</td>
</tr>
Modified: branches/rel_1_4/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- branches/rel_1_4/Open-ILS/web/vandelay/vandelay.js 2008-12-12 17:03:31 UTC (rev 11538)
+++ branches/rel_1_4/Open-ILS/web/vandelay/vandelay.js 2008-12-12 17:33:44 UTC (rev 11539)
@@ -123,9 +123,9 @@
);
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 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() {
More information about the open-ils-commits
mailing list