<td><div id='acq_vl:fall_through_merge_profile'></div></td>
</tr>
<tr>
+ <td>[% l('Upload to Queue') %]</td>
+ <td><div id='acq_vl:existing_queue'></div></td>
<td>
- <span>[% l('Temporary Queue') %]</span>
- <input dojoType='dijit.form.CheckBox' id='acq_vl:tmp_queue'></input>
- </td>
- <td>
- <div id='acq_vl:named_queue'></div>
- <span>[% l('Named Queue') %]</span>
+ <span>[% l('Or create a new queue') %]</span>
+ <input dojoType='dijit.form.TextBox' id='acq_vl:queue_name' size='32'></input>
</td>
</tr>
<table class='oils-generic-table'>
<tbody>
<tr>
+ <td>[% l('Vandelay Records Queued') %]</td>
+ <td><span id='acq-pl-upload-vqbr-processed'>0</span></td>
+ </tr>
+ <tr>
<td>Lineitems Processed</td>
<td><span id='acq-pl-upload-li-processed'>0</span></td>
</tr>
<td><span id='acq-pl-upload-debits-processed'>0</span></td>
</tr>
<tr>
- <td>Bib Records Imported</td>
+ <td>[% l('Bib Records Merged/Created') %]</td>
<td><span id='acq-pl-upload-bibs-processed'>0</span></td>
</tr>
<tr>
- <td>Bib Records Indexed</td>
- <td><span id='acq-pl-upload-indexed-processed'>0</span></td>
- </tr>
- <tr>
<td>Copies Created</td>
<td><span id='acq-pl-upload-copies-processed'>0</span></td>
</tr>
{key : 'auto_overlay_1match'},
{key : 'auto_overlay_best_match'},
{key : 'match_quality_ratio'},
- {key : 'tmp_queue'},
+ {key : 'queue_name'},
{key : 'match_set', cls : 'vms'},
{key : 'bib_source', cls : 'cbs'},
{key : 'merge_profile', cls : 'vmp'},
{key : 'fall_through_merge_profile', cls : 'vmp'},
- {key : 'named_queue', cls : 'vbq'}
+ {key : 'existing_queue', cls : 'vbq'}
];
this.init = function() {
selfReference : true,
orgLimitPerms : [self.limitPerm || 'CREATE_PURCHASE_ORDER'],
parentNode : dojo.byId('acq_vl:' + widg.key)
- }).build(function(dijit) { self._widgetPostBuild(widg, dijit) });
+ }).build(function(dijit) {
+ widg.dijit = dijit;
+ });
} else { // bools
widg.dijit = dijit.byId('acq_vl:' + widg.key);
);
}
- this._widgetPostBuild = function(widg, dijit) {
- var self = this;
- widg.dijit = dijit;
-
- // don't allow selecting a named queue if temp queue is selected
- if (widg.cls == 'vbq') {
- dijit.attr('disabled', true);
- var tmpd = self.widgets.filter(function(item){return (item.key == 'tmp_queue')})[0].dijit;
- tmpd.attr('checked', true);
- dojo.connect(
- tmpd, 'onChange',
- function(val) { dijit.attr('disabled', val) }
- );
- }
- }
-
-
this.values = function() {
var values = {};
dojo.forEach(this.widgets,
var resp = openils.Util.readResponse(r);
console.log(js2JSON(resp));
if(!resp) return;
+
+ dojo.byId('acq-pl-upload-vqbr-processed').innerHTML = resp.vqbr;
+ dojo.byId('acq-pl-upload-li-processed').innerHTML = resp.li;
+ dojo.byId('acq-pl-upload-lid-processed').innerHTML = resp.lid;
+ dojo.byId('acq-pl-upload-debits-processed').innerHTML = resp.debits_accrued;
+ dojo.byId('acq-pl-upload-bibs-processed').innerHTML = resp.bibs;
+ dojo.byId('acq-pl-upload-copies-processed').innerHTML = resp.copies;
+
if(resp.complete) {
openils.Util.hide('acq-pl-upload-complete-pl');
openils.Util.hide('acq-pl-upload-complete-po');
dojo.byId('acq-pl-upload-complete-po').setAttribute(
'href', oilsBasePath + '/acq/po/view/' + resp.purchase_order.id());
}
-
- } else {
- dojo.byId('acq-pl-upload-li-processed').innerHTML = resp.li;
- dojo.byId('acq-pl-upload-lid-processed').innerHTML = resp.lid;
- dojo.byId('acq-pl-upload-debits-processed').innerHTML = resp.debits_accrued;
- dojo.byId('acq-pl-upload-bibs-processed').innerHTML = resp.bibs;
- dojo.byId('acq-pl-upload-indexed-processed').innerHTML = resp.indexed;
- dojo.byId('acq-pl-upload-copies-processed').innerHTML = resp.copies;
}
},
}