1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › Order Staged MARC Records
3 [% IF ( batch_details ) %]
4 › Batch [% import_batch_id %]
9 [% INCLUDE 'doc-head-close.inc' %]
10 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
11 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
12 <script type="text/JavaScript">
14 $(document).ready(function() {
15 $("#files").tablesorter({
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'acquisitions-search.inc' %]
27 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> › Add orders from iso2709 file</div>
28 <div id="doc3" class="yui-t2">
32 [% IF ( batch_details ) %]
33 <h1>Add orders from [% comments %]
34 ([% file_name %] staged on [% upload_timestamp %])
37 <form action="[% scriptname %]" method="post" name="import_biblios">
44 [% FOREACH biblio_lis IN biblio_list %]
47 [% biblio_lis.citation %]
50 <td>[% biblio_lis.overlay_status %]</td>
51 <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]&breedingid=[% biblio_lis.import_record_id %]&import_batch_id=[% biblio_lis.import_batch_id %]&biblionumber=[% biblio_lis.match_biblionumber %]">Add order</a></td>
53 [% IF ( biblio_lis.match_biblionumber ) %]
55 <td class="highlight" colspan="3"> Matches biblio [% biblio_lis.match_biblionumber %] (score = [% biblio_lis.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio_lis.match_biblionumber %]">[% biblio_lis.match_citation %]</a></td>
65 [% FOREACH page IN pages %]
66 [% IF ( page.current_page ) %]
67 <span class="current">[% page.page_number %]</span>
69 <a class="nav" href="[% page.script_name %]?import_batch_id=[% page.import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a>
75 <h1>Choose the file to add to the basket</h1>
88 [% FOREACH batch_lis IN batch_list %]
90 <td>[% batch_lis.file_name %]</td>
91 <td>[% batch_lis.comments %]</td>
92 <td>[% batch_lis.import_status %]</td>
93 <td>[% batch_lis.upload_timestamp %]</td>
94 <td>[% batch_lis.num_biblios %]</td>
95 <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]">Add orders</a></td>
103 [% IF ( import_batch_id ) %]
106 <p>Import all the lines in the basket with the following parameters:</p>
107 <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
108 <input type="hidden" name="op" value="import_records"/>
109 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
110 <input type="hidden" name="basketno" value="[% basketno %]" />
111 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
112 <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
114 [% FOREACH loop_currencie IN loop_currencies %]
115 <input type="hidden" name="[% loop_currencie.currency %]" value="[% loop_currencie.rate %]" />
119 <fieldset class="rows">
120 <legend>Item</legend>
121 [% IF ( NoACQframework ) %]
122 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
125 [% FOREACH item IN items %]
126 <div id="outeritemblock">
128 <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li>
129 <div class="subfield_line" style="[% iteminformatio.hidden %];" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
131 <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
132 [% iteminformatio.marc_value %]
133 <input type="hidden" name="itemid" value="1" />
134 <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
135 <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
136 <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
137 <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
141 </div><!-- /iteminformation -->
144 [% END %] <!-- /items -->
146 [% END %] <!-- items -->
147 <fieldset class="rows">
148 <legend>Accounting Details</legend>
151 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
152 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
156 <span class="label">Budget: </span>
157 <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
160 <label for="currency">Currency:</label>
161 <select name="currency" id="currency" onchange="calcNeworderTotal();">
162 [% FOREACH loop_currencie IN loop_currencies %]
163 [% IF ( loop_currencie.selected ) %]<option value="[% loop_currencie.currcode %]" selected="selected">[% loop_currencie.currcode %]</option>[% ELSE %]<option value="[% loop_currencie.currcode %]">[% loop_currencie.currcode %]</option>[% END %][% END %]
167 <label for="budget_id">Budget: </label>
168 <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
169 [% FOREACH budget_loo IN budget_loop %]
170 [% IF ( budget_loo.b_sel ) %]
171 <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
173 <option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
181 <label for="notes">Notes: </label>
182 <textarea id="notes" cols="30" rows="3" name="notes"></textarea>
184 <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
185 <label for="sort1">Planning value1: </label>
188 <select id="sort1" size="1" name="sort1">
189 [% FOREACH sort_opt IN CGIsort1 %]
190 [% IF sort_opt.default %]
191 <option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option>
193 <option value="[% sort_opt.id %]">[% sort_opt.label %]</option>
198 <input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
202 <label for="sort2">Planning value2: </label>
205 <select id="sort2" size="1" name="sort1">
206 [% FOREACH sort_opt IN CGIsort2 %]
207 [% IF sort_opt.default %]
208 <option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option>
210 <option value="[% sort_opt.id %]">[% sort_opt.label %]</option>
215 <input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
223 <fieldset class="action">
224 <input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>