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