2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › Order staged MARC records
4 [% IF ( batch_details ) %]
5 › Batch [% import_batch_id %]
10 [% INCLUDE 'doc-head-close.inc' %]
11 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
12 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
13 <script type="text/JavaScript">
15 $(document).ready(function() {
16 $("#files").tablesorter({
25 <body id="acq_addorderiso2709" class="acq">
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'acquisitions-search.inc' %]
28 <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?booksellerid=[% booksellerid %]">[% booksellername %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> › Add orders from iso2709 file</div>
29 <div id="doc3" class="yui-t2">
33 [% IF ( batch_details ) %]
34 <h1>Add orders from [% comments %]
35 ([% file_name %] staged on [% upload_timestamp %])
38 <form action="[% scriptname %]" method="post" name="import_biblios">
45 [% FOREACH biblio_lis IN biblio_list %]
48 [% biblio_lis.citation %]
51 <td>[% biblio_lis.overlay_status %]</td>
52 <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>
54 [% IF ( biblio_lis.match_biblionumber ) %]
56 <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>
66 [% FOREACH page IN pages %]
67 [% IF ( page.current_page ) %]
68 <span class="current">[% page.page_number %]</span>
70 <a class="nav" href="[% page.script_name %]?import_batch_id=[% page.import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a>
76 <h1>Choose the file to add to the basket</h1>
89 [% FOREACH batch_lis IN batch_list %]
91 <td>[% batch_lis.file_name %]</td>
92 <td>[% batch_lis.comments %]</td>
93 <td>[% batch_lis.import_status %]</td>
94 <td>[% batch_lis.staged_date | $KohaDates %] [% batch_lis.staged_hour %]</td>
95 <td>[% batch_lis.num_biblios %]</td>
96 <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]">Add orders</a></td>
104 [% IF ( import_batch_id ) %]
107 <p>Import all the lines in the basket with the following parameters:</p>
108 <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
109 <input type="hidden" name="op" value="import_records"/>
110 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
111 <input type="hidden" name="basketno" value="[% basketno %]" />
112 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
113 <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
115 [% FOREACH loop_currencie IN loop_currencies %]
116 <input type="hidden" name="[% loop_currencie.currency %]" value="[% loop_currencie.rate %]" />
120 <fieldset class="rows">
121 <legend>Item</legend>
122 [% IF ( NoACQframework ) %]
123 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
126 [% FOREACH item IN items %]
127 <div id="outeritemblock">
129 <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];">
130 <div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
132 <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
133 [% iteminformatio.marc_value %]
134 <input type="hidden" name="itemid" value="1" />
135 <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
136 <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
137 <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
138 <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
142 </div><!-- /iteminformation -->
145 [% END %] <!-- /items -->
147 [% END %] <!-- items -->
148 <fieldset class="rows">
149 <legend>Accounting details</legend>
152 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
153 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
157 <span class="label">Budget: </span>
158 <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
161 <label for="currency">Currency:</label>
162 <select name="currency" id="currency" onchange="calcNeworderTotal();">
163 [% FOREACH loop_currencie IN loop_currencies %]
164 [% 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 %]
168 <label for="budget_id">Budget: </label>
169 <select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id">
170 [% FOREACH budget_loo IN budget_loop %]
171 [% IF ( budget_loo.b_sel ) %]
172 <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
174 <option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
182 <label for="notes">Notes: </label>
183 <textarea id="notes" cols="30" rows="3" name="notes"></textarea>
185 <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
186 <label for="sort1">Planning value1: </label>
189 <select id="sort1" size="1" name="sort1">
190 [% FOREACH sort_opt IN CGIsort1 %]
191 [% IF sort_opt.default %]
192 <option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option>
194 <option value="[% sort_opt.id %]">[% sort_opt.label %]</option>
199 <input type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
203 <label for="sort2">Planning value2: </label>
206 <select id="sort2" size="1" name="sort1">
207 [% FOREACH sort_opt IN CGIsort2 %]
208 [% IF sort_opt.default %]
209 <option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option>
211 <option value="[% sort_opt.id %]">[% sort_opt.label %]</option>
216 <input type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
224 <fieldset class="action">
225 <input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>