+ [% FOREACH item IN items %]
+ <div id="outeritemblock">
+ <div id="itemblock">
+ <ol>
+ [% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];">
+ <div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
+ [% IF (iteminformatio.mandatory) %]
+ <label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
+ [% ELSE %]
+ <label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
+ [% END %]
+
+ [% iteminformatio.marc_value %]
+ <input type="hidden" name="itemid" value="1" />
+ <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
+ <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
+ <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
+ <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
+ [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
+ </div></li>
+ [% END %]
+ </ol>
+ </div><!-- /iteminformation -->
+ </div>
+ [% END %] <!-- /items -->
+ </fieldset>
+ [% END %] <!-- items -->
+
+ <fieldset class="rows">
+ <legend>Accounting details</legend>
+ <ol>
+ <li>
+ <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
+ <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
+ </li>
+ <li>
+ [% IF ( close ) %]
+ <span class="label">Fund: </span>
+ <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
+ [% ELSE %]
+ <li>
+ <label for="all_currency">Currency:</label>
+ <select name="all_currency" id="all_currency">
+ [% FOREACH loop_currencie IN loop_currencies %]
+ [% 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 %]
+ </select>
+ </li>
+ <li>
+ <label for="all_budget_id">Fund: </label>
+ <select id="all_budget_id" size="1" name="all_budget_id">
+ [% FOREACH budget_loo IN budget_loop %]
+ [% IF ( budget_loo.b_sel ) %]
+ <option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]" selected="selected">[% budget_loo.b_txt %]</option>
+ [% ELSE %]
+ <option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ </li>
+ [% END %]
+ </li>
+ <li>
+ <label for="all_order_internalnote">Internal note: </label>
+ <textarea id="all_order_internalnote" cols="30" rows="3" name="all_order_internalnote"></textarea>
+ </li>
+ <li>
+ <label for="all_order_vendornote">Vendor note: </label>
+ <textarea id="all_order_vendornote" cols="30" rows="3" name="all_order_vendornote"></textarea>
+ </li>
+ <li>
+ <div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
+ <label for="sort1">Planning value1: </label>
+ [% IF CGIsort1 %]
+ <select id="all_sort1" size="1" name="all_sort1">
+ [% FOREACH sort_opt IN CGIsort1 %]
+ [% IF sort_opt.default %]
+ <option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option>
+ [% ELSE %]
+ <option value="[% sort_opt.id %]">[% sort_opt.label %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ [% ELSE %]
+ <input type="text" id="all_sort1" size="20" name="all_sort1" value="[% sort1 %]" />
+ [% END %]
+ </li>
+ <li>
+ <span id="sort2_zone">
+ <label for="sort2">Planning value2: </label>
+ [% IF CGIsort2 %]
+ <select id="all_sort2" size="1" name="all_sort1">
+ [% FOREACH sort_opt IN CGIsort2 %]
+ [% IF sort_opt.default %]
+ <option value="[% sort_opt.id %]" selected="selected">[% sort_opt.label %]</option>
+ [% ELSE %]
+ <option value="[% sort_opt.id %]">[% sort_opt.label %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ [% ELSE %]
+ <input type="text" id="all_sort2" size="20" name="all_sort2" value="[% sort2 %]" />
+ [% END %]
+ </span>
+ </li>
+ </ol>
+ </fieldset>
+ <fieldset class="action">
+ <input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
+ </fieldset>
+
+ </div>
+ </form>
+ [% ELSE %]
+ <div>
+ <h1>Choose the file to add to the basket</h1>
+ <table id="files">
+ <thead>
+ <tr>
+ <th>File name</th>
+ <th>Comments</th>
+ <th>Status</th>
+ <th class="title-string">Staged</th>
+ <th># Bibs</th>
+ <th class="NoSort"> </th>
+ </tr>
+ </thead>
+ <tbody>
+ [% FOREACH batch_lis IN batch_list %]
+ <tr>
+ <td>[% batch_lis.file_name %]</td>
+ <td>[% batch_lis.comments %]</td>
+ <td>
+ [% IF ( batch_lis.import_status == 'cleaned' ) %]
+ Cleaned
+ [% ELSIF ( batch_lis.import_status == 'imported' ) %]
+ Imported
+ [% ELSIF ( batch_lis.import_status == 'importing' ) %]
+ Importing
+ [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
+ Reverted
+ [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
+ Reverting
+ [% ELSIF ( batch_lis.import_status == 'staged' ) %]
+ Staged
+ [% ELSE %]
+ [% batch_lis.import_status %]
+ [% END %]
+ </td>
+ <td><span title="[% batch_lis.staged_date %]">[% batch_lis.staged_date | $KohaDates with_hours => 1 %]</span></td>
+ <td>[% batch_lis.num_biblios %]</td>
+ <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]">Add orders</a></td>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
+ </div>
+ [% END %]
+ </div>