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'>
8 <!-- Line Item (bib record) list -->
9 <div style="float: left;">
11 <select id="acq-lit-li-actions-selector">
14 po: pending purchase order
15 ao: activated purchase order
18 fs: MARC federated search
20 * for all, otherwise combine with |
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>
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>
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>
51 <span id='acq-lit-generic-progress' class='hidden'>
52 <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litGenericProgress"></span>
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('« Previous') %]</a>
59 <a href='javascript:void(0);' id='acq-lit-next' style='visibility:hidden'>[% l('Next »') %]</a>
63 <div style="clear: both;"> </div><!-- XXX better way to end effects of float: left/right ? -->
65 <table id="acq-batch-update" class="hidden"><!-- XXX freeze in place w/ CSS? -->
68 <label for="acq-bu-item_count">[% l("Copies") %]</label>
71 <label for="acq-bu-owning_lib">[% l("Owning Branch") %]</label>
74 <label for="acq-bu-location">[% l("Copy Location") %]</label>
77 <label for="acq-bu-collection_code">[% l("Collection Code") %]</label>
80 <label for="acq-bu-fund">[% l("Fund") %]</label>
83 <label for="acq-bu-circ_modifier">[% l("Circ Modifier") %]</label>
86 <label for="acq-bu-distribution_formula">[% l("Distribution Formula") %]</label>
91 <span id="acq-bu-item_count"></span>
94 <span id="acq-bu-owning_lib"></span>
97 <span id="acq-bu-location"></span>
100 <span id="acq-bu-collection_code"></span>
103 <span id="acq-bu-fund"></span>
106 <span id="acq-bu-circ_modifier"></span> OR
109 <span id="acq-bu-distribution_formula"></span>
110 <span dojoType="dijit.form.Button" jsId="acqBatchUpdateApply">[% l("Apply to Selected") %]</span>
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;'>
118 <td><span><a id='acq-lit-select-toggle' href='javascript:void(0);'>✓</a></span></td>
120 [% l('Line Items') %]
122 <td style='white-space:nowrap;'>
123 <a id='acq-inline-copies-toggle'
124 href='javascript:;'>[% l('Expand All') %]</a>
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>
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%;'>
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>
146 <td rowspan='2' style='text-align:right'>
149 <tr class='acq-lit-alt-row'>
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 <span name='cancel_reason'></span>
164 <td>[% l('Order Identifier') %]</td>
166 <select name='order_ident_type'>
167 <option value='isbn' selected='selected'>[% l('ISBN') %]</option>
168 <option value='upc' >[% l('UPC') %]</option>
169 <option value='issn'>[% l('ISSN') %]</option>
172 <td name='order_ident_value'></td>
178 <span name="liid"># </span>
179 <span name="catalog" class='hidden'> | <a title='[% l('Show In Catalog') %]' name="catalog_link" href="javascript:void(0);">[% l('➟ catalog') %]</a></span>
180 <span name="link_to_catalog" class='hidden'> | <a title='[% l('Link To Catalog Record') %]' name="link_to_catalog_link" href="javascript:void(0);">[% l('➾ link to catalog') %]</a></span>
181 <span name="worksheet"> | <a title='[% l('Generate Worksheet') %]' name="worksheet_link" href="javascript:void(0);">[% l('✍ worksheet') %]</a></span>
182 <span name='pl' class='hidden'> | <a title='[% l('Select List') %]' name='pl_link' href='javascript:void(0);'>❖ </a></span>
183 <span name='po' class='hidden'> | <a title='[% l('Purchase Order') %]' name='po_link' href='javascript:void(0);'>⌘ </a></span>
184 <span name="show_requests"> | <a title='[% l('Patron Requests') %]' name="show_requests_link" href="javascript:void(0);">[% l('requests') %]</a></span>
185 <span name="invoices_span" class="hidden"> | <a href="javascript:void(0);" name="invoices_link">[% l("view invoice(s)") %] </a></span>
186 <span name="claim_policy" class="hidden"> | [% l("claim policy:") %] <span name="claim_policy_name"></span></span>
187 <span name='pro' class='hidden'> | <a title='[% l('Provider') %]' name='pro_link' href='javascript:void(0);'>⍟ </a></span>
188 <span name='queue' class='hidden'> | <a title='[% l('Import Queue') %]' name='queue_link' href='javascript:void(0);'>[% l('➬ queue') %]</a></span>
195 <a name='expand_inline_copies'
196 href='javascript:;'>[% l('Expand') %]</a>
198 <td><a title='FOOOBAR' name='copieslink' href='javascript:void(0);'>[% l('Copies([_1])', '<span name="count">0</span>') %]</a></td>
200 <a name='noteslink' href='javascript:void(0);'>[% l('Notes([_1])', '<span name="notes_count">0</span>') %]</a><span name="notes_alert_flag"></span>
203 <select name='actions'>
204 <option name='action_none'>[% l('-- Actions --') %]</option>
205 <option name='action_update_barcodes'>[% l('Update Barcodes') %]</option>
206 <option name='action_holdings_maint'>[% l('Holdings Maint.') %]</option>
207 <option name='action_manage_claims'>[% l('Claims') %]</option>
208 <option name='action_view_history'>[% l('View History') %]</option>
211 <td><span name='li_state'></span></td>
212 <td><input type='text' size='8' name='price'/></td>
214 <tr id='acq-inline-copies-row' class='acq-inline-copies-row'>
216 <table class='acq-li-inline-copies-table'>
219 <th>[% l('Branch') %]</th>
220 <th>[% l('Barcode') %]</th>
221 <th>[% l('Call Number') %]</th>
222 <th>[% l('Fund') %]</th>
223 <th>[% l('Copy Location') %]</th>
224 <th>[% l('Circ Modifier') %]</th>
225 <th>[% l('Collection Code') %]</th>
226 <th>[% l('Note') %]</th>
229 <tbody name='acq-li-inline-copies-tbody'>
230 <tr name='acq-li-inline-copies-template'>
231 <td><div name='owning_lib'></div></td>
232 <td><div name='barcode'></div></td>
233 <td><div name='cn_label'></div></td>
234 <td><div name='fund'></div></td>
235 <td><div name='location'></div></td>
236 <td><div name='circ_modifier'></div></td>
237 <td><div name='collection_code'></div></td>
238 <td><div name='note'></div></td>
240 <tr name='acq-li-inline-copies-none'>
241 <td colspan='0'>[% l('No Copies') %]</td>
251 <!-- Bib record / Line Item info table -->
252 [% INCLUDE "acq/common/info.tt2" which = "Lit" %]
254 <!-- Line Item notes table -->
255 [% INCLUDE "acq/common/notes.tt2" which = "Lit" %]
257 <!-- Copies table -->
258 <div id='acq-lit-li-details' class='hidden'>
260 <div id='acq-lit-copies-li-summary'></div>
262 <h3>[% l('Add/Edit Items') %]</h3>
265 <div class='acq-lit-li-menu-bar'>
266 <table style='width:100%'>
268 <td class="acq-lit-li-menu-left">
269 <span class='hidden' id='acq-lit-copies-back-to-invoice-button-wrapper'>
270 <button dojoType='dijit.form.Button' id='acq-lit-copies-back-to-invoice-button'
271 scrollOnFocus='false'>[% l('↖ Return To Invoice') %]</button>
273 <div dojoType='dijit.form.Button' id='acq-lit-copies-back-button' scrollOnFocus='false'>[% l('↖ Return') %]</div>
274 <span style='margin-left:10px;padding-left:10px;border-left:2px solid #aaa;'>
275 [% l('Item Count: ') %]
276 <input dojoType='dijit.form.NumberTextBox' jsId='acqLitCopyCountInput'
277 constraints="{min:0,max:1000,places:0}" style='width:40px' value='0'></input>
278 <div dojoType='dijit.form.Button' jsId='acqLitAddCopyCount' scrollOnFocus='false'>[% l('Go') %]</div>
280 <span style='margin-left:10px;padding-left:10px;border-left:2px solid #aaa;'>
281 <div dojoType='dijit.form.Button' jsId='acqLitSaveCopies' scrollOnFocus='false'>[% l('Save Changes') %]</div>
283 <span id='acq-lit-update-copies-progress' class='hidden'>
284 <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litUpdateCopiesProgress"></span>
292 <table id='acq-lit-distrib-formula-table'>
293 <tbody id='acq-lit-distrib-formula-tbody'>
294 <tr id='acq-lit-distrib-form-row'>
296 <span>[% l('Distribution Formulas') %]</span>
297 <div name='selector'></div>
298 <div name='set_button'></div>
299 <div name="reset_button"></div>
303 <tbody id="acq-lit-distrib-applied-tbody" class="hidden">
305 <td colspan="5" id="acq-lit-distrib-applied-heading">
306 [% l('Distribution formulas applied to this lineitem:') %]
309 <tr id="acq-lit-distrib-applied-row" class="acq-lit-distrib-applied-row">
311 <td colspan="4"></td>
316 <table id='acq-lit-li-details-table'>
317 <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
318 <tbody style='font-weight:bold;'>
320 <td style='margin-top:30px;'>[% l('Owning Branch') %]</td>
321 <td>[% l('Copy Location') %]</td>
322 <td>[% l('Collection Code') %]</td>
323 <td>[% l('Fund') %]</td>
324 <td>[% l('Circ Modifier') %]</td>
325 <td>[% l('Callnumber') %]</td>
326 <td colspan='0'></td>
329 <tbody style='background-color:#ddd;'>
330 <tr id='acq-lit-li-details-batch-row'>
331 <td><div name='owning_lib'></div></td>
332 <td><div name='location'></div></td>
333 <td><div name='collection_code'></div></td>
334 <td><div name='fund'></div></td>
335 <td><div name='circ_modifier'></div></td>
336 <td><div name='cn_label'></div></td>
337 <td colspan='3' style='text-align:left;'>
338 <div dojoType='dijit.form.Button' jsId='acqLitBatchUpdateCopies' scrollOnFocus='false'>[% l('Batch Update') %]</div>
344 <tbody><tr><td class='acq-lit-table-spacer' colspan='0'></td></tr></tbody>
345 <tbody style='font-weight:bold;'>
347 <td style='margin-top:30px;'>[% l('Owning Branch') %]</td>
348 <td>[% l('Copy Location') %]</td>
349 <td>[% l('Collection Code') %]</td>
350 <td>[% l('Fund') %]</td>
351 <td>[% l('Circ Modifier') %]</td>
352 <td>[% l('Callnumber') %]</td>
353 <td>[% l('Barcode') %]</td>
354 <td>[% l('Notes') %]</td>
355 <td>[% l('Receiver') %]</td>
356 <td colspan='0'></td>
359 <tbody id='acq-lit-li-details-tbody' class='oils-generic-table'>
360 <tr id='acq-lit-li-details-row'>
361 <td><div name='owning_lib'></div></td>
362 <td><div name='location'></div></td>
363 <td><div name='collection_code'></div></td>
364 <td><div name='fund'></div></td>
365 <td><div name='circ_modifier'></div></td>
366 <td><div name='cn_label'></div></td>
367 <td><div name='barcode'></div></td>
368 <td><div name='note'></div></td>
369 <td><div name='receiver'></div></td>
370 <td><a href="javascript:void(0);" name="receive">[% l('Mark Received') %]</a><a href="javascript:void(0);" name="unreceive">[% l('Un-Receive') %]</a> <a href="javascript:void(0);" name="cancel">[% l('Cancel') %]</a><span class="hidden" name="cancel_reason"></span> <a href="javascript:void(0);" name="claim">[% l('Claim') %]</a></td>
371 <td><div name='delete' dojoType='dijit.form.Button' style='color:red;' scrollOnFocus='false'>X</div></td>
378 <!-- Copies table -->
379 <div id='acq-lit-real-copies-div' class='hidden'>
380 <h2>[% l('Copies') %]</h2>
382 <div class='acq-lit-li-menu-bar'>
383 <table style='width:100%'>
385 <td style='text-align:left;'>
386 <div dojoType='dijit.form.Button' id='acq-lit-real-copies-back-button' scrollOnFocus='false'>[% l('↖ Return') %]</div>
388 <td style='text-align:right;'>
390 <div dojoType='dijit.form.Button' jsId='acqLitSaveRealCopies' scrollOnFocus='false'>[% l('Save Changes') %]</div>
397 <table id='acq-lit-real-copies-table'>
398 <tbody style='font-weight:bold;'>
400 <td style='margin-top:30px;'>[% l('Owning Branch') %]</td>
401 <td>[% l('Copy Location') %]</td>
402 <td>[% l('Circ Modifier') %]</td>
403 <td>[% l('Callnumber') %]</td>
404 <td>[% l('Barcode') %]</td>
405 <td colspan='0'></td>
408 <tbody id='acq-lit-real-copies-tbody' class='oils-generic-table'>
409 <tr id='acq-lit-real-copies-row'>
410 <td><div name='owning_lib'></div></td>
411 <td><div name='location'></div></td>
412 <td><div name='circ_modifier'></div></td>
413 <td><div name='label'></div></td>
414 <td><div name='barcode'></div></td>
421 <div jsId="acqLitLinkInvoiceDialog" dojoType="dijit.Dialog">
422 [% INCLUDE "acq/common/inv_dialog.tt2" which = "li" %]
424 [% INCLUDE "acq/common/add_to_po.tt2" %]
428 [% PROCESS 'acq/common/vlagent.tt2' %]
429 <div class='hidden' id='acq-lit-asset-creator'>
430 <table class='oils-generic-table'>
432 [% PROCESS vlagent_form %]
435 <span style='margin-left:10px;'>
436 <button dojoType="dijit.form.Button" jsId='assetCreatorButton'>[% l('Submit') %]</button>
444 <div class='hidden' id='acq-lit-progress-numbers'>
445 [% PROCESS vlagent_results %]
449 <div dojoType='dijit.Dialog' jsId='acqLitPoCreateDialog'>
450 <table class='oils-generic-table'>
452 <td>[% l('Ordering Agency') %]</td>
453 <td><div name='ordering_agency' id='acq-lit-po-agency'></div></td>
456 <td>[% l('Provider') %]</td>
457 <td><div name='provider' id='acq-lit-po-provider'></div></td>
460 <td>[% l('Prepayment Required') %]</td>
461 <td><input id="acq-lit-po-prepay" name="prepayment_required" dojoType="dijit.form.CheckBox"/></td>
464 <td>[% l('All Line Items') %]</td>
465 <td><input checked='checked' name='create_from' value='all' dojoType='dijit.form.RadioButton'/></td>
468 <td>[% l('Selected Line Items') %]</td>
469 <td><input name='create_from' value='selected' dojoType='dijit.form.RadioButton'/></td>
472 <td>[% l('Import Bibs and Create Copies') %]</td>
473 <td><input name='create_assets' dojoType='dijit.form.CheckBox'/></td>
477 <div dojoType='dijit.form.Button' type='submit' jsId='acqLitCreatePoSubmit'>[% l('Submit') %]</div>
485 <div dojoType="dijit.Dialog" jsId='acqLitSavePlDialog'>
486 <table class='dijitTooltipTable'>
489 <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
490 <label for="name">[% l('Save selected') %]</label>
491 <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
492 <label for="name">[% l('Save all') %]</label>
495 <tr><td colspan='2'><hr/></td></tr>
497 <td><label for="new_name">[% l('Save as Selection List: ') %]</label></td>
498 <td><input dojoType="dijit.form.TextBox" name="new_name"/></td>
501 <td><label for="existing_pl">[% l('Add to Selection List: ') %]</label></td>
503 <input jsId="acqLitAddExistingSelect" dojoType="openils.widget.PCrudAutocompleteBox" fmclass="acqpl" searchAttr="name" name="existing_pl" />
507 <td colspan='2' align='center'>
508 <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSavePlButton'>[% l('Save') %]</button>
514 <div dojoType="dijit.Dialog" jsId="lidCancelDialog">
515 <label for="acq-lit-lid-cancel-reason">[% l('Reason:') %]</label>
516 <span id="acq-lit-lid-cancel-reason"></span>
517 <span dojoType="dijit.form.Button"
518 jsId="acqLidCancelButton">[% l('Cancel Copy') %]</span>
520 <div dojoType="dijit.Dialog" jsId="liClaimPolicyDialog">
521 <label for="acq-lit-li-claim-policy">[% l('Claim policy:') %]</label>
522 <span id="acq-lit-li-claim-policy"></span>
523 <span dojoType="dijit.form.Button"
524 jsId="liClaimPolicySave">[% l('Save') %]</span>
526 <div dojoType="dijit.Dialog" jsId="liClaimDialog">
527 [% INCLUDE "acq/common/claim_dialog.tt2" %]
529 <div dojoType="dijit.Dialog" jsId="finalClaimDialog">
530 [% INCLUDE "acq/common/final_claim_dialog.tt2" %]
532 <div dojoType="dijit.Dialog" jsId="batchFundUpdateDialog" title="[% l('Batch Update Funds') %]">
534 [% l('This will update the fund for all copies attached to these lineitems.') %]<br/>
535 [% l('This will also update any existing encumbered or spent debits.') %]
538 <table class='oils-generic-table'>
541 <span>[% l('Select a new fund:') %]</span>
544 <div id='acq-lit-batch-fund-selector'></div>
548 <td><button dojoType='dijit.form.Button' jsId='batchFundUpdateCancel'>[% l('Cancel') %]</button></td>
549 <td><button dojoType='dijit.form.Button' jsId='batchFundUpdateSubmit'>[% l('Submit') %]</button></td>
555 <div dojoType="dijit.Dialog" jsId='acqLitChangeLiStateDialog'>
556 <table class='dijitTooltipTable'>
559 <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
560 <label for="name">[% l('Mark selected') %]</label>
561 <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
562 <label for="name">[% l('Mark all') %]</label>
566 <td colspan='2' align='center'>
567 <button dojoType='dijit.form.Button' type="submit" jsId='acqLitCancelLiStateButton'>[% l('Cancel') %]</button>
568 <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSaveLiStateButton'>[% l('Go') %]</button>
576 <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'></div>