]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/vandelay/inc/queue.tt2
d9118dc82ae0582a119242c3c876f6f6f89166aa
[working/Evergreen.git] / Open-ILS / src / templates / vandelay / inc / queue.tt2
1 <style type="text/css">
2     @import "[% ctx.media_prefix %]/js/dojo/dojox/form/resources/CheckedMultiSelect.css";
3 </style>
4 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' style='margin-top:10px;'>
5     <fieldset id='vl-queue-filter-fieldset'>
6         <legend>[% l('Queue ') %]<span style='font-style:italic;' id='vl-queue-summary-name'></span></legend>
7         <table width='100%'><tr>
8             <td> <!-- big left td -->
9             <table>
10                 <tr>
11                     <td valign='top'>
12                         <table class='queue-nav-table'>
13                             <thead><tr><th colspan='2' class='queue-nav-table-label'>[% l('Queue Actions') %]</th></tr></thead>
14                             <tbody>
15                                 <tr><td><a href='javascript:;' onclick='vlHandleQueueItemsAction("import")'>[% l('Import Selected Records') %]</a></td></tr>
16                                 <tr><td><a href='javascript:;' onclick='vlHandleQueueItemsAction("import_all")'>[% l('Import All  Records') %]</a></td></tr>
17                                 <tr><td><a href='javascript:;' onclick='vlLoadErrorUIAll();'>[% l('View Import Items') %]</a></td></tr>
18                                 <tr><td><a href='javascript:;' onclick='
19                                     if(confirm("[% l('Are you sure you want to delete this queue?') %]")) {
20                                         vlDeleteQueue(currentType, currentQueueId, 
21                                             function() { displayGlobalDiv("vl-marc-upload-div"); });}'>[% l('Delete Queue') %]</a></td></tr>
22                                 <tr id='add-to-bucket-action'><td><a href='javascript:;' onclick='createBucketDialog.show()'>[% l('Copy To Bucket') %]</a></td></tr>
23                             </tbody>
24                         </table>
25                     </td>
26
27                     <td valign='top'>
28                         <table  id='vl-queue-summary-table' class='queue-nav-table'>
29                             <thead><tr><th colspan='2' class='queue-nav-table-label'>[% l('Queue Summary') %]</th></tr></thead>
30                             <tbody>
31                                 <tr><td>[% l('Records in Queue:') %]</td><td> <span style='font-weight:bold;' id='vl-queue-summary-total-count'></span></td></tr>
32                                 <tr><td>[% l('Records Imported:') %]</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-count'></span></td></tr>
33                                 <tr><td>[% l('Record Import Failures') %]</td><td> <span style='font-weight:bold;' id='vl-queue-summary-rec-error-count'></span></td></tr>
34                                 <tr><td>[% l('Items in Queue') %]</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-item-count'></span></td></tr>
35                                 <tr><td>[% l('Items Imported') %]</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-item-imported-count'></span></td></tr>
36                                 <tr><td>[% l('Item Import Failures') %]</td><td> <span style='font-weight:bold;' id='vl-queue-summary-item-error-count'></span></td></tr>
37                             </tbody>
38                         </table>
39                     </td>
40
41                     <td valign='top'> <!-- filters -->
42                         <table id='vl-queue-filter-table' class='queue-nav-table'>
43                             <thead><tr><th colspan='2' class='queue-nav-table-label'>[% l('Queue Filters') %]</th></tr></thead>
44                             <tbody>
45                                 <tr>
46                                     <td>[% l('Limit to Records with Matches') %]</td>
47                                     <td>
48                                         <input dojoType='dijit.form.CheckBox' 
49                                             jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
50                                     </td>
51                                 </tr>
52                                 <tr>
53                                     <td>[% l('Limit to Non-Imported Records') %]</td>
54                                     <td>
55                                         <input dojoType='dijit.form.CheckBox' 
56                                             jsId='vlQueueGridShowNonImport' onchange='retrieveQueuedRecords();'/>
57                                     </td>
58                                 </tr>
59                                 <tr>
60                                     <td>[% l('Limit to Records with Import Errors') %]</td>
61                                     <td>
62                                         <input dojoType='dijit.form.CheckBox' 
63                                             jsId='vlQueueGridShowImportErrors' onchange='retrieveQueuedRecords();'/>
64                                     </td>
65                                 </tr>
66                             </tbody>
67                         </table>
68                     </td>
69                 </tr>
70             </table>
71         </td>
72
73         <td align='right' valign='bottom'> <!-- big right td -->
74             <table id='vl-queue-paging-table' class='queue-nav-table'>
75                 <tbody>
76                     <tr><td valign='bottom' align='right'>
77                         <select id='vl-queue-export-options' style='margin-right: 10px;'>
78                             <!-- TODO I18N -->
79                             <option value=''>[% l('Export Queue As...') %]</option>
80                             <option value='print'>[% l('Print') %]</option>
81                             <option value='csv'>[% l('CSV') %]</option>
82                             <option value='email'>[% l('Email') %]</option>
83                         </select>
84                         <span style='padding-right:5px;'>[% l('Records Per Page') %]</span>
85                         <span class='queue-pager-span'>
86                             <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
87                                 value='10' onchange='retrieveQueuedRecords();'>
88                                 <option value='10'>10</option>
89                                 <option value='20'>20</option>
90                                 <option value='50'>50</option>
91                                 <option value='100'>100</option>
92                             </select>
93                         </span>
94
95                         <span class='queue-pager-span'>
96                             <span style='padding-left:5px;'>[% l('Page') %]</span>
97                             <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
98                         </span>
99
100                         <span style='padding-right:8px;'>
101                             <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>[% l('&#171; Previous') %]</a>
102                         </span>
103                         <span style='padding-right:10px;'>
104                             <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>[% l('Next &#187;') %]</a>
105                         </span>
106                     </td></tr>
107                 </tbody>
108             </table>
109         </td>
110     </tr></table>
111     </fieldset>
112 </div>
113
114 <!-- Bib Queue Grid -->
115 <div class='' id='vl-bib-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
116     <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{id:'*'}" autoHeight='true'>
117         <thead>
118             <tr>
119                 <th 
120                     field='+row_selector'
121                     get='vlQueueGridDrawSelectBox'
122                     formatter='vlQueueGridFormatSelectBox'
123                     width='16'
124                     styles='text-align: center;'
125                     nonSelectable='true'>
126                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
127                 </th>
128                 <th
129                     field='+view_marc'
130                     get='vlGetViewMARC'
131                     formatter='vlFormatViewMARC' 
132                     styles='text-align: center;'
133                     nonSelectable='true'>[% l('View MARC') %]</th>
134                 <th
135                     field='+get_matches'
136                     get='vlGetViewMatches'
137                     formatter='vlFormatViewMatches'
138                     styles='text-align: center;'
139                     nonSelectable='true'>[% l('Matches') %]</th>
140                 <th
141                     field='+get_errors'
142                     get='vlGetViewErrors'
143                     formatter='vlFormatViewErrors'
144                     styles='text-align: center;'
145                     nonSelectable='true'>[% l('Import Failures') %]</th>
146                 <th
147                     field='import_time'
148                     styles='text-align: center;'
149                     get='vlGetDateTimeField'>[% l('Import Time') %]</th>
150             </tr>
151         </thead>
152     </table>
153     <div></div>
154 </div>
155
156 <!-- Auth Queue Grid -->
157 <div class='' id='vl-auth-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
158     <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" autoHeight='true'> 
159         <thead>
160             <tr>
161                 <th 
162                     field='+row_selector'
163                     get='vlQueueGridDrawSelectBox'
164                     formatter='vlQueueGridFormatSelectBox'
165                     styles='text-align: center;'
166                     nonSelectable='true'>
167                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
168                 </th>
169                 <th
170                     field='+view_marc'
171                     get='vlGetViewMARC'
172                     formatter='vlFormatViewMARC' 
173                     styles='text-align: center;'
174                     nonSelectable='true'>[% l('View MARC') %]</th>
175                 <th
176                     field='+get_matches'
177                     get='vlGetViewMatches'
178                     formatter='vlFormatViewMatches'
179                     styles='text-align: center;'
180                     nonSelectable='true'>[% l('Matches') %]</th>
181                 <th
182                     field='+get_errors'
183                     get='vlGetViewErrors'
184                     formatter='vlFormatViewErrors'
185                     styles='text-align: center;'
186                     nonSelectable='true'>[% l('Import Failures') %]</th>
187                 <th
188                     field='import_time'
189                     styles='text-align: center;'
190                     get='vlGetDateTimeField'>[% l('Import Time') %]</th>
191             </tr>
192         </thead>
193     </table>
194     <div></div>
195 </div>
196
197 <div jsId='queueItemsImportDialog' dojoType="dijit.Dialog" title="[% l('Import Items') %]">
198     <div dojoType="dijit.layout.ContentPane">
199         <table class='form_table'>
200             <tbody>
201                 <tr>
202                     <td>[% l('Merge Profile') %]</td>
203                     <td colspan='4'>
204                         <div jsId='vlUploadMergeProfile2' 
205                             dojoType='dijit.form.FilteringSelect' required='false' labelAttr='name' searchAttr='name'></div>
206                     </td>
207                 </tr>
208                 <tr>
209                     <td>[% l('Import Non-Matching Records') %]</td>
210                     <td colspan='4'>
211                         <input jsId='vlUploadQueueImportNoMatch2' dojoType='dijit.form.CheckBox'/>
212                     </td>
213                 </tr>
214                 <tr>
215                     <td>[% l('Merge On Exact Match (901c)') %]</td>
216                     <td colspan='4'>
217                         <input jsId='vlUploadQueueAutoOverlayExact2' dojoType='dijit.form.CheckBox'/>
218                     </td>
219                 </tr>
220                 <tr>
221                     <td>[% l('Merge On Single Match') %]</td>
222                     <td colspan='4'>
223                         <input jsId='vlUploadQueueAutoOverlay1Match2' dojoType='dijit.form.CheckBox'/>
224                     </td>
225                 </tr>
226                 <tr>
227                     <td>[% l('Merge On Best Match') %]</td>
228                     <td colspan='4'><input jsId='vlUploadQueueAutoOverlayBestMatch2' dojoType='dijit.form.CheckBox'/></td>
229                 </tr>
230                 <tr>
231                     <td>[% l('Best/Single Match Minimum Quality Ratio') %]</td>
232                     <td colspan='4'>
233                         <input style='width:3em' value='0.0' jsId='vlUploadQueueAutoOverlayBestMatchRatio2' dojoType='dijit.form.TextBox'/>
234                         <span style='padding-left: 10px; font-size:90%'>[% l('New Record Quality / Quality of Best Match') %]</span>
235                     </td>
236                 </tr>
237                 <tr>
238                     <td>[% l('Insufficient Quality Fall-Through Profile') %]</td>
239                     <td colspan='4'>
240                         <div jsId='vlUploadFtMergeProfile2' dojoType='dijit.form.FilteringSelect' required='false' labelAttr='name' searchAttr='name'></div>
241                     </td>
242                 </tr>
243                 <tr id='vl-trash-groups-row2'>
244                     <td>[% l('Remove MARC Field Groups') %]</td>
245                     <td colspan='4'>
246                         <select style='overflow-y:auto;' multiple='true' 
247                             jsId="vlUploadTrashGroups2" 
248                             dojoType="dojox.form.CheckedMultiSelect">
249                         </select>
250                     </td>
251                 </tr>
252                 <tr><td colspan='2' style='margin-top:10px;border-bottom:1px solid #888;border-top:2px solid #888'>
253                     <b>[% l('Copy Import Actions') %]</b>
254                 </td></tr>
255                 <tr>
256                     <td>[% l('Auto-overlay In-process Acquisition Copies') %]</td>
257                     <td colspan='4'><input jsId='vlUploadQueueAutoOverlayInprocessAcqCopies2' dojoType='dijit.form.CheckBox'/></td>
258                 </tr>
259
260                 <tr>
261                     <td>
262                         <button dojoType='dijit.form.Button' jsId='queueItemsImportCancelButton'>[% l('Cancel') %]</button>
263                     </td>
264                     <td>
265                         <button dojoType='dijit.form.Button' jsId='queueItemsImportGoButton'>[% l('Import') %]</button>
266                     </td>
267                 </tr>
268             </tbody>
269         </table>
270     </div>
271 </div>
272
273
274 <div jsId='progressDialog' dojoType='openils.widget.ProgressDialog'></div>
275 <div jsId='createBucketDialog' dojoType="dijit.Dialog" class='center' title="[% l('Copy Records to Bucket') %]">
276     <div dojoType="dijit.layout.ContentPane" class='pad-level-1'>
277         <div class='pad-level-1'>[% l('Please enter the name of the bucket to append/create.') %]</div>
278         <div class='pad-level-1'><input dojoType='dijit.form.TextBox' name='name' id='create-bucket-dialog-name'/></div>
279         <div>
280             <button class='pad-level-1' dojoType="dijit.form.Button" type="submit" onClick="handleCreateBucket()">[% l('Apply') %]</button>
281             <button class='pad-level-1' dojoType="dijit.form.Button" type="submit" onClick="createBucketDialog.hide()">[% l('Cancel') %]</button>
282         </div>
283     </div>
284 </div>