4 <h1>&vandelay.record.queue; <span style='font-style:italic;' id='vl-queue-summary-name'/></h1><br/>
7 &vandelay.queue.total; <span style='font-weight:bold;' id='vl-queue-summary-total-count'/>
8 &vandelay.queue.imported; <span style='font-weight:bold;' id='vl-queue-summary-import-count'/>
13 var vlQueueGridLayout;
14 function resetVlQueueGridLayout() {
15 vlQueueGridLayout = [{
17 {name: '<input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"/>',
18 get: vlQueueGridDrawSelectBox, styles : 'text-align: center;' },
19 { name: '&vandelay.view.marc;',
20 get: vlGetViewMARC, styles : 'text-align: center;',
21 value:'<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, false, '+
22 'function(){displayGlobalDiv(\'vl-queue-div\');});">&vandelay.view.marc;</a>'
24 { name: '&vandelay.matches;',
25 get: vlGetViewMatches, styles : 'text-align: center;',
26 value:'<a href="javascript:void(0);" onclick="vlLoadMatchUI(RECID);">&vandelay.matches;</a>'
28 {name: '&vandelay.import.time;', field:'import_time', styles : 'text-align: center;',
29 get:vlGetDateTimeField, selectableColumn:true}
34 <div id='vl-queue-div-grid' class='tall' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
36 <!-- column picker dialog -->
37 <div dojoType="dijit.Dialog" jsId='vlQueueGridColumePickerDialog' title="&vandelay.queue.column_picker.title;">
38 <table class='form_table'>
40 <tr><th width='33%'>&vandelay.column;</th>
41 <th width='33%'>&vandelay.display;</th>
42 <th width='33%'>&vandelay.auto.width;</th></tr>
46 <td colspan='3' align='center'>
47 <button jsId='vlQueueGridColumnPickerButton'
49 vlQueueGridColumePickerDialog.hide();
50 vlQueueGridColumePicker[currentType].update(true);'
51 dojoType='dijit.form.Button'>&vandelay.done;</button>
58 <!-- queue grid navigation row -->
59 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
60 <table width='100%' style='margin-bottom:0px;'>
62 <td align='left' valign='bottom'>
63 <select id='vl-queue-actions-selector'>
64 <option selected='selected' disabled='disabled' value='select-actions'>&vandelay.select_actions;</option>
65 <option value='import'>&vandelay.import.selected;</option>
66 <option value='import_all'>&vandelay.import.all;</option>
67 <option value='delete_queue'>&vandelay.delete.queue;</option>
70 var sel = dojo.byId('vl-queue-actions-selector');
71 sel.onchange = function(evt) {
72 switch(openils.Util.selectorValue(evt.target)) {
73 case 'import': vlImportSelectedRecords(); break;;
74 case 'import_all': vlImportAllRecords(); break;;
76 if(confirm('&vandelay.sure.to.delete.queue;')) {
77 vlDeleteQueue(currentType, currentQueueId,
78 function() { displayGlobalDiv('vl-marc-upload-div'); });
81 evt.target.selectedIndex = 0;
85 <td align='middle' valign='bottom'>
86 <style>.filter_span { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
89 <span>&vandelay.limit.to.collision.matches;</span>
90 <span class='filter_span'>
91 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
94 <span>&vandelay.limit.to.non.imported;</span>
95 <span class='filter_span'>
96 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowNonImport' checked='checked' onchange='retrieveQueuedRecords();'/>
99 <span>&vandelay.results.per.page;</span>
100 <span class='filter_span'>
101 <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
102 value='10' onchange='retrieveQueuedRecords();'>
103 <option value='10'>10</option>
104 <option value='20'>20</option>
105 <option value='50'>50</option>
106 <option value='100'>100</option>
110 <span style='padding-left:5px;'>&vandelay.page;</span>
111 <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
115 <td align='right' valign='bottom'>
116 <span style='padding-right:4px;'>
117 <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>« &vandelay.prev.page;</a>
119 <span style='padding-right:10px;'>
120 <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page; »</a>
122 <span style='background:#e8e1cf;padding:3px 2px 2px 6px;-moz-border-radius:6px 0px 0px 0px;'>
123 <a href='javascript:void(0);' onclick='vlQueueGridColumePickerDialog.show();'>&vandelay.select.cols;</a>
131 <div dojoType="openils.widget.GridColumnPicker" jsid="vlQueueGridMenu" style="display: none;" grid='vlQueueGrid'>
132 <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
134 <div style='height:600px' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
136 <table dojoType='dojox.grid.DataGrid' jsId='vlQueueGrid' query="{id:'*'}" headerMenu='vlQueueGridMenu'>
138 <table dojoType='dojox.grid.DataGrid' jsId='vlQueueGrid' query="{id:'*'}">