.oils-selfck-item-table td {
text-align: left;
- padding: 10px;
+ padding: 7px;
}
.oils-selfck-item-table thead {
border-bottom: 1px solid #888;
}
-.oils-selfck-item-table tbody td {
- padding:10px;
-}
-
#oils-selfck-content-div {
width: 70%;
padding: 3px;
}
+#oils-selfck-status-div {
+ height: 20px;
+ padding: 10px;
+ font-weight: bold;
+ vertical-align: middle;
+ color: red;
+}
+
*/
SelfCheckManager.prototype.updateScanBox = function(args) {
- selfckScanBox.attr('value', '');
+ if(args.select) {
+ selfckScanBox.domNode.select();
+ } else {
+ selfckScanBox.attr('value', '');
+ }
if(args.value)
selfckScanBox.attr('value', args.value);
var self = this;
fieldmapper.standardRequest( // fetch the hold IDs
+
['open-ils.circ', 'open-ils.circ.holds.id_list.retrieve'],
{ async : true,
params : [this.authtoken, this.patron.id()],
oncomplete : function(r) {
var ids = openils.Util.readResponse(r);
- if(!ids || ids.length == 0) return;
+ if(!ids || ids.length == 0) {
+ progressDialog.hide();
+ return;
+ }
fieldmapper.standardRequest( // fetch the hold objects with fleshed details
['open-ils.circ', 'open-ils.circ.hold.details.batch.retrieve.atomic'],
{ async : true,
params : [self.authtoken, ids],
+
oncomplete : function(rr) {
self.drawHolds(openils.Util.readResponse(rr));
}
break;
case 'NO_SESSION':
- // TODO logout staff
+ // TODO logout staff?
break;
+
+ default:
+ dojo.byId('oils-selfck-status-div').innerHTML = evt.textcode;
+ this.updateScanBox({select:true});
}
}
<div id='oils-selfck-scan-text'></div>
<input jsId='selfckScanBox' dojoType='dijit.form.TextBox'></input>
</div>
+ <div id='oils-selfck-status-div'></div>
</div>
<div id='oils-selfck-bottom-div'>
<div id='oils-selfck-content-div'>
<div id='oils-selfck-circ-info-div'>
<div id='oils-selfck-info-nav'>
<span><a id='oils-selfck-nav-home' href='javascript:void(0);' class='selected'>Home</a></span>
- <span><a id='oils-selfck-nav-holds' href='javascript:void(0);'>My Holds</a></span>
- <span><a id='oils-selfck-nav-fines' href='javascript:void(0);'>Pay Fines</a></span>
+ <span><a id='oils-selfck-nav-holds' href='javascript:void(0);'>Holds</a></span>
+ <span><a id='oils-selfck-nav-fines' href='javascript:void(0);'>Fines</a></span>
<span><a id='oils-selfck-nav-logout' href='javascript:void(0);'>Log Out</a></span>
</div>
<fieldset>