added import-all option in queue display, repaired some bugs which prevented going...
[working/Evergreen.git] / Open-ILS / web / vandelay / inc / queue.xml
1 <h1>&vandelay.record.queue;</h1><br/>
2 <div>
3     <span style='font-size:105%;' id='vl-queue-summary-name'/>
4     <span id='vl-queue-summary-import-count'/> / <span id='vl-queue-summary-total-count'/>
5 </div>
6 <script>
7     var vlQueueGridLayout;
8     function resetVlQueueGridLayout() {
9         vlQueueGridLayout = [{
10             defaultCell: {styles: 'text-align: center;'},
11             cells : [[
12                 {name: '&lt;input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"/>', 
13                     get: vlQueueGridDrawSelectBox },
14                 {   name: '&vandelay.view.marc;', 
15                     get: vlGetViewMARC, 
16                     value:'&lt;a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, false, '+
17                         'function(){displayGlobalDiv(\'vl-queue-div\');});">&vandelay.view.marc;&lt;/a>'
18                 },
19                 {   name: '&vandelay.matches;', 
20                     get: vlGetViewMatches,
21                     value:'&lt;a href="javascript:void(0);" onclick="vlLoadMatchUI(RECID);">&vandelay.matches;&lt;/a>'
22                 },
23                 {name: '&vandelay.import.time;', field:'import_time', get:vlGetDateTimeField, selectableColumn:true}
24             ]]
25         }];
26     }
27 </script>
28 <div id='vl-queue-div-grid' class='tall' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
29
30     <!-- column picker dialog -->
31     <div dojoType="dijit.Dialog" jsId='vlQueueGridColumePickerDialog' title="Column Picker" execute="alert(2);">
32         <table class='form_table'>
33             <thead>
34                 <tr><th width='33%'>&vandelay.column;</th>
35                 <th width='33%'>&vandelay.display;</th>
36                 <th width='33%'>&vandelay.auto.width;</th></tr>
37             </thead>
38             <tbody>
39                 <tr>
40                     <td colspan='3' align='center'>
41                         <button jsId='vlQueueGridColumnPickerButton' 
42                             onclick='
43                                 vlQueueGridColumePickerDialog.hide();
44                                 vlQueueGridColumePicker[currentType].update(true);'
45                             dojoType='dijit.form.Button'>&vandelay.done;</button>
46                     </td>
47                 </tr>
48             </tbody>
49         </table>
50     </div>
51
52     <!-- queue grid navigation row -->
53     <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
54         <table width='100%' style='margin-bottom:0px;'>
55             <tr>
56                 <td align='left' valign='bottom'>
57                     <button dojoType='dijit.form.Button' onclick='vlImportSelectedRecords();'>&vandelay.import.selected;</button>
58                     <button dojoType='dijit.form.Button' onclick='vlImportAllRecords();'>&vandelay.import.all;</button>
59                     <button dojoType='dijit.form.Button' onclick="
60                         if(confirm('&vandelay.sure.to.delete.queue;')) {
61                             vlDeleteQueue(currentType, currentQueueId, 
62                                 function() { displayGlobalDiv('vl-marc-upload-div'); });
63                         }">&vandelay.delete.queue;</button>
64                 </td>
65                 <td align='middle' valign='bottom'>
66                     <style>.filter_td { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
67                     <table><tr>
68                         <td class='filter_td'>
69                             <table class='small_form_table'><tr>
70                                     <td>&vandelay.limit.to.collision.matches;</td>
71                                     <td><input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches'/></td>
72                                 </tr><tr>
73                                     <td>&vandelay.limit.to.non.imported;</td>
74                                     <td><input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowNonImport' checked='checked'/></td>
75                             </tr></table>
76                         </td>
77                         <td class='filter_td' style='padding-left:5px;'>
78                             <div class='nav_row_div'>&vandelay.results.per.page;</div>
79                             <div class='nav_row_div'>
80                                 <select style='width:68px;' jsId='vlQueueDisplayLimit' dojoType='dijit.form.FilteringSelect' value='10'>
81                                     <option value='10'>10</option>
82                                     <option value='20'>20</option>
83                                     <option value='50'>50</option>
84                                     <option value='100'>100</option>
85                                 </select>
86                             </div>
87                         </td>
88                         <td class='filter_td' style='padding-left:5px;'>
89                             <div class='nav_row_div'>&vandelay.page;</div>
90                             <div class='nav_row_div'>
91                                 <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
92                             </div>
93                         </td>
94                         <td style='padding-left:5px;'>
95                             <button dojoType='dijit.form.Button' 
96                                 onclick='retrieveQueuedRecords(currentType, currentQueueId, handleRetrieveRecords)'>&vandelay.refresh;</button>
97                         </td>
98                     </tr></table>
99                 </td>
100                 <td align='right' valign='bottom'>
101                     <span style='padding-right:4px;'>
102                         <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&#171; &vandelay.prev.page;</a>
103                     </span>
104                     <span style='padding-right:10px;'>
105                         <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page; &#187;</a>
106                     </span>
107                     <span style='background:#e8e1cf;padding:3px 0px 0px 6px;-moz-border-radius:6px 0px 0px 0px;'>
108                         <a href='javascript:void(0);' onclick='vlQueueGridColumePickerDialog.show();'>&vandelay.select.cols;</a>
109                     </span>
110                 </td>
111             </tr>
112         </table>
113     </div>
114
115     <!-- Queue Grid -->
116     <div class='' style='height:87%;' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
117         <div dojoType='dojox.Grid' jsId='vlQueueGrid'> </div>
118     </div>
119 </div>
120