64f483ec9de1aaaddd729d5cbad979cac22e4772
[working/Evergreen.git] / Open-ILS / web / templates / default / vandelay / inc / queue.tt2
1 <table class='wide' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
2     <tr>
3         <td align='left'>
4             <h1>&vandelay.record.queue; <span style='font-style:italic;' id='vl-queue-summary-name'/></h1><br/>
5         </td>
6         <td align='right'>
7             &vandelay.queue.total; <span style='font-weight:bold;' id='vl-queue-summary-total-count'/>
8             &vandelay.queue.imported; <span style='font-weight:bold;' id='vl-queue-summary-import-count'/>
9         </td>
10     </tr>
11 </table>
12
13 <br/>
14 <div id='vl-queue-div-grid' class='tall' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
15     <!-- queue grid navigation row -->
16     <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
17         <table width='100%' style='margin-bottom:0px;'>
18             <tr>
19                 <td align='left' valign='bottom'>
20                     <select id='vl-queue-actions-selector'>
21                         <option selected='selected' disabled='disabled' value='select-actions'>&vandelay.select_actions;</option>
22                         <option value='import'>&vandelay.import.selected;</option>
23                         <option value='import_all'>&vandelay.import.all;</option>
24                         <option value='delete_queue'>&vandelay.delete.queue;</option>
25                     </select>
26                     <script>
27                         var sel = dojo.byId('vl-queue-actions-selector');
28                         sel.onchange = function(evt) {
29                             switch(openils.Util.selectorValue(evt.target)) {
30                                 case 'import': vlImportSelectedRecords(); break;;
31                                 case 'import_all': vlImportAllRecords(); break;;
32                                 case 'delete_queue': 
33                                     if(confirm('&vandelay.sure.to.delete.queue;')) {
34                                         vlDeleteQueue(currentType, currentQueueId, 
35                                             function() { displayGlobalDiv('vl-marc-upload-div'); });
36                                     }
37                             }
38                             evt.target.selectedIndex = 0;
39                         }
40                     </script>
41                 </td>
42                 <td align='middle' valign='bottom'>
43                     <style>.filter_span { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
44                     <table><tr>
45                         <td>
46                             <span>&vandelay.limit.to.collision.matches;</span>
47                             <span class='filter_span'>
48                                 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
49                             </span>
50
51                             <span>&vandelay.limit.to.non.imported;</span>
52                             <span class='filter_span'>
53                                 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowNonImport' checked='checked' onchange='retrieveQueuedRecords();'/>
54                             </span>
55
56                             <span>&vandelay.results.per.page;</span>
57                             <span class='filter_span'>
58                                 <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
59                                     value='10' onchange='retrieveQueuedRecords();'>
60                                     <option value='10'>10</option>
61                                     <option value='20'>20</option>
62                                     <option value='50'>50</option>
63                                     <option value='100'>100</option>
64                                 </select>
65                             </span>
66
67                             <span style='padding-left:5px;'>&vandelay.page;</span>
68                             <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
69                         </td>
70                     </tr></table>
71                 </td>
72                 <td align='right' valign='bottom'>
73                     <span style='padding-right:4px;'>
74                         <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&#171; &vandelay.prev.page;</a>
75                     </span>
76                     <span style='padding-right:10px;'>
77                         <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page; &#187;</a>
78                     </span>
79                 </td>
80             </tr>
81         </table>
82     </div>
83
84     <!-- Bib Queue Grid -->
85     <div class='hidden tall' id='vl-bib-queue-grid-wrapper'>
86         <div dojoType="openils.widget.GridColumnPicker" jsid="vlBibQueueGridMenu" style="display: none;" grid='vlBibQueueGrid'>
87             <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
88         </div>
89         <div class='tall' dojoType="dijit.layout.ContentPane" layoutAlign='client' style='border:1px solid #FFF;'>
90             <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{import_time:'*'}" headerMenu='vlBibQueueGridMenu' style='height:600px;'>
91                 <thead>
92                     <tr>
93                         <th 
94                             field='+row_selector'
95                             get='vlQueueGridDrawSelectBox'
96                             formatter='vlQueueGridFormatSelectBox'
97                             styles='text-align: center;'
98                             nonSelectable='true'>
99                                 <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
100                         </th>
101                         <th
102                             field='+view_marc'
103                             get='vlGetViewMARC'
104                             formatter='vlFormatViewMARC' 
105                             styles='text-align: center;'
106                             nonSelectable='true'>&vandelay.view.marc;</th>
107                         <th
108                             field='+get_matches'
109                             get='vlGetViewMatches'
110                             formatter='vlFormatViewMatches'
111                             styles='text-align: center;'
112                             nonSelectable='true'>&vandelay.matches;</th>
113                         <th
114                             field='import_time'
115                             styles='text-align: center;'
116                             get='vlGetDateTimeField'>&vandelay.import.time;</th>
117                     </tr>
118                 </thead>
119             </table>
120         </div>
121     </div>
122
123     <!-- Auth Queue Grid -->
124     <div class='hidden' id='vl-auth-queue-grid-wrapper'>
125         <div dojoType="openils.widget.GridColumnPicker" jsid="vlAuthQueueGridMenu" style="display: none;" grid='vlAuthQueueGrid'>
126             <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
127         </div>
128         <div class='tall' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
129             <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" headerMenu='vlAuthQueueGridMenu'> 
130                 <thead>
131                     <tr>
132                         <th 
133                             field='+row_selector'
134                             get='vlQueueGridDrawSelectBox'
135                             formatter='vlQueueGridFormatSelectBox'
136                             styles='text-align: center;'
137                             nonSelectable='true'>
138                                 <input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"></input>
139                         </th>
140                         <th
141                             field='+view_marc'
142                             get='vlGetViewMARC'
143                             formatter='vlFormatViewMARC' 
144                             styles='text-align: center;'
145                             nonSelectable='true'>&vandelay.view.marc;</th>
146                         <th
147                             field='+get_matches'
148                             get='vlGetViewMatches'
149                             formatter='vlFormatViewMatches'
150                             styles='text-align: center;'
151                             nonSelectable='true'>&vandelay.matches;</th>
152                         <th
153                             field='import_time'
154                             styles='text-align: center;'
155                             get='vlGetDateTimeField'>&vandelay.import.time;</th>
156                     </tr>
157                 </thead>
158             </table>
159         </div>
160     </div>
161
162 </div>
163