Merge branch 'dbs/ttopac-move-templates' into dbs/template-toolkit-integration-on...
[working/Evergreen.git] / Open-ILS / src / templates / default / vandelay / inc / queue.tt2
1 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
2     <table class='wide'>
3         <tr>
4             <td align='left'>
5                 <h1>&vandelay.record.queue; <span style='font-style:italic;' id='vl-queue-summary-name'/></h1><br/>
6             </td>
7             <td align='right'>
8                 &vandelay.queue.total; <span style='font-weight:bold;' id='vl-queue-summary-total-count'/>
9                 &vandelay.queue.imported; <span style='font-weight:bold;' id='vl-queue-summary-import-count'/>
10             </td>
11         </tr>
12     </table>
13 </div>
14
15 <br/>
16
17 <div jsId='queueItemsImportDialog' dojoType="dijit.Dialog" title="Import Items">
18     <div dojoType="dijit.layout.ContentPane">
19         <table class='form_table'>
20             <tbody>
21                 <tr>
22                     <td>&vandelay.auto.import.noncolliding;</td>
23                     <td colspan='4'>
24                         <input jsId='vlUploadQueueAutoImport2' dojoType='dijit.form.CheckBox'/>
25                     </td>
26                 </tr>
27                 <tr>
28                     <td>&vandelay.auto.import.auto_overlay_exact;</td>
29                     <td colspan='4'>
30                         <input jsId='vlUploadQueueAutoOverlayExact2' dojoType='dijit.form.CheckBox'/>
31                     </td>
32                 </tr>
33                 <tr>
34                     <td>&vandelay.auto.import.auto_overlay_1match;</td>
35                     <td colspan='4'>
36                         <input jsId='vlUploadQueueAutoOverlay1Match2' dojoType='dijit.form.CheckBox'/>
37                     </td>
38                 </tr>
39                 <tr>
40                     <td>&vandelay.auto.import.merge_profile;</td>
41                     <td colspan='4'>
42                         <div jsId='vlUploadMergeProfile2' 
43                             dojoType='dijit.form.FilteringSelect' required='false' labelAttr='name' searchAttr='name'/>
44                     </td>
45                 </tr>
46                 <tr>
47                     <td>
48                         <button dojoType='dijit.form.Button' jsId='queueItemsImportCancelButton'>Cancel</button>
49                     </td>
50                     <td>
51                         <button dojoType='dijit.form.Button' jsId='queueItemsImportGoButton'>Import</button>
52                     </td>
53                 </tr>
54             </tbody>
55         </table>
56     </div>
57 </div>
58
59 <!-- queue grid navigation row -->
60 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
61
62     <table width='100%' style='margin-bottom:0px;'>
63         <tr>
64             <td align='left' valign='bottom'>
65                 <select id='vl-queue-actions-selector'>
66                     <option selected='selected' disabled='disabled' value='select-actions'>&vandelay.select_actions;</option>
67                     <option value='import'>&vandelay.import.selected;</option>
68                     <option value='import_all'>&vandelay.import.all;</option>
69                     <option value='delete_queue'>&vandelay.delete.queue;</option>
70                 </select>
71                 <script type="text/javascript">
72                     var sel = dojo.byId('vl-queue-actions-selector');
73                     sel.onchange = function(evt) {
74                         switch(openils.Util.selectorValue(evt.target)) {
75                             case 'import': vlHandleQueueItemsAction('import'); break;;
76                             case 'import_all': vlHandleQueueItemsAction('import_all'); break;;
77                             case 'delete_queue': 
78                                 if(confirm('&vandelay.sure.to.delete.queue;')) {
79                                     vlDeleteQueue(currentType, currentQueueId, 
80                                         function() { displayGlobalDiv('vl-marc-upload-div'); });
81                                 }
82                         }
83                         evt.target.selectedIndex = 0;
84                     }
85                 </script>
86             </td>
87             <td align='middle' valign='bottom'>
88                 <style type="text/css">.filter_span { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
89                 <table><tr>
90                     <td>
91                         <span>&vandelay.limit.to.collision.matches;</span>
92                         <span class='filter_span'>
93                             <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
94                         </span>
95
96                         <span>&vandelay.limit.to.non.imported;</span>
97                         <span class='filter_span'>
98                             <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowNonImport' 
99                                 checked='checked' onchange='retrieveQueuedRecords();'/>
100                         </span>
101
102                         <span>&vandelay.results.per.page;</span>
103                         <span class='filter_span'>
104                             <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
105                                 value='10' onchange='retrieveQueuedRecords();'>
106                                 <option value='10'>10</option>
107                                 <option value='20'>20</option>
108                                 <option value='50'>50</option>
109                                 <option value='100'>100</option>
110                             </select>
111                         </span>
112
113                         <span style='padding-left:5px;'>&vandelay.page;</span>
114                         <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
115                     </td>
116                 </tr></table>
117             </td>
118             <td align='right' valign='bottom'>
119                 <span style='padding-right:4px;'>
120                     <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&vandelay.prev.page;</a>
121                 </span>
122                 <span style='padding-right:10px;'>
123                     <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page;</a>
124                 </span>
125             </td>
126         </tr>
127     </table>
128 </div>
129
130
131 <!-- Bib Queue Grid -->
132 <div class='' id='vl-bib-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
133     <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{id:'*'}" autoHeight='true'>
134         <thead>
135             <tr>
136                 <th 
137                     field='+row_selector'
138                     get='vlQueueGridDrawSelectBox'
139                     formatter='vlQueueGridFormatSelectBox'
140                     styles='text-align: center;'
141                     nonSelectable='true'>
142                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
143                 </th>
144                 <th
145                     field='+view_marc'
146                     get='vlGetViewMARC'
147                     formatter='vlFormatViewMARC' 
148                     styles='text-align: center;'
149                     nonSelectable='true'>&vandelay.view.marc;</th>
150                 <th
151                     field='+get_matches'
152                     get='vlGetViewMatches'
153                     formatter='vlFormatViewMatches'
154                     styles='text-align: center;'
155                     nonSelectable='true'>&vandelay.matches;</th>
156                 <th
157                     field='import_time'
158                     styles='text-align: center;'
159                     get='vlGetDateTimeField'>&vandelay.import.time;</th>
160             </tr>
161         </thead>
162     </table>
163     <div/>
164 </div>
165
166 <!-- Auth Queue Grid -->
167 <div class='' id='vl-auth-queue-grid-wrapper' dojoType='dijit.layout.ContentPane'>
168     <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" autoHeight='true'> 
169         <thead>
170             <tr>
171                 <th 
172                     field='+row_selector'
173                     get='vlQueueGridDrawSelectBox'
174                     formatter='vlQueueGridFormatSelectBox'
175                     styles='text-align: center;'
176                     nonSelectable='true'>
177                         <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
178                 </th>
179                 <th
180                     field='+view_marc'
181                     get='vlGetViewMARC'
182                     formatter='vlFormatViewMARC' 
183                     styles='text-align: center;'
184                     nonSelectable='true'>&vandelay.view.marc;</th>
185                 <th
186                     field='+get_matches'
187                     get='vlGetViewMatches'
188                     formatter='vlFormatViewMatches'
189                     styles='text-align: center;'
190                     nonSelectable='true'>&vandelay.matches;</th>
191                 <th
192                     field='import_time'
193                     styles='text-align: center;'
194                     get='vlGetDateTimeField'>&vandelay.import.time;</th>
195             </tr>
196         </thead>
197     </table>
198     <div/>
199 </div>
200
201