}
this.error.sdump('D_LIST',s);
+ try {
+
+ if (obj.trim_list && obj.row_count.total >= obj.trim_list) {
+ // Remove oldest row
+ if (typeof params.to_top == 'undefined') {
+ treechildren_node.removeChild( treechildren_node.firstChild );
+ } else {
+ treechildren_node.removeChild( treechildren_node.lastChild );
+ }
+ }
+ } catch(E) {
+ }
+
setTimeout( function() { obj.auto_retrieve(); }, 0 );
return treeitem;
|| checkin.ilsevent == 7012 /* COPY_STATUS_MISSING */) return obj.on_failure();
var retrieve_id = js2JSON( { 'copy_id' : checkin.copy.id(), 'barcode' : checkin.copy.barcode(), 'doc_id' : (typeof checkin.record != 'undefined' ? ( typeof checkin.record.ilsevent == 'undefined' ? checkin.record.doc_id() : null ) : null ) } );
if (checkin.circ && checkin.circ.checkin_time() == 'now') checkin.circ.checkin_time(backdate);
+ if (document.getElementById('trim_list')) {
+ var x = document.getElementById('trim_list');
+ if (x.checked) { obj.list.trim_list = 20; } else { obj.list.trim_list = null; }
+ }
obj.list.append(
{
'retrieve_id' : retrieve_id,
label="&staff.checkin.reprint_receipt_label;"
command="cmd_checkin_reprint"
accesskey="&staff.checkin.reprint_receipt_label.accesskey;"/>
+ <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/>
<spacer id="pcii3s" flex="1"/>
<checkbox id="checkin_auto" label="Auto-Print for Hold/Transit Slips" accesskey="P" persist="checked"/>
<!--
}
} else {
var my_mvr = obj.network.simple_request('MODS_SLIM_RECORD_RETRIEVE_VIA_COPY', [ copy.id() ]);
+ if (document.getElementById('trim_list')) {
+ var x = document.getElementById('trim_list');
+ if (x.checked) { obj.list.trim_list = 20; } else { obj.list.trim_list = null; }
+ }
obj.list.append(
{
'retrieve_id' : js2JSON( { 'renewable' : copy.circulations() ? 't' : 'f', 'copy_id' : copy.id(), 'barcode' : barcode, 'doc_id' : (typeof my_mvr.ilsevent == 'undefined' ? my_mvr.doc_id() : null ) } ),
</hbox>
<hbox id="copy_status_bottom_ui">
- <spacer flex="1"/>
<button id="copy_status_print"
label="Print"
command="cmd_copy_status_print"
accesskey="P"/>
+ <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/>
+ <spacer flex="1"/>
</hbox>
</overlay>
copy = new acp(); copy.barcode( '' );
}
+ if (document.getElementById('trim_list')) {
+ var x = document.getElementById('trim_list');
+ if (x.checked) { obj.list.trim_list = 20; } else { obj.list.trim_list = null; }
+ }
obj.list.append(
{
'row' : {
label="Re-Print Last List"
command="cmd_in_house_use_reprint"
accesskey="L"/>
+ <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/>
+ <spacer id="pcii3s" flex="1"/>
<button id="clip_button" disabled="true" command="sel_clip" label="Copy to Clipboard" />
<button id="save_cols_btn" command="save_columns" label="Save Columns" />
- <spacer id="pcii3s" flex="1"/>
</hbox>
</groupbox>