7 [% USE AuthorisedValues %]
8 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>[% FILTER collapse %]
11 [% IF ( ordernumber ) %]
12 [% tx("Modify order details (line #{ordernumber})", { ordernumber = ordernumber }) | html %]
14 [% t("New order") | html %]
16 [% tx("Basket {basketnumber}", { basketnumber = basketno }) | html %] ›
17 [% t("Acquisitions") | html %] ›
18 [% t("Koha") | html %]
20 [% INCLUDE 'doc-head-close.inc' %]
24 #itemfieldset span.label {
34 #itemfieldset .input_marceditor {
38 #itemfieldset .input_marceditor.flatpickr-input {
42 #itemfieldset .subfield_line {
48 [% Asset.js("js/acquisitions-menu.js") | $raw %]
49 [% Asset.js("js/acq.js") | $raw %]
50 [% Asset.js("js/additem.js") | $raw %]
51 [% Asset.js("js/cataloging.js") | $raw %]
52 [% INCLUDE 'calendar.inc' %]
53 [% INCLUDE 'select2.inc' %]
58 [% IF (AcqCreateItemOrdering) %]
59 // Remove last itemblock if it is not in items_list
60 var lastitemblock = $("#outeritemblock > div:last");
61 var tobedeleted = true;
62 var listitems = $("#items_list tr");
63 $(listitems).each(function(){
64 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
69 $(lastitemblock).remove();
74 var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
76 _alertString +="-------------------------------------------------------------------\n\n";
78 if(isNull(ff.budget_id,1)){
80 _alertString += "\n- "+ _("You must select a fund");
83 if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){
85 _alertString += "\n- " + _("Quantity must be greater than '0'");
88 if (!(isNum(ff.listprice,0))){
90 _alertString += "\n- " + _("Vendor price must be a number");
93 if (!(isNum(ff.total,0))){
95 _alertString += "\n- " + _("Total must be a number");
98 if (totalExceedsBudget(ff.budget_id.value, ff.total.value ) ) {
100 _alertString += "\n- " + _("Order total (%s) exceeds budget available (%s)").format(ff.total.value, actTotal);
103 if ( ff.field_value ) {
104 var empty_item_mandatory = CheckMandatorySubfields(ff);
105 if (empty_item_mandatory > 0) {
108 "\n- " + _("%s item mandatory fields empty").format(empty_item_mandatory);
115 [% IF (AcqCreateItemOrdering) %]
117 $(lastitemblock).appendTo('#outeritemblock');
123 [% IF (AcqCreateItemOrdering) %]
124 if(check_additem('[% UniqueItemFields | html %]') == false) {
125 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
127 $(lastitemblock).appendTo('#outeritemblock');
134 $(document).ready(function(){
135 [% IF AcqCreateItemOrdering and not basket.is_standing %]
136 cloneItemBlock(0, '[% UniqueItemFields | html %]');
139 [% IF ( suggestionid ) %]updateCosts();[% END %]
140 $("#quantity").change(function() {
144 //We apply the function only for modify option
145 [% IF ( quantityrec and not subscriptionid ) %]
146 [% IF ( acqcreate ) %]
147 $('#quantity').blur(function(){
148 // if user decreases the quantity
149 if($(this).val() < [% quantityrec | html %]){
150 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
153 // if user increases the quantity
154 alert(_("You can't add a new item, please create a new order line"));
155 // and we replace the original value
156 $(this).val([% quantityrec | html %])
157 updateCosts(); // blur is invoked after change which updated values
164 //keep a copy of all budgets before removing the inactives
165 disabledBudgetsCopy = $('#budget_id').html();
166 $('#budget_id .b_inactive').remove();
168 $('#showallbudgets').click(function() {
169 if ($(this).is(":checked")) {
170 $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
173 $('#budget_id .b_inactive').remove();
177 $("#budget_id").change(function(){
178 var destination_sort1 = $(this).parents('fieldset.rows').find('input[name="sort1"]');
179 var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat');
180 var sort1 = $(destination_sort1).val() || "";
181 if ( destination_sort1.length < 1 ) {
182 destination_sort1 = $(this).parents('fieldset.rows').find('select[name="sort1"]');
184 var destination_sort2 = $(this).parents('fieldset.rows').find('input[name="sort2"]');
185 var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat');
186 var sort2 = $(destination_sort2).val() || "";
187 if ( destination_sort2.length < 1 ) {
188 destination_sort2 = $(this).parents('fieldset.rows').find('select[name="sort2"]');
190 getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 );
191 getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 );
193 $("#budget_id").change();
196 function UserSearchPopup(f) {
198 "/cgi-bin/koha/members/search.pl?columns=cardnumber,name,category,branch,action&selection_type=add",
200 'width=1024, height=768, scrollbars=yes, toolbar=no,'
204 function add_user(borrowernumber, borrowername) {
205 var ids = $("#users_ids").val();
207 ids = ids.split(':');
211 if (ids.indexOf(borrowernumber.toString()) < 0) {
212 ids.push(borrowernumber);
213 $("#users_ids").val(ids.join(':'));
214 var li = '<li id="user_'+borrowernumber+'">'+borrowername
215 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
216 + _("Delete user") + '</a>]</li>';
217 $("#users_names").append(li);
223 function del_user(borrowernumber) {
224 $("#user_"+borrowernumber).remove();
225 var ids = $("#users_ids").val().split(':');
226 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
227 $("#users_ids").val(ids.join(':'));
230 [% Asset.css("css/addbiblio.css") | $raw %]
233 <body id="acq_neworderempty" class="acq">
235 [% WRAPPER 'header.inc' %]
236 [% INCLUDE 'acquisitions-search.inc' %]
239 [% WRAPPER 'sub-header.inc' %]
240 [% WRAPPER breadcrumbs %]
241 [% WRAPPER breadcrumb_item %]
242 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
244 [% WRAPPER breadcrumb_item %]
245 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
247 [% WRAPPER breadcrumb_item %]
248 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
250 [% IF ( ordernumber ) %]
251 [% WRAPPER breadcrumb_item bc_active= 1 %]
252 <span>Modify order details (line #[% ordernumber | html %])</span>
255 [% WRAPPER breadcrumb_item bc_active= 1 %]
256 <span>New order</span>
259 [% END #/ WRAPPER breadcrumbs %]
260 [% END #/ WRAPPER sub-header.inc %]
262 [% INCLUDE 'blocking_errors.inc' %]
264 <div class="main container-fluid">
266 <div class="col-sm-10 col-sm-push-2">
270 [% IF ( ordernumber ) %]
277 <div class="dialog alert order_error" style="display:none"></div>
279 [% IF ( basketno ) %]
280 <div id="acqui_basket_summary">
281 <fieldset class="rows">
282 <legend>Basket details</legend>
284 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote | html %]</li>[% END %]
285 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote | html %]</li>[% END %]
286 [% IF ( basketcontractno ) %]
287 <li><span class="label">Contract number: </span>[% basketcontractno | html %]</li>
288 <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno | uri %]">[% basketcontractname | html %]</a></li>
290 [% IF ( authorisedbyname ) %]<li><span class="label">[% tp('Acquisitions basket managed by user', 'Managed by:') | html %]</span> [% authorisedbyname | html %]</li>[% END %]
291 [% IF ( creationdate ) %]<li><span class="label">Open on:</span> [% creationdate | $KohaDates %]</li>[% END %]
292 [% IF ( closedate ) %]
293 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
294 <li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>
295 [% IF ( basketgroups ) %]
296 <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
297 [% FOREACH basketgroup IN basketgroups %]
298 [% IF ( basketgroup.default ) %]
299 <option value="[% basketgroup.id | html %]" selected="selected">[% basketgroup.name | html %]</option>
301 <option value="[% basketgroup.id | html %]">[% basketgroup.name | html %]</option>
305 <input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" />
306 <input type="hidden" value="mod_basket" name="op" />
307 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
309 <fieldset class="action"><input type="submit" class="btn btn-primary" value="Change basketgroup" /></fieldset>
318 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated noEnterSubmit" id="Aform" onsubmit="return Check(this);" >
320 <fieldset class="rows">
321 <legend>Patrons</legend>
324 <span class="label">To notify on receiving:</span>
325 <div style="float:left">
326 <ul id="users_names" style="padding-left:0">
327 [% FOREACH user IN users %]
328 <li id="user_[% user.borrowernumber | html %]">
329 [% user.firstname | html %] [% user.surname | html %]
330 [<a onclick="del_user([% user.borrowernumber | html %]);" style="cursor:pointer">Delete user</a>]
334 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" />
335 <input type="hidden" id="op" name="op" value="mod_users" />
336 <input type="button" id="add_user" class="btn btn-default" onclick="UserSearchPopup();" value="Add user" />
342 <fieldset class="rows">
345 [% IF ( biblionumber ) %]
346 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | uri %]"> Edit record</a></span>
349 [% UNLESS ( existing ) %]
350 <input type="hidden" name="existing" value="no" />
352 <input type="hidden" name="ordernumber" value="[% ordernumber | html %]" />
353 <input type="hidden" name="basketno" value="[% basketno | html %]" />
354 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
355 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
356 <input type="hidden" name="listinc" id="listinc" value="[% listincgst | html %]" />
357 <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst | html %]" />
358 <input type="hidden" name="suggestionid" value="[% suggestionid | html %]" />
359 <input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" />
361 [% FOREACH c IN currencies %]
362 <input type="hidden" id="currency_rate_[% c.currency | html %]" name="[% c.currency | html %]" value="[% c.rate | html %]" />
365 [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
367 [% IF ( biblionumber ) %]
368 <span class="label">Title:</span>
369 <input type="hidden" name="title" value="[% title | html %]" /> <span class="title">[% title | html %]</span>
371 <label for="entertitle">Title: </label>
372 <input type="text" id="entertitle" size="50" name="title" value="[% title | html %]" class="focus" required="required" />
373 <span class="required">Required</span>
377 [% IF ( biblionumber ) %]
378 <span class="label">Author: </span>
379 <input type="hidden" name="author" id="author" value="[% author | html %]" />[% author | html %]
381 <label for="author">Author: </label>
382 <input type="text" size="50" name="author" id="author" value="[% author | html %]" />
386 [% IF ( biblionumber ) %]
387 <span class="label">Publisher: </span>
388 <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode | html %]" />[% publishercode | html %]
390 <label for="publishercode"> Publisher: </label>
391 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode | html %]" />
395 [% IF ( biblionumber ) %]
396 <span class="label">Edition: </span>
397 <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement | html %]" />[% editionstatement | html %]
400 <label for="editionstatement">Edition: </label>
401 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement | html %]" />
405 [% IF ( biblionumber ) %]
406 <span class="label">Publication year: </span>
407 <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear | html %]" />[% publicationyear | html %]
409 <label for="publicationyear">Publication year: </label>
410 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear | html %]" />
414 [% IF ( biblionumber ) %]
415 <span class="label">ISBN: </span>
416 <input type="hidden" name="isbn" id="ISBN" value="[% isbn | html %]" />[% isbn | html %]
418 <label for="ISBN">ISBN: </label>
419 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn | html %]" />
424 [% IF ( biblionumber ) %]
425 <span class="label">EAN: </span>
426 <input type="hidden" name="ean" id="EAN" value="[% ean | html %]" />[% ean | html %]
428 <label for="EAN">EAN: </label>
429 <input type="text" size="20" name="ean" id="EAN" value="[% ean | html %]" />
434 [% IF ( biblionumber ) %]
435 <span class="label">Series: </span>
436 <input type="hidden" name="series" id="series" value="[% seriestitle | html %]" />[% seriestitle | html %]
438 <label for="series">Series: </label>
439 <input type="text" size="50" name="series" id="series" value="[% seriestitle | html %]" />
442 [% UNLESS ( biblionumber ) %]
443 [% IF ( itemtypeloop ) %]
445 <span class="label">Item type:</span>
446 <select name="itemtype" style="width:12em;">
447 [% FOREACH itemtype IN itemtypeloop %]
448 <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
456 <input type="hidden" name="use_ACQ_framework" value="1" />
457 [% IF biblionumber %]
459 [% FOREACH field IN catalog_details %]
460 <li class="subfield_line">
461 <label>[% field.lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
462 [% field.value | html %]
468 [% FOREACH field IN catalog_details %]
469 <li class="subfield_line">
470 [% PROCESS display_subfield field=field %]
478 [% IF ( suggestionid ) %]
479 <fieldset class="rows">
480 <legend>Suggestion</legend>
483 <span class="label">Suggested by: </span>
484 [% surnamesuggestedby | html %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby | html %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid | uri %]&op=show">suggestion #[% suggestionid | html %]</a>)
490 [% UNLESS subscriptionid || basket.is_standing %][% # it is a suggestion, we have not items %]
491 [% IF (AcqCreateItemOrdering) %]
493 <div id="items_list" class="page-section" style="display:none">
494 <p><strong>Items list</strong></p>
495 <div style="width:100%;overflow:auto;">
499 <th class="noExport">Actions</th>
501 <th>Home library</th>
502 <th>Holding library</th>
503 <th>Not for loan</th>
508 <th>Inventory number</th>
521 <fieldset class="rows" id="itemfieldset">
522 <legend>Item</legend>
523 [% IF ( NoACQframework ) %]
524 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
527 [% UNLESS Koha.Preference('autoBarcode') == 'OFF' %]
528 <div class="dialog message">The autoBarcode system preference is set to [% Koha.Preference('autoBarcode') | html %] and items with blank barcodes will have barcodes generated upon save to database</div>
531 <div id="outeritemblock"></div>
534 [% END %][%# | html UNLESS subscriptionid %]
535 [% END %][%# IF (AcqCreateItemOrdering) %]
536 <fieldset class="rows">
537 <legend>Accounting details</legend>
540 <label class="required" for="quantity">Quantity: </label>
541 [% IF subscriptionid %]
542 <input type="text" size="20" id="quantity" name="quantity" value="1" onchange="updateCosts();" />
543 [% ELSIF AcqCreateItemOrdering %]
544 [% IF basket.is_standing %]
545 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
547 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
550 [% IF basket.is_standing %]
551 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
553 <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec | html %]" onchange="updateCosts();" />
556 <span class="required">Required</span>
557 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order -->
558 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
560 [% IF subscription %]
563 <span>Frequency:</span> [% subscription.frequency.description | html %] |
564 [% IF subscription.numberlength %]<span>Number of issues: [% subscription.numberlength | html %]</span>[% END %]
565 [% IF subscription.weeklength %]<span>Number of weeks: [% subscription.weeklength | html %]</span>[% END %]
566 [% IF subscription.monthlength %]<span>Number of months: [% subscription.monthlength | html %]</span>[% END %]
571 <label class="required" for="budget_id">Fund: </label>
572 [% active_count = 0 %]
573 [% IF !ordernumber %]
574 [% FOREACH budget_loo IN budget_loop %]
575 [% active_count= active_count + budget_loo.b_active %]
578 <select class="select2" id="budget_id" name="budget_id">
579 <option value="">Select a fund</option>
580 [% FOREACH budget_loo IN budget_loop %]
581 [% level_indent_cnt = 0 %]
582 [% level_indent = "" %]
583 [% WHILE level_indent_cnt < budget_loo.b_level %]
584 [% level_indent = level_indent _ " -- " %]
585 [% level_indent_cnt = level_indent_cnt +1 %]
588 [% IF ( budget_loo.b_sel ) %]
589 [% active_count = 0 #select no other fund %]
590 <option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
592 [% ELSIF active_count==1 && budget_loo.b_active %]
593 <option value="[% budget_loo.b_id | html %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
596 [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %]
597 <option value="[% budget_loo.b_id | html %]" class="[% bdgclass | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]"
600 [% level_indent | html %][% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %]
604 <span class="required">Required</span>
605 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
606 <input type="checkbox" id="showallbudgets" />
609 <label for="currency">Currency:</label>
610 <select name="currency" id="currency" onchange="updateCosts();">
611 [% FOREACH c IN currencies %]
612 [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
613 <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
614 [% ELSIF not c.archived %]
615 <option value="[% c.currency | html %]">[% c.currency | html %]</option>
621 <label for="listprice">Vendor price: </label>
622 <input class="decimal" type="text" size="20" name="listprice" id="listprice" value="[% listprice | html %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
625 <label for="uncertainprice">Uncertain price: </label>
626 [% IF ( uncertainprice ) %]
627 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" checked="checked" />
629 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
632 [% IF ( gst_values ) %]
634 <label for="tax_rate">Tax rate: </label>
635 <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
636 [% SET gst_found = 0 %]
637 [% FOREACH gst IN gst_values %]
638 [% IF ( gst.option == tax_rate ) %]
639 <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option>
640 [% SET gst_found = 1 %]
642 <option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option>
647 <option value="[% tax_rate | html %]" selected="selected">[% tax_rate * 100 | html %]%</option>
651 [% IF !gst_found %]<span class="required">Tax rate not defined in system preference TaxRates!</span>[% END %]
653 <input type="hidden" name="tax_rate" value="0" />
657 <label for="discount">Discount: </label>
658 [% IF ( ordernumber ) %]
659 <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount | html %]" onchange="updateCosts();" />%
661 <input type="text" size="6" name="discount" id="discount" value="[% discount | html %]" onchange="updateCosts();" />%
665 <label for="rrp">Retail price: </label>
666 <input class="decimal" type="text" size="20" name="rrp" id="rrp" value="[% rrp | $Price on_editing => 1 %]" /> (adjusted for [% cur_active | html %], [% IF (listincgst == 1) %]tax inclusive[% ELSE %]tax exclusive[% END %])
669 <label for="replacementprice">Replacement cost: </label>
670 <input class="decimal" type="text" size="20" name="replacementprice" id="replacementprice" value="[% replacementprice | html | $Price on_editing => 1 %]" />
673 <label for="ecost">Budgeted cost: </label>
674 <input type="text" size="20" name="ecost" id="ecost" value="[% ecost | html %]" readonly="readonly" /> [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
677 <label for="total">Total: </label>
678 <input type="text" id="total" size="20" name="total" value="[% total | html %]" readonly="readonly" /> (budgeted cost * quantity)
680 <li class="ordering_unitprice">
681 <label for="unitprice">Actual cost: </label>
682 <input class="decimal" type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice | html %]" />
683 [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
686 <label for="order_internalnote">Internal note: </label>
687 <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote | html %][% END %]</textarea>
690 <label for="order_vendornote">Vendor note: </label>
691 <textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote" >[% IF ( order_vendornote ) %][% order_vendornote | html %][% END %]</textarea>
694 <label for="estimated_delivery_date">Estimated delivery date: </label>
695 <input type="text" id="estimated_delivery_date" size="10" name="estimated_delivery_date" class="flatpickr" value="[% estimated_delivery_date | html %]"/>
696 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
699 <div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
702 <label for="sort1">Statistic 1: </label>
703 <input id="sort1" type="text" id="sort1" size="20" name="sort1" value="[% sort1 | html %]" />
706 <label for="sort2">Statistic 2: </label>
707 <input id="sort2" type="text" id="sort2" size="20" name="sort2" value="[% sort2 | html %]" />
712 [% IF additional_fields.size %]
713 [% INCLUDE 'additional-fields-entry.inc' available = additional_fields values = additional_field_values %]
716 <fieldset class="action">
717 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
718 <input type="submit" class="btn btn-primary" value="Save" />
719 [% IF (suggestionid) %]
720 <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">Cancel</a>
722 [% IF subscriptionid %]
723 <a class="cancel" href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">Cancel</a>
725 <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
731 <div id="procModal" data-backdrop="static" class="modal fade" aria-labelledby="procModal" aria-hidden="true">
732 <div class="modal-dialog">
733 <div class="modal-content">
734 <div class="modal-body">
735 <h3>Processing multiple items</h3>
741 <div id="multiCountModal" class="modal fade" aria-labelledby="multiCountModal" aria-hidden="true">
742 <div class="modal-dialog">
743 <div class="modal-content">
744 <h3>Invalid number of copies</h3>
745 <p>Please enter a <strong>number</strong>, greater than or equal to 1</p>
751 </div> <!-- /.col-sm-10.col-sm-push-2 -->
753 <div class="col-sm-2 col-sm-pull-10">
755 [% INCLUDE 'acquisitions-menu.inc' %]
757 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
758 </div> <!-- /.row -->
760 [% MACRO jsinclude BLOCK %]
763 [% INCLUDE 'intranet-bottom.inc' %]
765 [% BLOCK display_subfield %]
766 <label>[% field.marc_lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
768 [% SET mv = field.marc_value %]
769 [% IF ( mv.type == 'text' ) %]
770 [% IF ( mv.readonly == 1 ) %]
771 <input type="text" id="[%- mv.id | html -%]" name="bib_field_value" value="[%- mv.value | html -%]" class="input_marceditor readonly" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" readonly="readonly" />
773 <input type="text" id="[%- mv.id | html -%]" name="bib_field_value" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" />
776 [% ELSIF ( mv.type == 'text_complex' ) %]
777 <input type="text" id="[%- mv.id | html -%]" name="bib_field_value" value="[%- mv.value | html -%]" class="input_marceditor framework_plugin" tabindex="1" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" />
778 [% mv.javascript | $raw %]
779 [% ELSIF ( mv.type == 'hidden' ) %]
780 <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="bib_field_value" size="[%- mv.size | html -%]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
781 [% ELSIF ( mv.type == 'textarea' ) %]
782 <textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="bib_field_value" class="input_marceditor" tabindex="1">[%- mv.value | html -%]</textarea>
783 [% ELSIF ( mv.type == 'select' ) %]
784 <select name="bib_field_value" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
785 [% FOREACH aval IN mv.values %]
786 [% IF aval == mv.default %]
787 <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
789 <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
793 [% END # /IF (mv.type...) %]
795 <div class="subfield_controls">
796 [% IF ( mv.type == 'text_complex' ) %]
798 <span class="buttonDot tag_editor disabled" tabindex="-1" title="Field autofilled by plugin"></span>
800 [% IF mv.plugin == "upload.pl" %]
801 <a href="#" id="buttonDot_[% mv.id | html %]" class="tag_editor upload framework_plugin" tabindex="1"><i class="fa fa-upload" aria-hidden="true"></i> Upload</a>
803 <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor framework_plugin" tabindex="1" title="Tag editor">Tag editor</a>
809 <input type="hidden" name="bib_kohafield" value="[% field.kohafield | html %]" />
810 <input type="hidden" name="bib_tag" value="[% field.tag | html %]" />
811 <input type="hidden" name="bib_subfield" value="[% field.subfield | html %]" />
812 [% IF field.mandatory %] <span class="required">Required</span>[% END %]