5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › Basket [% basketno %] › [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="acq_neworderempty" class="acq">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'acquisitions-search.inc' %]
15 <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 %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> › [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</div>
17 <div id="doc3" class="yui-t2">
24 [% IF ( ordernumber ) %]
31 <div class="error" style="display:none"></div>
34 <div id="acqui_basket_summary" class="yui-g">
35 <fieldset class="rows">
36 <legend>Basket details</legend>
38 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
39 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
40 [% IF ( basketcontractno ) %]
41 <li><span class="label">Contract number: </span>[% basketcontractno %]</li>
42 <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]">[% basketcontractname %]</a></li>
44 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
45 [% IF ( creationdate ) %]<li><span class="label">Open on:</span> [% creationdate | $KohaDates %]</li>[% END %]
46 [% IF ( closedate ) %]
47 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
48 <li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>
49 [% IF ( basketgroups ) %]
50 <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
51 [% FOREACH basketgroup IN basketgroups %]
52 [% IF ( basketgroup.default ) %]
53 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
55 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
59 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
60 <input type="hidden" value="mod_basket" name="op" />
61 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
63 <fieldset class="action"><input type="submit" value="Change basketgroup" /></fieldset>
72 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);" >
74 <fieldset class="rows">
75 <legend>Patrons</legend>
78 <span class="label">To notify on receiving:</span>
79 <div style="float:left">
80 <ul id="users_names" style="padding-left:0">
81 [% FOREACH user IN users %]
82 <li id="user_[% user.borrowernumber %]">
83 [% user.firstname %] [% user.surname %]
84 [<a onclick="del_user([% user.borrowernumber %]);" style="cursor:pointer">Delete user</a>]
88 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids %]" />
89 <input type="hidden" id="op" name="op" value="mod_users" />
90 <input type="button" id="add_user" onclick="UserSearchPopup();" value="Add user" />
96 <fieldset class="rows">
99 [% IF ( biblionumber ) %]
100 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]"> Edit record</a></span>
103 [% UNLESS ( existing ) %]
104 <input type="hidden" name="existing" value="no" />
106 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
107 <input type="hidden" name="basketno" value="[% basketno %]" />
108 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
109 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
110 <input type="hidden" name="listinc" id="listinc" value="[% listincgst %]" />
111 <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst %]" />
112 <input type="hidden" name="suggestionid" value="[% suggestionid %]" />
113 <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
115 [% FOREACH c IN currencies %]
116 <input type="hidden" id="currency_rate_[% c.currency %]" name="[% c.currency %]" value="[% c.rate %]" />
119 [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
121 [% IF ( biblionumber ) %]
122 <span class="label">Title</span>
123 <input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
125 <label for="entertitle">Title: </label>
126 <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" required="required" />
127 <span class="required">Required</span>
131 [% IF ( biblionumber ) %]
132 <span class="label">Author: </span>
133 <input type="hidden" name="author" id="author" value="[% author %]" />[% author %]
135 <label for="author">Author: </label>
136 <input type="text" size="50" name="author" id="author" value="[% author %]" />
140 [% IF ( biblionumber ) %]
141 <span class="label">Publisher: </span>
142 <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
144 <label for="publishercode"> Publisher: </label>
145 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
149 [% IF ( biblionumber ) %]
150 <span class="label">Edition: </span>
151 <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
154 <label for="editionstatement">Edition: </label>
155 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
159 [% IF ( biblionumber ) %]
160 <span class="label">Publication year: </span>
161 <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
163 <label for="publicationyear">Publication year: </label>
164 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
168 [% IF ( biblionumber ) %]
169 <span class="label">ISBN: </span>
170 <input type="hidden" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
172 <label for="ISBN">ISBN: </label>
173 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
178 [% IF ( biblionumber ) %]
179 <span class="label">EAN: </span>
180 <input type="hidden" name="ean" id="EAN" value="[% ean %]" />[% ean %]
182 <label for="EAN">EAN: </label>
183 <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
188 [% IF ( biblionumber ) %]
189 <span class="label">Series: </span>
190 <input type="hidden" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
192 <label for="series">Series: </label>
193 <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
196 [% UNLESS ( biblionumber ) %]
197 [% IF ( itemtypeloop ) %]
199 <span class="label">Item type:</span>
200 <select name="itemtype" style="width:12em;">
201 [% FOREACH itemtype IN itemtypeloop %]
202 <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
210 <input type="hidden" name="use_ACQ_framework" value="1" />
211 [% IF biblionumber %]
213 [% FOREACH field IN catalog_details %]
215 <div class="subfield_line">
216 <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label>
224 [% FOREACH field IN catalog_details %]
226 <div class="subfield_line">
227 [% PROCESS display_subfield field=field %]
236 [% IF ( suggestionid ) %]
237 <fieldset class="rows">
238 <legend>Suggestion</legend>
241 <span class="label">Suggested by: </span>
242 [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">suggestion #[% suggestionid %]</a>)
248 [% UNLESS subscriptionid || basket.is_standing %][% # it is a suggestion, we have not items %]
249 [% IF (AcqCreateItemOrdering) %]
251 <div id="items_list" style="display:none">
252 <p><b>Items list</b></p>
253 <div style="width:100%;overflow:auto;">
260 <th>Home library</th>
261 <th>Holding library</th>
262 <th>Not for loan</th>
267 <th>Inventory number</th>
268 <th>Collection code</th>
280 <fieldset class="rows" id="itemfieldset">
281 <legend>Item</legend>
282 [% IF ( NoACQframework ) %]
283 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
286 [% UNLESS Koha.Preference('autoBarcode') == 'OFF' %]
287 <div class="dialog message">The autoBarcode system preference is set to [% Koha.Preference('autoBarcode') %] and items with blank barcodes will have barcodes generated upon save to database</div>
290 <div id="outeritemblock"></div>
293 [% END %][%# UNLESS subscriptionid %]
294 [% END %][%# IF (AcqCreateItemOrdering) %]
295 <fieldset class="rows">
296 <legend>Accounting details</legend>
300 <span class="label required">Quantity: </span>
301 <input type="hidden" name="quantity" value="[% quantity %]" />[% quantity %]
303 <label class="required" for="quantity">Quantity: </label>
304 [% IF (AcqCreateItemOrdering) %]
305 [% IF subscriptionid || basket.is_standing %]
306 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
308 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
311 [% IF subscriptionid || basket.is_standing %]
312 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
314 <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" />
317 <span class="required">Required</span>
319 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
320 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
324 <span class="label required">Fund: </span>
325 <input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
327 <label class="required" for="budget_id">Fund: </label>
328 [% active_count = 0 %]
329 [% IF !ordernumber %]
330 [% FOREACH budget_loo IN budget_loop %]
331 [% active_count= active_count + budget_loo.b_active %]
334 <select id="budget_id" size="1" name="budget_id">
335 <option value="">Select a fund</option>
336 [% FOREACH budget_loo IN budget_loop %]
337 [% IF ( budget_loo.b_sel ) %]
338 [% active_count = 0 #select no other fund %]
339 <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
340 style="padding-left:[% budget_loo.b_level %]em;"
342 [% ELSIF active_count==1 && budget_loo.b_active %]
343 <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
344 style="padding-left:[% budget_loo.b_level %]em;"
347 [% bdgclass=budget_loo.b_active? "": "b_inactive" %]
348 <option value="[% budget_loo.b_id %]" class="[% bdgclass %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
349 style="padding-left:[% budget_loo.b_level %]em;"
352 [% budget_loo.b_txt %][% IF !budget_loo.b_active %] (inactive)[% END %]
356 <span class="required">Required</span>
357 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
358 <input type="checkbox" id="showallbudgets" />
363 <span class="label">Currency: </span>
364 <input type="hidden" name="currency" id="currency" value="[% currency %]" />[% currency %]
366 <label for="currency">Currency:</label>
367 <select name="currency" id="currency" onchange="updateCosts();">
368 [% FOREACH c IN currencies %]
369 [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
370 <option value="[% c.currency %]" selected="selected">[% c.currency %]</option>
371 [% ELSIF not c.archived %]
372 <option value="[% c.currency %]">[% c.currency %]</option>
380 <span class="label">Vendor price: </span>
381 <input type="hidden" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %] [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
383 <label for="listprice">Vendor price: </label>
384 <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
387 [% UNLESS ( close ) %]
389 <label for="uncertainprice">Uncertain price: </label>
390 [% IF ( uncertainprice ) %]
391 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" checked="checked" />
393 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
397 [% IF ( gst_values ) %]
400 <span class="label">Tax rate: </span>
401 <input type="hidden" name="tax_rate" id="tax_rate" value="[% tax_rate %]" />[% tax_rate %]%
403 <label for="tax_rate">Tax rate: </label>
404 <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
405 [% FOREACH gst IN gst_values %]
406 [% IF ( gst.option == tax_rate ) %]
407 <option value="[% gst.option %]" selected="selected">[% gst.option * 100 %]%</option>
409 <option value="[% gst.option %]">[% gst.option * 100 %]%</option>
415 <input type="hidden" name="tax_rate" value="0" />
419 <label for="discount">Discount: </label>
421 [% IF ( orderdiscount ) %]
422 <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]%
424 <input type="hidden" name="discount" id="discount" value="[% discount %]" />[% discount_2dp %]%
427 [% IF ( orderdiscount ) %]
428 <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount %]" onchange="updateCosts();" />%
430 <input type="text" size="6" name="discount" id="discount" value="[% discount %]" onchange="updateCosts();" />%
436 <span class="label">Replacement cost: </span>
437 <input type="hidden" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %] (adjusted for [% cur_active %], [% IF (listincgst == 1) %]tax inc.[% ELSE %]tax exc.[% END %])
439 <label for="rrp">Replacement cost: </label>
440 <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %], [% IF (listincgst == 1) %]tax inc.[% ELSE %]tax exc.[% END %])
444 <label for="ecost">Budgeted cost: </label>
445 <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly" /> [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
448 <label for="total">Total: </label>
449 <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" /> (budgeted cost * quantity)
453 <label for="unitprice">Actual cost: </label>
454 <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" /> [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
456 <label for="unitprice">Actual cost: </label>
457 <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" /> [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
461 <label for="order_internalnote">Internal note: </label>
462 <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote %][% END %]</textarea>
465 <label for="order_vendornote">Vendor note: </label>
466 <textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote" >[% IF ( order_vendornote ) %][% order_vendornote %][% END %]</textarea>
468 <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
469 <label for="sort1">Statistic 1: </label>
470 <input id="sort1" type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
472 <label for="sort2">Statistic 2: </label>
473 <input id="sort2" type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
477 <fieldset class="action">
478 <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
479 <input type="submit" value="Save" />
480 [% IF (suggestionid) %]
481 <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">Cancel</a>
483 [% IF subscriptionid %]
484 <a class="cancel" href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">Cancel</a>
486 <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
492 <div id="procModal" data-backdrop="static" class="modal fade" aria-labelledby="procModal" aria-hidden="true">
493 <div class="modal-dialog">
494 <div class="modal-content">
495 <div class="modal-body">
496 <h3>Processing multiple items</h3>
502 <div id="multiCountModal" class="modal fade" aria-labelledby="multiCountModal" aria-hidden="true">
503 <div class="modal-dialog">
504 <div class="modal-content">
505 <h3>Invalid number of copies</h3>
506 <p>Please enter a <b>number</b>, greater than or equal to 1</p>
514 [% INCLUDE 'acquisitions-menu.inc' %]
518 [% MACRO jsinclude BLOCK %]
519 [% Asset.js("js/acquisitions-menu.js") %]
520 [% Asset.js("js/acq.js") %]
521 [% INCLUDE 'additem.js.inc' %]
522 [% Asset.js("js/additem.js") %]
523 [% Asset.js("js/cataloging.js") %]
524 [% Asset.js("js/prevent_submit.js") %]
525 <script type="text/javascript">
529 [% IF (AcqCreateItemOrdering) %]
530 // Remove last itemblock if it is not in items_list
531 var lastitemblock = $("#outeritemblock > div:last");
532 var tobedeleted = true;
533 var listitems = $("#items_list tr");
534 $(listitems).each(function(){
535 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
540 $(lastitemblock).remove();
545 var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
547 _alertString +="-------------------------------------------------------------------\n\n";
549 if(isNull(ff.budget_id,1)){
551 _alertString += "\n- "+ _("You must select a fund");
554 if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){
556 _alertString += "\n- " + _("Quantity must be greater than '0'");
559 if (!(isNum(ff.listprice,0))){
561 _alertString += "\n- " + _("Vendor price must be a number");
564 if (!(isNum(ff.total,0))){
566 _alertString += "\n- " + _("Total must be a number");
569 if (totalExceedsBudget(ff.budget_id.value, ff.total.value ) ) {
571 _alertString += "\n- " + _("Order total (%s) exceeds budget available (%s)").format(ff.total.value, actTotal);
574 if ( ff.field_value ) {
575 var empty_item_mandatory = CheckMandatorySubfields(ff);
576 if (empty_item_mandatory > 0) {
579 "\n- " + _("%s item mandatory fields empty").format(empty_item_mandatory);
586 [% IF (AcqCreateItemOrdering) %]
588 $(lastitemblock).appendTo('#outeritemblock');
594 [% IF (AcqCreateItemOrdering) %]
595 if(check_additem('[% UniqueItemFields %]') == false) {
596 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
598 $(lastitemblock).appendTo('#outeritemblock');
605 $(document).ready(function(){
606 [% IF AcqCreateItemOrdering and not basket.is_standing %]
607 cloneItemBlock(0, '[% UniqueItemFields %]');
610 [% IF ( suggestionid ) %]updateCosts();[% END %]
611 $("#quantity").change(function() {
615 //We apply the fonction only for modify option
616 [% IF ( quantityrec ) %]
617 [% IF ( acqcreate ) %]
618 $('#quantity').blur(function(){
619 // if user decreases the quantity
620 if($(this).val() < [% quantityrec %]){
621 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
624 // if user increases the quantity
625 alert(_("You can't add a new item, please create a new order line"));
626 // and we replace the original value
627 $(this).val([% quantityrec %])
628 updateCosts(); // blur is invoked after change which updated values
635 //keep a copy of all budgets before removing the inactives
636 disabledBudgetsCopy = $('#budget_id').html();
637 $('#budget_id .b_inactive').remove();
639 $('#showallbudgets').click(function() {
640 if ($(this).is(":checked")) {
641 $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
644 $('#budget_id .b_inactive').remove();
648 $("#budget_id").change(function(){
649 var destination_sort1 = $(this).parents('fieldset.rows').find('input[name="sort1"]');
650 var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat');
651 var sort1 = $(destination_sort1).val() || "";
652 if ( destination_sort1.length < 1 ) {
653 destination_sort1 = $(this).parents('fieldset.rows').find('select[name="sort1"]');
655 var destination_sort2 = $(this).parents('fieldset.rows').find('input[name="sort2"]');
656 var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat');
657 var sort2 = $(destination_sort2).val() || "";
658 if ( destination_sort2.length < 1 ) {
659 destination_sort2 = $(this).parents('fieldset.rows').find('select[name="sort2"]');
661 getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 );
662 getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 );
664 $("#budget_id").change();
667 function UserSearchPopup(f) {
669 "/cgi-bin/koha/acqui/add_user_search.pl",
671 'width=740, height=450, scrollbars=yes, toolbar=no,'
675 function add_user(borrowernumber, borrowername) {
676 var ids = $("#users_ids").val();
678 ids = ids.split(':');
682 if (ids.indexOf(borrowernumber.toString()) < 0) {
683 ids.push(borrowernumber);
684 $("#users_ids").val(ids.join(':'));
685 var li = '<li id="user_'+borrowernumber+'">'+borrowername
686 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
687 + _("Delete user") + '</a>]</li>';
688 $("#users_names").append(li);
694 function del_user(borrowernumber) {
695 $("#user_"+borrowernumber).remove();
696 var ids = $("#users_ids").val().split(':');
697 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
698 $("#users_ids").val(ids.join(':'));
703 [% INCLUDE 'intranet-bottom.inc' %]
705 [% BLOCK display_subfield %]
706 <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label>
707 [% IF field.authorised_value %]
708 [% SWITCH field.authorised_value %]
709 [% CASE 'branches' %]
710 [% IF field.mandatory %]
711 <select name="bib_field_value" required="required">
713 <select name="bib_field_value">
715 <option value=""></option>
716 [% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %]
718 [% CASE 'itemtypes' %]
719 [% IF field.mandatory %]
720 <select name="bib_field_value" required="required">
722 <select name="bib_field_value">
724 <option value=""></option>
725 [% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %]
727 [% CASE 'cn_source' %]
729 [% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %]
732 [% IF field.mandatory %]
733 <input type="text" name="bib_field_value" value="[% field.value %]" required="required" size="50" />
735 <input type="text" name="bib_field_value" value="[% field.value %]" size="50" />
739 <input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" />
740 <input type="hidden" name="bib_tag" value="[% field.tag %]" />
741 <input type="hidden" name="bib_subfield" value="[% field.subfield %]" />
742 [% IF field.mandatory %] <span class="required">Required</span>[% END %]