1 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' style='margin-top:10px;'>
2 <fieldset id='vl-queue-filter-fieldset'>
3 <legend>Queue <span style='font-style:italic;' id='vl-queue-summary-name'/></legend>
4 <table width='100%'><tr>
5 <td> <!-- big left td -->
9 <table class='queue-nav-table'>
10 <thead><tr><th colspan='2' class='queue-nav-table-label'>Queue Actions</th></tr></thead>
12 <tr><td><a href='#' onclick='vlHandleQueueItemsAction("import")'>&vandelay.import.selected;</a></td></tr>
13 <tr><td><a href='#' onclick='vlHandleQueueItemsAction("import_all")'>&vandelay.import.all;</a></td></tr>
14 <tr><td><a href='#' onclick='alert("coming soon"); return;vlHandleQueueItemsAction("item_errors")'>View Item Import Failures</a></td></tr>
15 <tr><td><a href='#' onclick='
16 if(confirm("&vandelay.sure.to.delete.queue;")) {
17 vlDeleteQueue(currentType, currentQueueId,
18 function() { displayGlobalDiv("vl-marc-upload-div"); });}'>&vandelay.delete.queue;</a></td></tr>
24 <table id='vl-queue-summary-table' class='queue-nav-table'>
25 <thead><tr><th colspan='2' class='queue-nav-table-label'>Queue Summary</th></tr></thead>
27 <tr><td>&vandelay.queue.total;</td><td> <span style='font-weight:bold;' id='vl-queue-summary-total-count'/></td></tr>
28 <tr><td>&vandelay.queue.imported;</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-count'/></td></tr>
29 <tr><td>Record Import Failures</td><td> <span style='font-weight:bold;' id='vl-queue-summary-rec-error-count'/></td></tr>
30 <tr><td>Items in Queue</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-item-count'/></td></tr>
31 <tr><td>Item Import Failures</td><td> <span style='font-weight:bold;' id='vl-queue-summary-item-error-count'/></td></tr>
36 <td valign='top'> <!-- filters -->
37 <table id='vl-queue-filter-table' class='queue-nav-table'>
38 <thead><tr><th colspan='2' class='queue-nav-table-label'>Queue Filters</th></tr></thead>
41 <td>&vandelay.limit.to.collision.matches;</td>
43 <input dojoType='dijit.form.CheckBox'
44 jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
48 <td>&vandelay.limit.to.non.imported;</td>
50 <input dojoType='dijit.form.CheckBox'
51 jsId='vlQueueGridShowNonImport' onchange='retrieveQueuedRecords();'/>
55 <td>&vandelay.limit.to.import_error;</td>
57 <input dojoType='dijit.form.CheckBox'
58 jsId='vlQueueGridShowImportErrors' onchange='retrieveQueuedRecords();'/>
68 <td align='right' valign='bottom'> <!-- big right td -->
69 <table id='vl-queue-paging-table' class='queue-nav-table'>
71 <tr><td valign='bottom' align='right'>
72 <span style='padding-right:5px;'>&vandelay.results.per.page;</span>
73 <span class='queue-pager-span'>
74 <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
75 value='10' onchange='retrieveQueuedRecords();'>
76 <option value='10'>10</option>
77 <option value='20'>20</option>
78 <option value='50'>50</option>
79 <option value='100'>100</option>
83 <span class='queue-pager-span'>
84 <span style='padding-left:5px;'>&vandelay.page;</span>
85 <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
88 <span style='padding-right:8px;'>
89 <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&vandelay.prev.page;</a>
91 <span style='padding-right:10px;'>
92 <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page;</a>
102 <!-- queue grid navigation row -->
103 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
104 <table width='100%' style='margin-bottom:0px;'>
107 <td align='left' valign='bottom'>
108 <select id='vl-queue-actions-selector'>
109 <option selected='selected' disabled='disabled' value='select-actions'>&vandelay.select_actions;</option>
110 <option value='import'>&vandelay.import.selected;</option>
111 <option value='import_all'>&vandelay.import.all;</option>
112 <option value='delete_queue'>&vandelay.delete.queue;</option>
114 <script type="text/javascript">
115 var sel = dojo.byId('vl-queue-actions-selector');
116 sel.onchange = function(evt) {
117 switch(openils.Util.selectorValue(evt.target)) {
118 case 'import': vlHandleQueueItemsAction('import'); break;;
119 case 'import_all': vlHandleQueueItemsAction('import_all'); break;;
121 if(confirm('&vandelay.sure.to.delete.queue;')) {
122 vlDeleteQueue(currentType, currentQueueId,
123 function() { displayGlobalDiv('vl-marc-upload-div'); });
126 evt.target.selectedIndex = 0;
130 <td align='right' valign='bottom'>
131 <style type="text/css">.filter_span { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
132 <span>&vandelay.results.per.page;</span>
133 <span class='filter_span'>
134 <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
135 value='10' onchange='retrieveQueuedRecords();'>
136 <option value='10'>10</option>
137 <option value='20'>20</option>
138 <option value='50'>50</option>
139 <option value='100'>100</option>
142 <span style='padding-left:5px;'>&vandelay.page;</span>
143 <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
145 <span style='padding-right:4px;'>
146 <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&vandelay.prev.page;</a>
148 <span style='padding-right:10px;'>
149 <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page;</a>
158 <!-- Bib Queue Grid -->
159 <div class='' id='vl-bib-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
160 <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{id:'*'}" autoHeight='true'>
164 field='+row_selector'
165 get='vlQueueGridDrawSelectBox'
166 formatter='vlQueueGridFormatSelectBox'
167 styles='text-align: center;width:30px;'
168 nonSelectable='true'>
169 <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
174 formatter='vlFormatViewMARC'
175 styles='text-align: center;'
176 nonSelectable='true'>&vandelay.view.marc;</th>
179 get='vlGetViewMatches'
180 formatter='vlFormatViewMatches'
181 styles='text-align: center;'
182 nonSelectable='true'>&vandelay.matches;</th>
185 get='vlGetViewErrors'
186 formatter='vlFormatViewErrors'
187 styles='text-align: center;'
188 nonSelectable='true'>Import Failures</th>
191 styles='text-align: center;'
192 get='vlGetDateTimeField'>&vandelay.import.time;</th>
199 <!-- Auth Queue Grid -->
200 <div class='' id='vl-auth-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
201 <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" autoHeight='true'>
205 field='+row_selector'
206 get='vlQueueGridDrawSelectBox'
207 formatter='vlQueueGridFormatSelectBox'
208 styles='text-align: center;'
209 nonSelectable='true'>
210 <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
215 formatter='vlFormatViewMARC'
216 styles='text-align: center;'
217 nonSelectable='true'>&vandelay.view.marc;</th>
220 get='vlGetViewMatches'
221 formatter='vlFormatViewMatches'
222 styles='text-align: center;'
223 nonSelectable='true'>&vandelay.matches;</th>
226 get='vlGetViewErrors'
227 formatter='vlFormatViewErrors'
228 styles='text-align: center;'
229 nonSelectable='true'>Import Failures</th>
232 styles='text-align: center;'
233 get='vlGetDateTimeField'>&vandelay.import.time;</th>
240 <div jsId='queueItemsImportDialog' dojoType="dijit.Dialog" title="Import Items">
241 <div dojoType="dijit.layout.ContentPane">
242 <table class='form_table'>
245 <td>&vandelay.auto.import.noncolliding;</td>
247 <input jsId='vlUploadQueueAutoImport2' dojoType='dijit.form.CheckBox'/>
251 <td>&vandelay.auto.import.auto_overlay_exact;</td>
253 <input jsId='vlUploadQueueAutoOverlayExact2' dojoType='dijit.form.CheckBox'/>
257 <td>&vandelay.auto.import.auto_overlay_1match;</td>
259 <input jsId='vlUploadQueueAutoOverlay1Match2' dojoType='dijit.form.CheckBox'/>
263 <td>&vandelay.auto.import.merge_profile;</td>
265 <div jsId='vlUploadMergeProfile2'
266 dojoType='dijit.form.FilteringSelect' required='false' labelAttr='name' searchAttr='name'/>
271 <button dojoType='dijit.form.Button' jsId='queueItemsImportCancelButton'>Cancel</button>
274 <button dojoType='dijit.form.Button' jsId='queueItemsImportGoButton'>Import</button>