[open-ils-commits] r11537 - in trunk/Open-ILS: examples web/opac/locale/en-US web/vandelay web/vandelay/inc
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Dec 12 12:02:14 EST 2008
Author: erickson
Date: 2008-12-12 12:02:12 -0500 (Fri, 12 Dec 2008)
New Revision: 11537
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd
trunk/Open-ILS/web/vandelay/inc/upload.xml
trunk/Open-ILS/web/vandelay/vandelay.js
Log:
partially implemented bib-source selector. more to follow soon
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2008-12-12 16:40:50 UTC (rev 11536)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2008-12-12 17:02:12 UTC (rev 11537)
@@ -2749,6 +2749,14 @@
<field name="transcendant" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
</fields>
<links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_SOURCE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_BIB_SOURCE" global_required="true"/>
+ <delete permission="DELETE_BIB_SOURCE" global_required="true"/>
+ </actions>
+ </permacrud>
</class>
<class id="mbt" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction" oils_persist:tablename="money.billable_xact" reporter:label="Billable Transaction">
<fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
Modified: trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd 2008-12-12 16:40:50 UTC (rev 11536)
+++ trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd 2008-12-12 17:02:12 UTC (rev 11537)
@@ -104,3 +104,4 @@
<!ENTITY vandelay.queue.total "Total:">
<!ENTITY vandelay.queue.imported "Imported:">
<!ENTITY vandelay.queue.column_picker.title "Column Picker">
+<!ENTITY vandelay.import.bib_sources "Select a Record Source">
Modified: trunk/Open-ILS/web/vandelay/inc/upload.xml
===================================================================
--- trunk/Open-ILS/web/vandelay/inc/upload.xml 2008-12-12 16:40:50 UTC (rev 11536)
+++ trunk/Open-ILS/web/vandelay/inc/upload.xml 2008-12-12 17:02:12 UTC (rev 11537)
@@ -30,7 +30,14 @@
</td>
</tr>
<tr>
+ <td>&vandelay.import.bib_sources;</td>
<td>
+ <select jsId='vlUploadSourceSelector' dojoType='dijit.form.FilteringSelect'>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>
<span id="vl-file-label">&vandelay.file.to.upload;</span>
</td>
<td id='vl-input-td' colspan='4'>
Modified: trunk/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.js 2008-12-12 16:40:50 UTC (rev 11536)
+++ trunk/Open-ILS/web/vandelay/vandelay.js 2008-12-12 17:02:12 UTC (rev 11537)
@@ -76,13 +76,14 @@
var selectableGridRecords;
var cgi = new openils.CGI();
var vlQueueGridColumePicker = {};
+var vlBibSources = [];
/**
* Grab initial data
*/
function vlInit() {
authtoken = dojo.cookie('ses') || cgi.param('ses');
- var initNeeded = 4; // how many async responses do we need before we're init'd
+ var initNeeded = 5; // how many async responses do we need before we're init'd
var initCount = 0; // how many async reponses we've received
openils.Util.registerEnterHandler(
@@ -121,6 +122,17 @@
}
);
+ fieldmapper.standardRequest(
+ ['open-ils.permacrud', 'open-ils.permacrud.search.cbs'],
+ { async: true,
+ params: [authtoken, {id:{"!=":null}}],
+ oncomplete : function(r) {
+ vlBibSources = openils.Util.readResponse(r, false, true);
+ checkInitDone();
+ }
+ }
+ );
+
vlAttrEditorInit();
}
@@ -833,6 +845,7 @@
function vlShowUploadForm() {
displayGlobalDiv('vl-marc-upload-div');
vlFleshQueueSelect(vlUploadQueueSelector, vlUploadRecordType.getValue());
+ vlUploadSourceSelector.store = new dojo.data.ItemFileReadStore({data:cbs.toStoreData(vlBibSources)});
}
function vlShowQueueSelect() {
More information about the open-ils-commits
mailing list