]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/common/li_table.tt2
Acq: detail.tt2 -> info.tt2 ("detail" misleadingly suggested lineitem detail)
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / common / li_table.tt2
1 <script src='[% ctx.media_prefix %]/js/ui/default/acq/common/li_table.js'> </script>
2 <div id='acq-lit-table-container'>
3     <div id='acq-lit-table-div' class='hidden'>
4
5         <!-- Lineitem (bib record) list -->
6         <table id='acq-lit-table' class='oils-generic-table'>
7             <thead>
8                 <tr>
9                     <th colspan='0'>
10                         <table style='width:100%;'>
11                             <tr>
12                                 <td>
13                                     <span>
14                                         <select dojoType='dijit.form.FilteringSelect' value='_' jsId='acqLitLiActionsSelector'>
15                                             <option mask='*'  value='_'>--Actions--</option>
16                                             <option mask='sr' value='save_picklist'>Save Items To Selection List</option>
17                                             <option mask='pl' value='selector_ready'>Mark Ready for Selector</option>
18                                             <option mask='pl' value='order_ready'>Mark Ready for Order</option>
19                                             <option mask='*'  value='delete_selected'>Delete Selected Items</option>
20                                             <option mask='*'  value='add_brief_record'>Add Brief Record</option>
21                                             <option mask='*'  value='export_attr_list'>Export Single Attribute List</option>
22                                             <option mask='po' value='' disabled='disabled'>----PO----</option>
23                                             <option mask='sr|pl' value='create_order'>Create Purchase Order</option>
24                                             <option mask='po' value='create_assets'>Load Bibs and Items</option>
25                                             <option mask='po' value='cancel_lineitems'>Cancel Selected Lineitems</option>
26                                             <option mask='po' value='receive_po'>Mark Purchase Order as Received</option>
27                                             <option mask='po' value='rollback_receive_po'>Un-Receive Purchase Order</option>
28                                             <option mask='po' value='print_po'>Print Purchase Order</option>
29                                         </select>
30                                         <span id="acq-lit-export-attr-holder" class="hidden">
31                                             <input dojoType="dijit.form.FilteringSelect" id="acq-lit-export-attr" jsId="acqLitExportAttrSelector" labelAttr="description" searchAttr="description" />
32                                             <span dojoType="dijit.form.Button" jsId="acqLitExportAttrButton">Export List</span>
33                                         </span>
34                                         <span id="acq-lit-cancel-reason" class="hidden">
35                                             <span id="acq-lit-cancel-reason-selector"></span>
36                                             <span dojoType="dijit.form.Button" jsId="acqLitCancelLineitemsButton">Cancel Line Items</span>
37                                         </span>
38                                     </span>
39                                     <span id='acq-lit-generic-progress' class='hidden'>
40                                         <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litGenericProgress"></span>
41                                     </span>
42                                 </td>
43                                 <td>
44                                     <div style='width:100%;text-align:right;'>
45                                         <span style='padding-right:15px;'>
46                                             <a href='javascript:void(0);' id='acq-lit-prev' style='visibility:hidden'>&#171; Previous</a>
47                                             <a href='javascript:void(0);' id='acq-lit-next' style='visibility:hidden'>Next &#187;</a>
48                                         </span>
49                                     </div>
50                                 </td>
51                             </tr>
52                         </table>
53                     </th>
54                 </tr>
55             </thead>
56             <tbody><tr><td colspan='0' style='height:20px;'/></tr></tbody>
57             <tbody style='font-weight:bold;border:1px solid #aaa;'>
58                 <tr>
59                     <td><span><a id='acq-lit-select-toggle' href='javascript:void(0);'>&#x2713</a></span></td>
60                     <td>Line Items</td>
61                     <td></td>
62                     <td></td>
63                     <td>Items</td>
64                     <td>Notes</td>
65                     <td>Status</td>
66                     <td>Price</td>
67                 </tr>
68             </tbody>
69             <tbody id='acq-lit-tbody'>
70                 <tr id='acq-lit-row' class='acq-lit-row'>
71                     <td name='selector'><input type='checkbox' name='selectbox'/></td>
72                     <td style='width:75%;'>
73                         <table style='width:100%;'>
74                             <tbody>
75                                 <tr>
76                                     <td rowspan='2' style='width:43px;'><img style='width:40px;height:65px;' name='jacket'></img></td>
77                                     <td style='width:70%;font-weight:bold;'>
78                                         <a attr='title' href='javascript:void(0);'></a>
79                                         <span name='pl' class='hidden'>(<a name='pl_link' href='javascript:void(0);'></a>)</span>
80                                         <span name='po' class='hidden'>(<a name='po_link' href='javascript:void(0);'>PO</a>)</span>
81                                     </td>
82                                     <td rowspan='2' style='text-align:right'>
83                                     </td>
84                                 </tr>
85                                 <tr class='acq-lit-alt-row'>
86                                     <td colspan='0'>
87                                         <span attr='author'></span>
88                                         <span attr='isbn'></span>
89                                         <span attr='issn'></span>
90                                         <span attr='edition'></span>
91                                         <span attr='pubdate'></span>
92                                         <span attr='publisher'></span>
93                                         <span name='source_label'></span>
94                                     </td>
95                                 </tr>
96                             </tbody>
97                         </table>
98                     </td>
99                     <td><a class='hidden' name='real_copies_link' href='javascript:void(0);'>Update&nbsp;Barcodes</a>&nbsp;&nbsp;<a class='hidden' name='holdings_maintenance_link' href='javascript:void(0);'>Holdings&nbsp;Maintenance</a></td>
100                     <td><a name='receive_link' href='javascript:void(0);'>Mark&nbsp;Received</a><a name='unreceive_link' href='javascript:void(0);'>Un-Receive</a></td>
101                     </td>
102                     <td><a name='copieslink' href='javascript:void(0);'>Copies(<span name='count'>0</span>)</a></td>
103                     <td>
104                         <a name='noteslink' href='javascript:void(0);'>Notes(<span name='notes_count'>0</span>)</a><span name="notes_alert_flag"></span>
105                     </td>
106                     <td><span name='li_state'></span></td>
107                     <td><input type='text' size='8' name='price'/></td>
108                 </tr>
109             </tbody>
110         </table>
111     </div>
112
113     <!-- Bib record / Lineitem info table -->
114     [% INCLUDE "default/acq/common/info.tt2" which = "Lit" %]
115
116     <!-- Lineitem notes table -->
117     [% INCLUDE "default/acq/common/notes.tt2" which = "Lit" %]
118
119     <!-- Copies table -->
120     <div id='acq-lit-li-details' class='hidden'>
121         <h2>Copies</h2>
122
123         <div class='acq-lit-li-menu-bar'>
124             <table style='width:100%'>
125                 <tr>
126                     <td class="acq-lit-li-menu-left">
127                         <div dojoType='dijit.form.Button' id='acq-lit-copies-back-button'>&#x2196; Return</div>
128                         <span style='margin-left:10px;padding-left:10px;border-left:2px solid #aaa;'>
129                             Item Count: 
130                             <input dojoType='dijit.form.NumberTextBox' jsId='acqLitCopyCountInput'  
131                                 constraints="{min:0,max:1000,places:0}" style='width:40px' value='0'></input> 
132                             <div dojoType='dijit.form.Button' jsId='acqLitAddCopyCount'>Go</div>
133                         </span>
134                     </td>
135                     <td class="acq-lit-li-menu-right">
136                         <span>
137                             <div dojoType='dijit.form.Button' jsId='acqLitSaveCopies'>Save Changes</div>
138                         </span>
139                         <span id='acq-lit-update-copies-progress' class='hidden'>
140                             <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litUpdateCopiesProgress"></span>
141                         </span>
142                     </td>
143                 </tr>
144             </table>
145         </div>
146
147         <table id='acq-lit-li-details-table'>
148             <tbody style='background-color:#ddd;'>
149                 <tr id='acq-lit-li-details-batch-row'>
150                     <td><div name='owning_lib'/></td>
151                     <td><div name='location'/></td>
152                     <td><div name='collection_code'/></td>
153                     <td><div name='fund'/></td>
154                     <td><div name='circ_modifier'/></td>
155                     <td><div name='cn_label'/></td>
156                     <td colspan='3' style='text-align:left;'>
157                         <div dojoType='dijit.form.Button' jsId='acqLitBatchUpdateCopies'>Batch Update</div>
158                     </td>
159                 </tr>
160             </tbody>
161
162             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
163
164             <tbody id='acq-lit-distrib-formula-tbody'>
165                 <tr id='acq-lit-distrib-form-row'>
166                     <td colspan='0'>
167                         <span>Distribution Formulas</span>
168                         <div name='selector'></div>
169                         <div name='set_button'></div>
170                         <div name="reset_button"></div>
171                     </td>
172                 </tr>
173             </tbody>
174
175             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
176             <tbody id="acq-lit-distrib-applied-tbody" class="hidden">
177                 <tr>
178                     <td colspan="5" id="acq-lit-distrib-applied-heading">
179                         Distribution formulas applied to this lineitem:
180                     </td>
181                 </tr>
182                 <tr id="acq-lit-distrib-applied-row" class="acq-lit-distrib-applied-row">
183                     <th></th>
184                     <td colspan="4"></td>
185                 </tr>
186             </tbody>
187
188             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
189             <tbody style='font-weight:bold;'>
190                 <tr>
191                     <td style='margin-top:30px;'>Owning Branch</td>
192                     <td>Shelving Location</td>
193                     <td>Collection Code</td>
194                     <td>Fund</td>
195                     <td>Circ Modifier</td>
196                     <td>Callnumber</td>
197                     <td>Barcode</td>
198                     <td>Notes</td>
199                     <td colspan='0'>
200                 </tr>
201             </tbody>
202             <tbody id='acq-lit-li-details-tbody' class='oils-generic-table'>
203                 <tr id='acq-lit-li-details-row'>
204                     <td><div name='owning_lib'/></td>
205                     <td><div name='location'/></td>
206                     <td><div name='collection_code'/></td>
207                     <td><div name='fund'/></td>
208                     <td><div name='circ_modifier'/></td>
209                     <td><div name='cn_label'/></td>
210                     <td><div name='barcode'/></td>
211                     <td><div name='note'/></td>
212                     <td><a href='javascript:void(0);' name='receive'>Mark&nbsp;Received</a><a href='javascript:void(0);' name='unreceive'>Un-Receive</a>&nbsp;<a href="javascript:void(0);" name='cancel'>Cancel</a><span class="hidden" name='cancel_reason'></span></td>
213                     <td><div name='delete' dojoType='dijit.form.Button' style='color:red;'>X</div></td>
214                 </tr>
215             </tbody>
216         </table>
217     </div>
218
219
220     <!-- Copies table -->
221     <div id='acq-lit-real-copies-div' class='hidden'>
222         <h2>Copies</h2>
223
224         <div class='acq-lit-li-menu-bar'>
225             <table style='width:100%'>
226                 <tr>
227                     <td style='text-align:left;'>
228                         <div dojoType='dijit.form.Button' id='acq-lit-real-copies-back-button'>&#x2196; Return</div>
229                     </td>
230                     <td style='text-align:right;'>
231                         <span>
232                             <div dojoType='dijit.form.Button' jsId='acqLitSaveRealCopies'>Save Changes</div>
233                         </span>
234                     </td>
235                 </tr>
236             </table>
237         </div>
238
239         <table id='acq-lit-real-copies-table'>
240             <tbody style='font-weight:bold;'>
241                 <tr>
242                     <td style='margin-top:30px;'>Owning Branch</td>
243                     <td>Shelving Location</td>
244                     <td>Circ Modifier</td>
245                     <td>Callnumber</td>
246                     <td>Barcode</td>
247                     <td colspan='0'>
248                 </tr>
249             </tbody>
250             <tbody id='acq-lit-real-copies-tbody' class='oils-generic-table'>
251                 <tr id='acq-lit-real-copies-row'>
252                     <td><div name='owning_lib'/></td>
253                     <td><div name='location'/></td>
254                     <td><div name='circ_modifier'/></td>
255                     <td><div name='label'/></td>
256                     <td><div name='barcode'/></td>
257                 </tr>
258             </tbody>
259         </table>
260     </div>
261
262     <div class='hidden' id='acq-lit-progress-numbers'>
263         <table class='oils-generic-table'>
264             <tbody>
265                 <tr>
266                     <td>Lineitems Processed</td>
267                     <td><span id='acq-pl-lit-li-processed'>0</span></td>
268                 </tr>
269                 <tr>
270                     <td>Items Processed</td>
271                     <td><span id='acq-pl-lit-lid-processed'>0</span></td>
272                 </tr>
273                 <tr>
274                     <td>Debits Encumbered</td>
275                     <td><span id='acq-pl-lit-debits-processed'>0</span></td>
276                 </tr>
277                 <tr>
278                     <td>Bib Records Imported</td>
279                     <td><span id='acq-pl-lit-bibs-processed'>0</span></td>
280                 </tr>
281                 <tr>
282                     <td>Bib Records Indexed</td>
283                     <td><span id='acq-pl-lit-indexed-processed'>0</span></td>
284                 </tr>
285                 <tr>
286                     <td>Copies Processed</td>
287                     <td><span id='acq-pl-lit-copies-processed'>0</span></td>
288                 </tr>
289             </tbody>
290         </table>
291     </div>
292
293     <div class='hidden'>
294         <div dojoType='dijit.Dialog' jsId='acqLitPoCreateDialog'>
295             <table class='oils-generic-table'>
296                 <tr>
297                     <td>Ordering Agency</td>
298                     <td><div name='ordering_agency' id='acq-lit-po-agency'/></td>
299                 </tr>
300                 <tr>
301                     <td>Provider</td>
302                     <td><div name='provider' id='acq-lit-po-provider'/></td>
303                 </tr>
304                 <tr>
305                     <td>All Lineitems</td>
306                     <td><input checked='checked' name='create_from' value='all' dojoType='dijit.form.RadioButton'/></td>
307                 </tr>
308                 <tr>
309                     <td>Selected Lineitems</td>
310                     <td><input name='create_from' value='selected' dojoType='dijit.form.RadioButton'/></td>
311                 </tr>
312                 <tr>
313                     <td>Import Bibs and Create Copies</td>
314                     <td><input name='create_assets' dojoType='dijit.form.CheckBox'/></td>
315                 </tr>
316                 <tr>
317                     <td colspan='2'>
318                         <div dojoType='dijit.form.Button' type='submit' jsId='acqLitCreatePoSubmit'>Submit</div>
319                     </td>
320                 </tr>
321             </table>
322         </div>
323     </div>
324
325     <div dojoType="dijit.Dialog" jsId='acqLitSavePlDialog'>
326         <table class='dijitTooltipTable'>
327             <tr>
328                 <td colspan='2'>
329                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
330                     <label for="name">Save selected</label>
331                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
332                     <label for="name">Save all</label>
333                 </td>
334             </tr>
335             <tr><td colspan='2'><hr/></td></tr>
336             <tr>
337                 <td><label for="new_name">Save as Selection List: </label></td>
338                 <td><input dojoType="dijit.form.TextBox" name="new_name"/></td>
339             </tr>
340             <tr>
341                 <td><label for="existing_pl">Add to Selection List: </label></td>
342                 <td>
343                     <input jsId='acqLitAddExistingSelect' dojoType="dijit.form.FilteringSelect" 
344                         name="existing_pl" searchAttr='name' displayAttr='name'/>
345                 </td>
346             </tr>
347             <tr>
348                 <td colspan='2' align='center'>
349                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSavePlButton'>Save</button>
350                 </td>
351             </tr>
352         </table>
353     </div>
354
355     <div class="hidden">
356         <div dojoType="dijit.Dialog" jsId="lidCancelDialog">
357             <label for="acq-lit-lid-cancel-reason">Reason:</label>
358             <span id="acq-lit-lid-cancel-reason"></span>
359             <span dojoType="dijit.form.Button"
360                 jsId="acqLidCancelButton">Cancel Copy</span>
361         </div>
362     </div>
363
364     <div dojoType="dijit.Dialog" jsId='acqLitChangeLiStateDialog'>
365         <table class='dijitTooltipTable'>
366             <tr>
367                 <td>
368                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
369                     <label for="name">Mark selected</label>
370                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
371                     <label for="name">Mark all</label>
372                 </td>
373             </tr>
374             <tr>
375                 <td colspan='2' align='center'>
376                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitCancelLiStateButton'>Cancel</button>
377                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSaveLiStateButton'>Go</button>
378                 </td>
379             </tr>
380         </table>
381     </div>
382
383
384     <div class='hidden'>
385         <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/>
386     </div>
387
388 </div>
389