533a2ca36913546c3382a2f5e35ae455fd0df60d
[working/Evergreen.git] / Open-ILS / src / templates / acq / common / li_table.tt2
1 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/acq/common/base64.js"> </script>
2 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/common/vlagent.js'> </script>
3 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/common/li_table.js'> </script>
4 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/financial/claim_voucher.js'> </script>
5 <div id='acq-lit-table-container'>
6     <div id='acq-lit-table-div' class='hidden'>
7
8         <!-- Line Item (bib record) list -->
9         <div style="float: left;">
10             <span>
11                 <select id="acq-lit-li-actions-selector">
12             <!-- mask meanings:
13                 pl: selection list
14                 po: pending purchase order
15                 ao: activated purchase order
16                 gs: general search
17                 vp: view/place orders
18                 fs: MARC federated search
19
20                 * for all, otherwise combine with |
21             -->
22                     <option mask='*'  value='_'>[% l('--Actions--') %]</option>
23                     <option mask='pl|gs|vp|fs' value='save_picklist'>[% l('Save Items To Selection List') %]</option>
24                     <option mask='pl|gs|vp' value='selector_ready'>[% l('Mark Ready for Selector') %]</option>
25                     <option mask='pl|gs|vp' value='order_ready'>[% l('Mark Ready for Order') %]</option>
26                     <option mask='pl|po|gs|vp'  value='delete_selected'>[% l('Delete Selected Items') %]</option>
27                     <option mask='pl|po'  value='add_brief_record'>[% l('Add Brief Record') %]</option>
28                     <option mask='pl|po|ao|gs'  value='export_attr_list'>[% l('Export Single Attribute List') %]</option>
29                     <option mask='*' value='' disabled='disabled'>[% l('----PO----') %]</option>
30                     <option mask='pl|gs|vp|fs' value='create_order'>[% l('Create Purchase Order') %]</option>
31                     <option mask='pl|gs|vp|fs' value='add_to_order'>[% l('Add to Purchase Order') %]</option>
32                     <option mask='po|ao' value='print_po'>[% l('Print Purchase Order') %]</option>
33                     <option mask='po|ao' value='po_history'>[% l('View PO History') %]</option>
34                     <option mask='po' value='create_assets'>[% l('Load Bibs and Items') %]</option>
35                     <option mask='ao|gs|vp' value='cancel_lineitems'>[% l('Cancel Selected Line Items') %]</option>
36                     <option mask='po|ao|gs|vp' value='apply_claim_policy'>[% l('Apply Claim Policy to Selected Line Items') %]</option><!-- can the functionality desired here be covered by the next thing? -->
37                     <option mask='ao|gs|vp' value='receive_lineitems' id='receive_lineitems' disabled='disabled'>[% l('Mark Selected Line Items as Received') %]</option>
38                     <option mask='ao|gs|vp' value='rollback_receive_lineitems' id='rollback_receive_lineitems' disabled='disabled'>[% l('Un-Receive Selected Line Items') %]</option>
39                     <option mask='ao|gs|vp' value='batch_create_invoice'>[% l('Create Invoice From Selected Line Items') %]</option>
40                     <option mask='ao|gs|vp' value='batch_link_invoice'>[% l('Link Selected Line Items to Invoice') %]</option>
41                 </select>
42                 <span id="acq-lit-export-attr-holder" class="hidden">
43                     <input dojoType="dijit.form.FilteringSelect" id="acq-lit-export-attr" jsId="acqLitExportAttrSelector" labelAttr="description" searchAttr="description" />
44                     <span dojoType="dijit.form.Button" jsId="acqLitExportAttrButton">[% l('Export List') %]</span>
45                 </span>
46                 <span id="acq-lit-cancel-reason" class="hidden">
47                     <span id="acq-lit-cancel-reason-selector"></span>
48                     <span dojoType="dijit.form.Button" jsId="acqLitCancelLineitemsButton">[% l('Cancel Line Items') %]</span>
49                 </span>
50             </span>
51             <span id='acq-lit-generic-progress' class='hidden'>
52                 <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litGenericProgress"></span>
53             </span>
54         </div>
55         <div style="float: right;">
56             <div style='width:100%;text-align:right;'>
57                 <span style='padding-right:15px;'>
58                     <a href='javascript:void(0);' id='acq-lit-prev' style='visibility:hidden'>[% l('&#171; Previous') %]</a>
59                     <a href='javascript:void(0);' id='acq-lit-next' style='visibility:hidden'>[% l('Next &#187;') %]</a>
60                 </span>
61             </div>
62         </div>
63         <div style="clear: both;">&nbsp;</div><!-- XXX better way to end effects of float: left/right ? -->
64
65         <table id="acq-batch-update" class="hidden"><!-- XXX freeze in place w/ CSS? -->
66             <tr>
67                 <th>
68                     <label for="acq-bu-item_count">[% l("Copies") %]</label>
69                 </th>
70                 <th>
71                     <label for="acq-bu-owning_lib">[% l("Owning Branch") %]</label>
72                 </th>
73                 <th>
74                     <label for="acq-bu-location">[% l("Copy Location") %]</label>
75                 </th>
76                 <th>
77                     <label for="acq-bu-collection_code">[% l("Collection Code") %]</label>
78                 </th>
79                 <th>
80                     <label for="acq-bu-fund">[% l("Fund") %]</label>
81                 </th>
82                 <th>
83                     <label for="acq-bu-circ_modifier">[% l("Circ Modifier") %]</label>
84                 </th>
85                 <th>
86                     <label for="acq-bu-distribution_formula">[% l("Distribution Formula") %]</label>
87                 </th>
88             </tr>
89             <tr>
90                 <td>
91                     <span id="acq-bu-item_count"></span>
92                 </td>
93                 <td>
94                     <span id="acq-bu-owning_lib"></span>
95                 </td>
96                 <td>
97                     <span id="acq-bu-location"></span>
98                 </td>
99                 <td>
100                     <span id="acq-bu-collection_code"></span>
101                 </td>
102                 <td>
103                     <span id="acq-bu-fund"></span>
104                 </td>
105                 <td>
106                     <span id="acq-bu-circ_modifier"></span> OR
107                 </td>
108                 <td>
109                     <span id="acq-bu-distribution_formula"></span>
110                     <span dojoType="dijit.form.Button" jsId="acqBatchUpdateApply">[% l("Apply to Selected") %]</span>
111                 </td>
112             </tr>
113         </table>
114         <table id='acq-lit-table' class='oils-generic-table'>
115             <tbody><tr><td colspan='0' style='height:20px;'></td></tr></tbody>
116             <tbody style='font-weight:bold;border:1px solid #aaa;'>
117                 <tr>
118                     <td><span><a id='acq-lit-select-toggle' href='javascript:void(0);'>&#x2713</a></span></td>
119                     <td>
120                         [% l('Line Items') %]
121                     </td>
122                     <td style='white-space:nowrap;'>
123                         <a id='acq-inline-copies-toggle' 
124                             href='javascript:;'>[% l('Expand All') %]</a>
125                     </td>
126                     <td>[% l('Items') %]</td>
127                     <td>[% l('Notes') %]</td>
128                     <td>[% l('Actions') %]</td>
129                     <td>[% l('Status') %]</td>
130                     <td>[% l('Estimated Price') %]</td>
131                 </tr>
132             </tbody>
133             <tbody id='acq-lit-tbody'>
134                 <tr id='acq-lit-row' class='acq-lit-row'>
135                     <td name='selector'><input type='checkbox' name='selectbox'/></td>
136                     <td style='width:75%;' name='bib-info-cell'>
137                         <table style='width:100%;'>
138                             <tbody>
139                                 <tr>
140                                     <td rowspan='3' style='width:43px;'><img style='width:40px;height:65px;' name='jacket'></td>
141                                     <td style='width:70%;font-weight:bold;'>
142                                         <span name="bib_origin" class="hidden">
143                                             <img src="/opac/images/book-icon.png" />
144                                         </span><a attr='title' href='javascript:void(0);'></a>
145                                     </td>
146                                     <td rowspan='2' style='text-align:right'>
147                                     </td>
148                                 </tr>
149                                 <tr class='acq-lit-alt-row'>
150                                     <td colspan='0'>
151                                         <span attr='author'></span>
152                                         <span attr='isbn'></span>
153                                         <span attr='issn'></span>
154                                         <span attr='edition'></span>
155                                         <span attr='pubdate'></span>
156                                         <span attr='publisher'></span>
157                                         <span name='source_label'></span>
158                                     </td>
159                                 </tr>
160                                 <tr>
161                                     <td colspan='0'>
162                                         <table><tr>
163                                             <td>[% l('Order Identifier') %]</td>
164                                             <td>
165                                                 <select name='order_ident_type'>
166                                                     <option value='isbn' selected='selected'>[% l('ISBN') %]</option>
167                                                     <option value='upc' >[% l('UPC') %]</option>
168                                                     <option value='issn'>[% l('ISSN') %]</option>
169                                                 </select>
170                                             </td>
171                                             <td name='order_ident_value'></td>
172                                         </tr></table>
173                                     </td>
174                                 </tr>
175                                 <tr>
176                                     <td colspan='0'>
177                                         <span name="liid"># </span> 
178                                         <span name="catalog" class='hidden'> | <a title='[% l('Show In Catalog') %]' name="catalog_link" href="javascript:void(0);">[% l('&#x279F; catalog') %]</a></span> 
179                                         <span name="link_to_catalog" class='hidden'> | <a title='[% l('Link To Catalog Record') %]' name="link_to_catalog_link" href="javascript:void(0);">[% l('&#x27BE; link to catalog') %]</a></span> 
180                                         <span name="worksheet"> | <a title='[% l('Generate Worksheet') %]' name="worksheet_link" href="javascript:void(0);">[% l('&#x270D; worksheet') %]</a></span>
181                                         <span name='pl' class='hidden'> | <a title='[% l('Select List') %]' name='pl_link' href='javascript:void(0);'>&#x2756; </a></span>
182                                         <span name='po' class='hidden'> | <a title='[% l('Purchase Order') %]' name='po_link' href='javascript:void(0);'>&#x2318; </a></span>
183                                         <span name="show_requests"> | <a title='[% l('Patron Requests') %]' name="show_requests_link" href="javascript:void(0);">[% l('requests') %]</a></span> 
184                                         <span name="invoices_span" class="hidden"> | <a href="javascript:void(0);" name="invoices_link">[% l("view invoice(s)") %] </a></span>
185                                         <span name="claim_policy" class="hidden"> | [% l("claim policy:") %] <span name="claim_policy_name"></span></span>
186                                         <span name='pro' class='hidden'> | <a title='[% l('Provider') %]' name='pro_link' href='javascript:void(0);'>&#x235F; </a></span>
187                                         <span name='queue' class='hidden'> | <a title='[% l('Import Queue') %]' name='queue_link' href='javascript:void(0);'>[% l('&#x27AC; queue') %]</a></span>
188                                     </td>
189                                 </tr>
190                             </tbody>
191                         </table>
192                     </td>
193                     <td>
194                         <a name='expand_inline_copies' 
195                             href='javascript:;'>[% l('Expand') %]</a>
196                     </td>
197                     <td><a title='FOOOBAR' name='copieslink' href='javascript:void(0);'>[% l('Copies([_1])', '<span name="count">0</span>') %]</a></td>
198                     <td>
199                         <a name='noteslink' href='javascript:void(0);'>[% l('Notes([_1])', '<span name="notes_count">0</span>') %]</a><span name="notes_alert_flag"></span>
200                     </td>
201                     <td>
202                         <select name='actions'>
203                             <option name='action_none'>[% l('-- Actions --') %]</option>
204                             <option name='action_update_barcodes'>[% l('Update Barcodes') %]</option>
205                             <option name='action_holdings_maint'>[% l('Holdings Maint.') %]</option>
206                             <option name='action_manage_claims'>[% l('Claims') %]</option>
207                             <option name='action_view_history'>[% l('View History') %]</option>
208                         </select>
209                     </td>
210                     <td>
211                       <span class="hidden" state-label name='li_state_new'>[% l('New') %]</span>
212                       <span class="hidden" state-label name='li_state_selector-ready'>[% l('Selector-Ready') %]</span>
213                       <span class="hidden" state-label name='li_state_order-ready'>[% l('Order-Ready') %]</span>
214                       <span class="hidden" state-label name='li_state_approved'>[% l('Approved') %]</span>
215                       <span class="hidden" state-label name='li_state_pending-order'>[% l('Pending-Order') %]</span>
216                       <span class="hidden" state-label name='li_state_on-order'>[% l('On-Order') %]</span>
217                       <span class="hidden" state-label name='li_state_received'>[% l('Received') %]</span>
218                       <span class="hidden" state-label name='li_state_cancelled'>[% l('Canceled') %]</span>
219                     </td>
220                     <td><input type='text' size='8' name='price'/></td>
221                 </tr>
222                 <tr id='acq-inline-copies-row' class='acq-inline-copies-row'>
223                     <td colspan='0'>
224                         <table class='acq-li-inline-copies-table'>
225                             <thead>
226                                 <tr>
227                                     <th>[% l('Branch') %]</th>
228                                     <th>[% l('Barcode') %]</th>
229                                     <th>[% l('Call Number') %]</th>
230                                     <th>[% l('Fund') %]</th>
231                                     <th>[% l('Copy Location') %]</th>
232                                     <th>[% l('Circ Modifier') %]</th>
233                                     <th>[% l('Collection Code') %]</th>
234                                     <th>[% l('Note') %]</th>
235                                 </tr>
236                             </thead>
237                             <tbody name='acq-li-inline-copies-tbody'>
238                                 <tr name='acq-li-inline-copies-template'>
239                                     <td><div name='owning_lib'></div></td>
240                                     <td><div name='barcode'></div></td>
241                                     <td><div name='cn_label'></div></td>
242                                     <td><div name='fund'></div></td>
243                                     <td><div name='location'></div></td>
244                                     <td><div name='circ_modifier'></div></td>
245                                     <td><div name='collection_code'></div></td>
246                                     <td><div name='note'></div></td>
247                                 </tr>
248                                 <tr name='acq-li-inline-copies-none'>
249                                     <td colspan='0'>[% l('No Copies') %]</td>
250                                 </tr>
251                             </tbody>
252                         </table>
253                     </td>
254                 </tr>
255             </tbody>
256         </table>
257     </div>
258
259     <!-- Bib record / Line Item info table -->
260     [% INCLUDE "acq/common/info.tt2" which = "Lit" %]
261
262     <!-- Line Item notes table -->
263     [% INCLUDE "acq/common/notes.tt2" which = "Lit" %]
264
265     <!-- Copies table -->
266     <div id='acq-lit-li-details' class='hidden'>
267
268         <div id='acq-lit-copies-li-summary'></div>
269
270         <h3>[% l('Add/Edit Items') %]</h3>
271         <hr/>
272
273         <div class='acq-lit-li-menu-bar'>
274             <table style='width:100%'>
275                 <tr>
276                     <td class="acq-lit-li-menu-left">
277                         <span class='hidden' id='acq-lit-copies-back-to-invoice-button-wrapper'>
278                             <button dojoType='dijit.form.Button' id='acq-lit-copies-back-to-invoice-button' 
279                                 scrollOnFocus='false'>[% l('&#x2196; Return To Invoice') %]</button>
280                         </span>
281                         <div dojoType='dijit.form.Button' id='acq-lit-copies-back-button' scrollOnFocus='false'>[% l('&#x2196; Return') %]</div>
282                         <span style='margin-left:10px;padding-left:10px;border-left:2px solid #aaa;'>
283                             [% l('Item Count: ') %]
284                             <input dojoType='dijit.form.NumberTextBox' jsId='acqLitCopyCountInput'  
285                                 constraints="{min:0,max:1000,places:0}" style='width:40px' value='0'></input> 
286                             <div dojoType='dijit.form.Button' jsId='acqLitAddCopyCount' scrollOnFocus='false'>[% l('Go') %]</div>
287                         </span>
288                         <span style='margin-left:10px;padding-left:10px;border-left:2px solid #aaa;'>
289                             <div dojoType='dijit.form.Button' jsId='acqLitSaveCopies' scrollOnFocus='false'>[% l('Save Changes') %]</div>
290                         </span>
291                         <span id='acq-lit-update-copies-progress' class='hidden'>
292                             <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litUpdateCopiesProgress"></span>
293                         </span>
294                     </td>
295                 </tr>
296             </table>
297         </div>
298
299         <hr/>
300         <table id='acq-lit-distrib-formula-table'>
301             <tbody id='acq-lit-distrib-formula-tbody'>
302                 <tr id='acq-lit-distrib-form-row'>
303                     <td colspan='0'>
304                         <span>[% l('Distribution Formulas') %]</span>
305                         <div name='selector'></div>
306                         <div name='set_button'></div>
307                         <div name="reset_button"></div>
308                     </td>
309                 </tr>
310             </tbody>
311             <tbody id="acq-lit-distrib-applied-tbody" class="hidden">
312                 <tr>
313                     <td colspan="5" id="acq-lit-distrib-applied-heading">
314                         [% l('Distribution formulas applied to this lineitem:') %]
315                     </td>
316                 </tr>
317                 <tr id="acq-lit-distrib-applied-row" class="acq-lit-distrib-applied-row">
318                     <th></th>
319                     <td colspan="4"></td>
320                 </tr>
321             </tbody>
322         </table>
323
324         <table id='acq-lit-li-details-table'>
325             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
326             <tbody style='font-weight:bold;'>
327                 <tr>
328                     <td style='margin-top:30px;'>[% l('Owning Branch') %]</td>
329                     <td>[% l('Copy Location') %]</td>
330                     <td>[% l('Collection Code') %]</td>
331                     <td>[% l('Fund') %]</td>
332                     <td>[% l('Circ Modifier') %]</td>
333                     <td>[% l('Callnumber') %]</td>
334                     <td colspan='0'></td>
335                 </tr>
336             </tbody>
337             <tbody style='background-color:#ddd;'>
338                 <tr id='acq-lit-li-details-batch-row'>
339                     <td><div name='owning_lib'></div></td>
340                     <td><div name='location'></div></td>
341                     <td><div name='collection_code'></div></td>
342                     <td><div name='fund'></div></td>
343                     <td><div name='circ_modifier'></div></td>
344                     <td><div name='cn_label'></div></td>
345                     <td colspan='3' style='text-align:left;'>
346                         <div dojoType='dijit.form.Button' jsId='acqLitBatchUpdateCopies' scrollOnFocus='false'>[% l('Batch Update') %]</div>
347                     </td>
348                 </tr>
349             </tbody>
350
351
352             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'></td></tr></tbody>
353             <tbody style='font-weight:bold;'>
354                 <tr>
355                     <td style='margin-top:30px;'>[% l('Owning Branch') %]</td>
356                     <td>[% l('Copy Location') %]</td>
357                     <td>[% l('Collection Code') %]</td>
358                     <td>[% l('Fund') %]</td>
359                     <td>[% l('Circ Modifier') %]</td>
360                     <td>[% l('Callnumber') %]</td>
361                     <td>[% l('Barcode') %]</td>
362                     <td>[% l('Notes') %]</td>
363                     <td>[% l('Receiver') %]</td>
364                     <td colspan='0'></td>
365                 </tr>
366             </tbody>
367             <tbody id='acq-lit-li-details-tbody' class='oils-generic-table'>
368                 <tr id='acq-lit-li-details-row'>
369                     <td><div name='owning_lib'></div></td>
370                     <td><div name='location'></div></td>
371                     <td><div name='collection_code'></div></td>
372                     <td><div name='fund'></div></td>
373                     <td><div name='circ_modifier'></div></td>
374                     <td><div name='cn_label'></div></td>
375                     <td><div name='barcode'></div></td>
376                     <td><div name='note'></div></td>
377                     <td><div name='receiver'></div></td>
378                     <td><a href="javascript:void(0);" name="receive">[% l('Mark&nbsp;Received') %]</a><a href="javascript:void(0);" name="unreceive">[% l('Un-Receive') %]</a>&nbsp;<a href="javascript:void(0);" name="cancel">[% l('Cancel') %]</a>&nbsp;<span class="hidden" name="cancel_reason"></span>&nbsp;<a href="javascript:void(0);" name="claim">[% l('Claim') %]</a></td>
379                     <td><div name='delete' dojoType='dijit.form.Button' style='color:red;' scrollOnFocus='false'>X</div></td>
380                 </tr>
381             </tbody>
382         </table>
383     </div>
384
385
386     <!-- Copies table -->
387     <div id='acq-lit-real-copies-div' class='hidden'>
388         <h2>[% l('Copies') %]</h2>
389
390         <div class='acq-lit-li-menu-bar'>
391             <table style='width:100%'>
392                 <tr>
393                     <td style='text-align:left;'>
394                         <div dojoType='dijit.form.Button' id='acq-lit-real-copies-back-button' scrollOnFocus='false'>[% l('&#x2196; Return') %]</div>
395                     </td>
396                     <td style='text-align:right;'>
397                         <span>
398                             <div dojoType='dijit.form.Button' jsId='acqLitSaveRealCopies' scrollOnFocus='false'>[% l('Save Changes') %]</div>
399                         </span>
400                     </td>
401                 </tr>
402             </table>
403         </div>
404
405         <table id='acq-lit-real-copies-table'>
406             <tbody style='font-weight:bold;'>
407                 <tr>
408                     <td style='margin-top:30px;'>[% l('Owning Branch') %]</td>
409                     <td>[% l('Copy Location') %]</td>
410                     <td>[% l('Circ Modifier') %]</td>
411                     <td>[% l('Callnumber') %]</td>
412                     <td>[% l('Barcode') %]</td>
413                     <td colspan='0'></td>
414                 </tr>
415             </tbody>
416             <tbody id='acq-lit-real-copies-tbody' class='oils-generic-table'>
417                 <tr id='acq-lit-real-copies-row'>
418                     <td><div name='owning_lib'></div></td>
419                     <td><div name='location'></div></td>
420                     <td><div name='circ_modifier'></div></td>
421                     <td><div name='label'></div></td>
422                     <td><div name='barcode'></div></td>
423                 </tr>
424             </tbody>
425         </table>
426     </div>
427
428     <div class="hidden">
429         <div jsId="acqLitLinkInvoiceDialog" dojoType="dijit.Dialog">
430             [% INCLUDE "acq/common/inv_dialog.tt2" which = "li" %]
431         </div>
432         [% INCLUDE "acq/common/add_to_po.tt2" %]
433     </div>
434
435
436     [% PROCESS 'acq/common/vlagent.tt2' %]
437     <div class='hidden' id='acq-lit-asset-creator'>
438         <table class='oils-generic-table'>
439             <tbody>
440                 [% PROCESS vlagent_form %]
441                 <tr>
442                     <td>
443                         <span style='margin-left:10px;'>
444                             <button dojoType="dijit.form.Button" jsId='assetCreatorButton'>[% l('Submit') %]</button>
445                         </span>
446                     </td>
447                 </tr>
448             </tbody>
449         </table>
450     </div>
451
452     <div class='hidden' id='acq-lit-progress-numbers'>
453         [% PROCESS vlagent_results %]
454     </div>
455
456     <div class='hidden'>
457         <div dojoType='dijit.Dialog' jsId='acqLitPoCreateDialog'>
458             <table class='oils-generic-table'>
459                 <tr>
460                     <td>[% l('Ordering Agency') %]</td>
461                     <td><div name='ordering_agency' id='acq-lit-po-agency'></div></td>
462                 </tr>
463                 <tr>
464                     <td>[% l('Provider') %]</td>
465                     <td><div name='provider' id='acq-lit-po-provider'></div></td>
466                 </tr>
467                 <tr>
468                     <td>[% l('Prepayment Required') %]</td>
469                     <td><input id="acq-lit-po-prepay" name="prepayment_required" dojoType="dijit.form.CheckBox"/></td>
470                 </tr>
471                 <tr>
472                     <td>[% l('All Line Items') %]</td>
473                     <td><input checked='checked' name='create_from' value='all' dojoType='dijit.form.RadioButton'/></td>
474                 </tr>
475                 <tr>
476                     <td>[% l('Selected Line Items') %]</td>
477                     <td><input name='create_from' value='selected' dojoType='dijit.form.RadioButton'/></td>
478                 </tr>
479                 <tr>
480                     <td>[% l('Import Bibs and Create Copies') %]</td>
481                     <td><input name='create_assets' dojoType='dijit.form.CheckBox'/></td>
482                 </tr>
483                 <tr>
484                     <td colspan='2'>
485                         <div dojoType='dijit.form.Button' type='submit' jsId='acqLitCreatePoSubmit'>[% l('Submit') %]</div>
486                     </td>
487                 </tr>
488             </table>
489         </div>
490     </div>
491
492     <div class="hidden">
493         <div dojoType="dijit.Dialog" jsId='acqLitSavePlDialog'>
494             <table class='dijitTooltipTable'>
495                 <tr>
496                     <td colspan='2'>
497                         <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
498                         <label for="name">[% l('Save selected') %]</label>
499                         <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
500                         <label for="name">[% l('Save all') %]</label>
501                     </td>
502                 </tr>
503                 <tr><td colspan='2'><hr/></td></tr>
504                 <tr>
505                     <td><label for="new_name">[% l('Save as Selection List: ') %]</label></td>
506                     <td><input dojoType="dijit.form.TextBox" name="new_name"/></td>
507                 </tr>
508                 <tr>
509                     <td><label for="existing_pl">[% l('Add to Selection List: ') %]</label></td>
510                     <td>
511                         <input jsId="acqLitAddExistingSelect" dojoType="openils.widget.PCrudAutocompleteBox" fmclass="acqpl" searchAttr="name" name="existing_pl" />
512                     </td>
513                 </tr>
514                 <tr>
515                     <td colspan='2' align='center'>
516                         <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSavePlButton'>[% l('Save') %]</button>
517                     </td>
518                 </tr>
519             </table>
520         </div>
521
522         <div dojoType="dijit.Dialog" jsId="lidCancelDialog">
523             <label for="acq-lit-lid-cancel-reason">[% l('Reason:') %]</label>
524             <span id="acq-lit-lid-cancel-reason"></span>
525             <span dojoType="dijit.form.Button"
526                 jsId="acqLidCancelButton">[% l('Cancel Copy') %]</span>
527         </div>
528         <div dojoType="dijit.Dialog" jsId="liClaimPolicyDialog">
529             <label for="acq-lit-li-claim-policy">[% l('Claim policy:') %]</label>
530             <span id="acq-lit-li-claim-policy"></span> &nbsp;
531             <span dojoType="dijit.form.Button"
532                 jsId="liClaimPolicySave">[% l('Save') %]</span>
533         </div>
534         <div dojoType="dijit.Dialog" jsId="liClaimDialog">
535             [% INCLUDE "acq/common/claim_dialog.tt2" %]
536         </div>
537         <div dojoType="dijit.Dialog" jsId="finalClaimDialog">
538             [% INCLUDE "acq/common/final_claim_dialog.tt2" %]
539         </div>
540         <div dojoType="dijit.Dialog" jsId="batchFundUpdateDialog" title="[% l('Batch Update Funds') %]">
541             <div>
542                 [% l('This will update the fund for all copies attached to these lineitems.') %]<br/>
543                 [% l('This will also update any existing encumbered or spent debits.') %]
544             </div>
545             <br/>
546             <table class='oils-generic-table'>
547                 <tr>
548                     <td>
549                         <span>[% l('Select a new fund:') %]</span>
550                     </td>
551                     <td>
552                         <div id='acq-lit-batch-fund-selector'></div>
553                     </td>
554                 </tr>
555                 <tr>
556                     <td><button dojoType='dijit.form.Button' jsId='batchFundUpdateCancel'>[% l('Cancel') %]</button></td>
557                     <td><button dojoType='dijit.form.Button' jsId='batchFundUpdateSubmit'>[% l('Submit') %]</button></td>
558                 </tr>
559             </table>
560         </div>
561     </div>
562
563     <div dojoType="dijit.Dialog" jsId='acqLitChangeLiStateDialog'>
564         <table class='dijitTooltipTable'>
565             <tr>
566                 <td>
567                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
568                     <label for="name">[% l('Mark selected') %]</label>
569                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
570                     <label for="name">[% l('Mark all') %]</label>
571                 </td>
572             </tr>
573             <tr>
574                 <td colspan='2' align='center'>
575                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitCancelLiStateButton'>[% l('Cancel') %]</button>
576                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSaveLiStateButton'>[% l('Go') %]</button>
577                 </td>
578             </tr>
579         </table>
580     </div>
581
582
583     <div class='hidden'>
584         <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'></div>
585     </div>
586
587 </div>
588