changed the optional XML parsing to support DTD replacement via xml::libxml. added...
[working/Evergreen.git] / Open-ILS / web / vandelay / inc / queue.xml
1 <table class='wide'>
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 <script>
13     var vlQueueGridLayout;
14     function resetVlQueueGridLayout() {
15         vlQueueGridLayout = [{
16             cells : [[
17                 {
18                     name: '&lt;input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"/>', 
19                     get: vlQueueGridDrawSelectBox, 
20                     styles : 'text-align: center;',
21                     nonSelectable : true
22                 }, {   
23                     name: '&vandelay.view.marc;', 
24                     get: vlGetViewMARC, styles : 'text-align: center;',
25                     value: '&lt;a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, false, '+
26                         'function(){displayGlobalDiv(\'vl-queue-div\');});">&vandelay.view.marc;&lt;/a>',
27                     nonSelectable : true
28                 }, {   
29                     name: '&vandelay.matches;', 
30                     get: vlGetViewMatches, styles : 'text-align: center;',
31                     value:'&lt;a href="javascript:void(0);" onclick="vlLoadMatchUI(RECID);">&vandelay.matches;&lt;/a>',
32                     nonSelectable : true
33                 }, {
34                     name: '&vandelay.import.time;', field:'import_time',  styles : 'text-align: center;',
35                     get:vlGetDateTimeField, 
36                 }
37             ]]
38         }];
39     }
40 </script>
41 <div id='vl-queue-div-grid' class='tall' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
42
43     <!-- queue grid navigation row -->
44     <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
45         <table width='100%' style='margin-bottom:0px;'>
46             <tr>
47                 <td align='left' valign='bottom'>
48                     <select id='vl-queue-actions-selector'>
49                         <option selected='selected' disabled='disabled' value='select-actions'>&vandelay.select_actions;</option>
50                         <option value='import'>&vandelay.import.selected;</option>
51                         <option value='import_all'>&vandelay.import.all;</option>
52                         <option value='delete_queue'>&vandelay.delete.queue;</option>
53                     </select>
54                     <script>
55                         var sel = dojo.byId('vl-queue-actions-selector');
56                         sel.onchange = function(evt) {
57                             switch(openils.Util.selectorValue(evt.target)) {
58                                 case 'import': vlImportSelectedRecords(); break;;
59                                 case 'import_all': vlImportAllRecords(); break;;
60                                 case 'delete_queue': 
61                                     if(confirm('&vandelay.sure.to.delete.queue;')) {
62                                         vlDeleteQueue(currentType, currentQueueId, 
63                                             function() { displayGlobalDiv('vl-marc-upload-div'); });
64                                     }
65                             }
66                             evt.target.selectedIndex = 0;
67                         }
68                     </script>
69                 </td>
70                 <td align='middle' valign='bottom'>
71                     <style>.filter_span { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
72                     <table><tr>
73                         <td>
74                             <span>&vandelay.limit.to.collision.matches;</span>
75                             <span class='filter_span'>
76                                 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches' onchange='retrieveQueuedRecords();'/>
77                             </span>
78
79                             <span>&vandelay.limit.to.non.imported;</span>
80                             <span class='filter_span'>
81                                 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowNonImport' checked='checked' onchange='retrieveQueuedRecords();'/>
82                             </span>
83
84                             <span>&vandelay.results.per.page;</span>
85                             <span class='filter_span'>
86                                 <select jsId='vlQueueDisplayLimit' id='vl-queue-display-limit-selector'
87                                     value='10' onchange='retrieveQueuedRecords();'>
88                                     <option value='10'>10</option>
89                                     <option value='20'>20</option>
90                                     <option value='50'>50</option>
91                                     <option value='100'>100</option>
92                                 </select>
93                             </span>
94
95                             <span style='padding-left:5px;'>&vandelay.page;</span>
96                             <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
97                         </td>
98                     </tr></table>
99                 </td>
100                 <td align='right' valign='bottom'>
101                     <span style='padding-right:4px;'>
102                         <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>&#171; &vandelay.prev.page;</a>
103                     </span>
104                     <span style='padding-right:10px;'>
105                         <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>&vandelay.next.page; &#187;</a>
106                     </span>
107                 </td>
108             </tr>
109         </table>
110     </div>
111
112     <!-- Queue Grid -->
113     <div class='hidden' id='vl-bib-queue-grid-wrapper'>
114         <div dojoType="openils.widget.GridColumnPicker" jsid="vlBibQueueGridMenu" style="display: none;" grid='vlBibQueueGrid'>
115             <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
116         </div>
117         <div style='height:600px' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
118             <table dojoType='dojox.grid.DataGrid' jsId='vlBibQueueGrid' query="{id:'*'}" headerMenu='vlBibQueueGridMenu'> 
119             </table>
120         </div>
121     </div>
122     <div class='hidden' id='vl-auth-queue-grid-wrapper'>
123         <div dojoType="openils.widget.GridColumnPicker" jsid="vlAuthQueueGridMenu" style="display: none;" grid='vlAuthQueueGrid'>
124             <div dojoType="dojox.widget.PlaceholderMenuItem" label="GridColumns"></div>
125         </div>
126         <div style='height:600px' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
127             <table dojoType='dojox.grid.DataGrid' jsId='vlAuthQueueGrid' query="{id:'*'}" headerMenu='vlAuthQueueGridMenu'> 
128             </table>
129         </div>
130     </div>
131 </div>
132