]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/vandelay/inc/queue.tt2
Merge remote branch 'working/collab/berick/tpac-misc-cleanup' into template-toolkit...
[working/Evergreen.git] / Open-ILS / src / templates / 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")'>[% l('Import Selected Records') %]</a></td></tr>
13                                 <tr><td><a href='javascript:;' onclick='vlHandleQueueItemsAction("import_all")'>[% l('Import All  Records') %]</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("[% l('Are you sure you want to delete this queue?') %]")) {
17                                         vlDeleteQueue(currentType, currentQueueId, 
18                                             function() { displayGlobalDiv("vl-marc-upload-div"); });}'>[% l('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>[% l('Records in Queue:') %]</td><td> <span style='font-weight:bold;' id='vl-queue-summary-total-count'/></td></tr>
28                                 <tr><td>[% l('Records 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>Items Imported</td><td> <span style='font-weight:bold;' id='vl-queue-summary-import-item-imported-count'/></td></tr>
32                                 <tr><td>Item Import Failures</td><td> <span style='font-weight:bold;' id='vl-queue-summary-item-error-count'/></td></tr>
33                             </tbody>
34                         </table>
35                     </td>
36
37                     <td valign='top'> <!-- filters -->
38                         <table id='vl-queue-filter-table' class='queue-nav-table'>
39                             <thead><tr><th colspan='2' class='queue-nav-table-label'>Queue Filters</th></tr></thead>
40                             <tbody>
41                                 <tr>
42                                     <td>[% l('Limit to Records with Matches') %]</td>
43                                     <td>
44                                         <input dojoType='dijit.form.CheckBox' 
45                                             jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
46                                     </td>
47                                 </tr>
48                                 <tr>
49                                     <td>[% l('Limit to Non-Imported Records') %]</td>
50                                     <td>
51                                         <input dojoType='dijit.form.CheckBox' 
52                                             jsId='vlQueueGridShowNonImport' onchange='retrieveQueuedRecords();'/>
53                                     </td>
54                                 </tr>
55                                 <tr>
56                                     <td>[% l('Limit to Records with Import Errors') %]</td>
57                                     <td>
58                                         <input dojoType='dijit.form.CheckBox' 
59                                             jsId='vlQueueGridShowImportErrors' onchange='retrieveQueuedRecords();'/>
60                                     </td>
61                                 </tr>
62                             </tbody>
63                         </table>
64                     </td>
65                 </tr>
66             </table>
67         </td>
68
69         <td align='right' valign='bottom'> <!-- big right td -->
70             <table id='vl-queue-paging-table' class='queue-nav-table'>
71                 <tbody>
72                     <tr><td valign='bottom' align='right'>
73                         <select id='vl-queue-export-options' style='margin-right: 10px;'>
74                             <!-- TODO I18N -->
75                             <option value=''>Export Queue As...</option>
76                             <option value='print'>Print</option>
77                             <option value='csv'>CSV</option>
78                             <option value='email'>Email</option>
79                         </select>
80                         <span style='padding-right:5px;'>[% l('Records Per Page') %]</span>
81                         <span class='queue-pager-span'>
82                             <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
83                                 value='10' onchange='retrieveQueuedRecords();'>
84                                 <option value='10'>10</option>
85                                 <option value='20'>20</option>
86                                 <option value='50'>50</option>
87                                 <option value='100'>100</option>
88                             </select>
89                         </span>
90
91                         <span class='queue-pager-span'>
92                             <span style='padding-left:5px;'>[% l('Page') %]</span>
93                             <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
94                         </span>
95
96                         <span style='padding-right:8px;'>
97                             <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>[% l('&#171; Previous') %]</a>
98                         </span>
99                         <span style='padding-right:10px;'>
100                             <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>[% l('Next &#187;') %]</a>
101                         </span>
102                     </td></tr>
103                 </tbody>
104             </table>
105         </td>
106     </tr></table>
107     </fieldset>
108 </div>
109
110 <!-- Bib Queue Grid -->
111 <div class='' id='vl-bib-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
112     <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{id:'*'}" autoHeight='true'>
113         <thead>
114             <tr>
115                 <th 
116                     field='+row_selector'
117                     get='vlQueueGridDrawSelectBox'
118                     formatter='vlQueueGridFormatSelectBox'
119                     width='16'
120                     styles='text-align: center;'
121                     nonSelectable='true'>
122                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
123                 </th>
124                 <th
125                     field='+view_marc'
126                     get='vlGetViewMARC'
127                     formatter='vlFormatViewMARC' 
128                     styles='text-align: center;'
129                     nonSelectable='true'>[% l('View MARC') %]</th>
130                 <th
131                     field='+get_matches'
132                     get='vlGetViewMatches'
133                     formatter='vlFormatViewMatches'
134                     styles='text-align: center;'
135                     nonSelectable='true'>[% l('Matches') %]</th>
136                 <th
137                     field='+get_errors'
138                     get='vlGetViewErrors'
139                     formatter='vlFormatViewErrors'
140                     styles='text-align: center;'
141                     nonSelectable='true'>Import Failures</th>
142                 <th
143                     field='import_time'
144                     styles='text-align: center;'
145                     get='vlGetDateTimeField'>[% l('Import Time') %]</th>
146             </tr>
147         </thead>
148     </table>
149     <div/>
150 </div>
151
152 <!-- Auth Queue Grid -->
153 <div class='' id='vl-auth-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
154     <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" autoHeight='true'> 
155         <thead>
156             <tr>
157                 <th 
158                     field='+row_selector'
159                     get='vlQueueGridDrawSelectBox'
160                     formatter='vlQueueGridFormatSelectBox'
161                     styles='text-align: center;'
162                     nonSelectable='true'>
163                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
164                 </th>
165                 <th
166                     field='+view_marc'
167                     get='vlGetViewMARC'
168                     formatter='vlFormatViewMARC' 
169                     styles='text-align: center;'
170                     nonSelectable='true'>[% l('View MARC') %]</th>
171                 <th
172                     field='+get_matches'
173                     get='vlGetViewMatches'
174                     formatter='vlFormatViewMatches'
175                     styles='text-align: center;'
176                     nonSelectable='true'>[% l('Matches') %]</th>
177                 <th
178                     field='+get_errors'
179                     get='vlGetViewErrors'
180                     formatter='vlFormatViewErrors'
181                     styles='text-align: center;'
182                     nonSelectable='true'>Import Failures</th>
183                 <th
184                     field='import_time'
185                     styles='text-align: center;'
186                     get='vlGetDateTimeField'>[% l('Import Time') %]</th>
187             </tr>
188         </thead>
189     </table>
190     <div/>
191 </div>
192
193 <div jsId='queueItemsImportDialog' dojoType="dijit.Dialog" title="Import Items">
194     <div dojoType="dijit.layout.ContentPane">
195         <table class='form_table'>
196             <tbody>
197                 <tr>
198                     <td>[% l('Merge Profile') %]</td>
199                     <td colspan='4'>
200                         <div jsId='vlUploadMergeProfile2' 
201                             dojoType='dijit.form.FilteringSelect' required='false' labelAttr='name' searchAttr='name'/>
202                     </td>
203                 </tr>
204                 <tr>
205                     <td>[% l('Import Non-Matching Records') %]</td>
206                     <td colspan='4'>
207                         <input jsId='vlUploadQueueImportNoMatch2' dojoType='dijit.form.CheckBox'/>
208                     </td>
209                 </tr>
210                 <tr>
211                     <td>[% l('Merge On Exact Match (901c)') %]</td>
212                     <td colspan='4'>
213                         <input jsId='vlUploadQueueAutoOverlayExact2' dojoType='dijit.form.CheckBox'/>
214                     </td>
215                 </tr>
216                 <tr>
217                     <td>[% l('Merge On Single Match') %]</td>
218                     <td colspan='4'>
219                         <input jsId='vlUploadQueueAutoOverlay1Match2' dojoType='dijit.form.CheckBox'/>
220                     </td>
221                 </tr>
222                 <tr>
223                     <td>[% l('Merge On Best Match') %]</td>
224                     <td colspan='4'><input jsId='vlUploadQueueAutoOverlayBestMatch2' dojoType='dijit.form.CheckBox'/></td>
225                 </tr>
226                 <tr>
227                     <td>[% l('Best/Single Match Minimum Quality Ratio') %]</td>
228                     <td colspan='4'>
229                         <input style='width:3em' value='0.0' jsId='vlUploadQueueAutoOverlayBestMatchRatio2' dojoType='dijit.form.TextBox'/>
230                         <span style='padding-left: 10px; font-size:90%'>[% l('New Record Quality / Quality of Best Match') %]</span>
231                     </td>
232                 </tr>
233                 <tr>
234                     <td>[% l('Insufficient Quality Fall-Through Profile') %]</td>
235                     <td colspan='4'>
236                         <div jsId='vlUploadFtMergeProfile2' dojoType='dijit.form.FilteringSelect' required='false' labelAttr='name' searchAttr='name'/>
237                     </td>
238                 </tr>
239                 <tr>
240                     <td>
241                         <button dojoType='dijit.form.Button' jsId='queueItemsImportCancelButton'>Cancel</button>
242                     </td>
243                     <td>
244                         <button dojoType='dijit.form.Button' jsId='queueItemsImportGoButton'>Import</button>
245                     </td>
246                 </tr>
247             </tbody>
248         </table>
249     </div>
250 </div>
251
252
253