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