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