]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/vandelay/inc/queue.tt2
initial export drop-down for queue UI
[working/Evergreen.git] / Open-ILS / web / templates / default / vandelay / inc / queue.tt2
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 -->
6             <table>
7                 <tr>
8                     <td valign='top'>
9                         <table class='queue-nav-table'>
10                             <thead><tr><th colspan='2' class='queue-nav-table-label'>Queue Actions</th></tr></thead>
11                             <tbody>
12                                 <tr><td><a href='javascript:;' onclick='vlHandleQueueItemsAction("import")'>&vandelay.import.selected;</a></td></tr>
13                                 <tr><td><a href='javascript:;' onclick='vlHandleQueueItemsAction("import_all")'>&vandelay.import.all;</a></td></tr>
14                                 <tr><td><a href='javascript:;' onclick='vlLoadErrorUIAll();'>View Import Items</a></td></tr>
15                                 <tr><td><a href='javascript:;' 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>
19                             </tbody>
20                         </table>
21                     </td>
22
23                     <td valign='top'>
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>
26                             <tbody>
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>
32                             </tbody>
33                         </table>
34                     </td>
35
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>
39                             <tbody>
40                                 <tr>
41                                     <td>&vandelay.limit.to.collision.matches;</td>
42                                     <td>
43                                         <input dojoType='dijit.form.CheckBox' 
44                                             jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
45                                     </td>
46                                 </tr>
47                                 <tr>
48                                     <td>&vandelay.limit.to.non.imported;</td>
49                                     <td>
50                                         <input dojoType='dijit.form.CheckBox' 
51                                             jsId='vlQueueGridShowNonImport' onchange='retrieveQueuedRecords();'/>
52                                     </td>
53                                 </tr>
54                                 <tr>
55                                     <td>&vandelay.limit.to.import_error;</td>
56                                     <td>
57                                         <input dojoType='dijit.form.CheckBox' 
58                                             jsId='vlQueueGridShowImportErrors' onchange='retrieveQueuedRecords();'/>
59                                     </td>
60                                 </tr>
61                             </tbody>
62                         </table>
63                     </td>
64                 </tr>
65             </table>
66         </td>
67
68         <td align='right' valign='bottom'> <!-- big right td -->
69             <table id='vl-queue-paging-table' class='queue-nav-table'>
70                 <tbody>
71                     <tr><td valign='bottom' align='right'>
72                         <select id='vl-queue-export-options' style='margin-right: 10px;'>
73                             <!-- TODO I18N -->
74                             <option value=''>Export Queue As...</option>
75                             <option value='print'>Print</option>
76                             <option value='csv'>CSV</option>
77                             <option value='email'>Email</option>
78                         </select>
79                         <span style='padding-right:5px;'>&vandelay.results.per.page;</span>
80                         <span class='queue-pager-span'>
81                             <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
82                                 value='10' onchange='retrieveQueuedRecords();'>
83                                 <option value='10'>10</option>
84                                 <option value='20'>20</option>
85                                 <option value='50'>50</option>
86                                 <option value='100'>100</option>
87                             </select>
88                         </span>
89
90                         <span class='queue-pager-span'>
91                             <span style='padding-left:5px;'>&vandelay.page;</span>
92                             <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
93                         </span>
94
95                         <span style='padding-right:8px;'>
96                             <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&vandelay.prev.page;</a>
97                         </span>
98                         <span style='padding-right:10px;'>
99                             <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page;</a>
100                         </span>
101                     </td></tr>
102                 </tbody>
103             </table>
104         </td>
105     </tr></table>
106     </fieldset>
107 </div>
108
109 <!-- Bib Queue Grid -->
110 <div class='' id='vl-bib-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
111     <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{id:'*'}" autoHeight='true'>
112         <thead>
113             <tr>
114                 <th 
115                     field='+row_selector'
116                     get='vlQueueGridDrawSelectBox'
117                     formatter='vlQueueGridFormatSelectBox'
118                     styles='text-align: center;width:30px;'
119                     nonSelectable='true'>
120                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
121                 </th>
122                 <th
123                     field='+view_marc'
124                     get='vlGetViewMARC'
125                     formatter='vlFormatViewMARC' 
126                     styles='text-align: center;'
127                     nonSelectable='true'>&vandelay.view.marc;</th>
128                 <th
129                     field='+get_matches'
130                     get='vlGetViewMatches'
131                     formatter='vlFormatViewMatches'
132                     styles='text-align: center;'
133                     nonSelectable='true'>&vandelay.matches;</th>
134                 <th
135                     field='+get_errors'
136                     get='vlGetViewErrors'
137                     formatter='vlFormatViewErrors'
138                     styles='text-align: center;'
139                     nonSelectable='true'>Import Failures</th>
140                 <th
141                     field='import_time'
142                     styles='text-align: center;'
143                     get='vlGetDateTimeField'>&vandelay.import.time;</th>
144             </tr>
145         </thead>
146     </table>
147     <div/>
148 </div>
149
150 <!-- Auth Queue Grid -->
151 <div class='' id='vl-auth-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
152     <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" autoHeight='true'> 
153         <thead>
154             <tr>
155                 <th 
156                     field='+row_selector'
157                     get='vlQueueGridDrawSelectBox'
158                     formatter='vlQueueGridFormatSelectBox'
159                     styles='text-align: center;'
160                     nonSelectable='true'>
161                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
162                 </th>
163                 <th
164                     field='+view_marc'
165                     get='vlGetViewMARC'
166                     formatter='vlFormatViewMARC' 
167                     styles='text-align: center;'
168                     nonSelectable='true'>&vandelay.view.marc;</th>
169                 <th
170                     field='+get_matches'
171                     get='vlGetViewMatches'
172                     formatter='vlFormatViewMatches'
173                     styles='text-align: center;'
174                     nonSelectable='true'>&vandelay.matches;</th>
175                 <th
176                     field='+get_errors'
177                     get='vlGetViewErrors'
178                     formatter='vlFormatViewErrors'
179                     styles='text-align: center;'
180                     nonSelectable='true'>Import Failures</th>
181                 <th
182                     field='import_time'
183                     styles='text-align: center;'
184                     get='vlGetDateTimeField'>&vandelay.import.time;</th>
185             </tr>
186         </thead>
187     </table>
188     <div/>
189 </div>
190
191 <div jsId='queueItemsImportDialog' dojoType="dijit.Dialog" title="Import Items">
192     <div dojoType="dijit.layout.ContentPane">
193         <table class='form_table'>
194             <tbody>
195                 <tr>
196                     <td>&vandelay.auto.import.merge_profile;</td>
197                     <td colspan='4'>
198                         <div jsId='vlUploadMergeProfile2' 
199                             dojoType='dijit.form.FilteringSelect' required='false' labelAttr='name' searchAttr='name'/>
200                     </td>
201                 </tr>
202                 <tr>
203                     <td>&vandelay.auto.import.noncolliding;</td>
204                     <td colspan='4'>
205                         <input jsId='vlUploadQueueImportNoMatch2' dojoType='dijit.form.CheckBox'/>
206                     </td>
207                 </tr>
208                 <tr>
209                     <td>&vandelay.auto.import.auto_overlay_exact;</td>
210                     <td colspan='4'>
211                         <input jsId='vlUploadQueueAutoOverlayExact2' dojoType='dijit.form.CheckBox'/>
212                     </td>
213                 </tr>
214                 <tr>
215                     <td>&vandelay.auto.import.auto_overlay_1match;</td>
216                     <td colspan='4'>
217                         <input jsId='vlUploadQueueAutoOverlay1Match2' dojoType='dijit.form.CheckBox'/>
218                     </td>
219                 </tr>
220                 <tr>
221                     <td>&vandelay.auto.import.auto_overlay_best;</td>
222                     <td colspan='4'><input jsId='vlUploadQueueAutoOverlayBestMatch2' dojoType='dijit.form.CheckBox'/></td>
223                 </tr>
224                 <tr>
225                     <td>&vandelay.auto.import.auto_overlay_best_ratio;</td>
226                     <td colspan='4'>
227                         <input style='width:3em' value='0.0' jsId='vlUploadQueueAutoOverlayBestMatchRatio2' dojoType='dijit.form.TextBox'/>
228                         <span style='padding-left: 10px; font-size:90%'>(&vandelay.auto.import.auto_overlay_best_ratio.desc;)</span>
229                     </td>
230                 </tr>
231                 <tr>
232                     <td>
233                         <button dojoType='dijit.form.Button' jsId='queueItemsImportCancelButton'>Cancel</button>
234                     </td>
235                     <td>
236                         <button dojoType='dijit.form.Button' jsId='queueItemsImportGoButton'>Import</button>
237                     </td>
238                 </tr>
239             </tbody>
240         </table>
241     </div>
242 </div>
243
244
245