4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Acquisitions › Basket [% basketno %] › [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="acq_neworderempty" class="acq">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'acquisitions-search.inc' %]
14 <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>
16 <div id="doc3" class="yui-t2">
23 [% IF ( ordernumber ) %]
30 <div class="error" style="display:none"></div>
33 <div id="acqui_basket_summary" class="yui-g">
34 <fieldset class="rows">
35 <legend>Basket details</legend>
37 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
38 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
39 [% IF ( basketcontractno ) %]
40 <li><span class="label">Contract number: </span>[% basketcontractno %]</li>
41 <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]">[% basketcontractname %]</a></li>
43 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
44 [% IF ( creationdate ) %]<li><span class="label">Open on:</span> [% creationdate | $KohaDates %]</li>[% END %]
45 [% IF ( closedate ) %]
46 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
47 <li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>
48 [% IF ( basketgroups ) %]
49 <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
50 [% FOREACH basketgroup IN basketgroups %]
51 [% IF ( basketgroup.default ) %]
52 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
54 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
58 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
59 <input type="hidden" value="mod_basket" name="op" />
60 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
62 <fieldset class="action"><input type="submit" value="Change basketgroup" /></fieldset>
71 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);" >
73 <fieldset class="rows">
74 <legend>Patrons</legend>
77 <span class="label">To notify on receiving:</span>
78 <div style="float:left">
79 <ul id="users_names" style="padding-left:0">
80 [% FOREACH user IN users %]
81 <li id="user_[% user.borrowernumber %]">
82 [% user.firstname %] [% user.surname %]
83 [<a onclick="del_user([% user.borrowernumber %]);" style="cursor:pointer">Delete user</a>]
87 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids %]" />
88 <input type="hidden" id="op" name="op" value="mod_users" />
89 <input type="button" id="add_user" onclick="UserSearchPopup();" value="Add user" />
95 <fieldset class="rows">
98 [% IF ( biblionumber ) %]
99 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]"> Edit record</a></span>
102 [% UNLESS ( existing ) %]
103 <input type="hidden" name="existing" value="no" />
105 <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
106 <input type="hidden" name="basketno" value="[% basketno %]" />
107 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
108 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
109 <input type="hidden" name="listinc" id="listinc" value="[% listincgst %]" />
110 <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst %]" />
111 <input type="hidden" name="suggestionid" value="[% suggestionid %]" />
112 <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
114 [% FOREACH c IN currencies %]
115 <input type="hidden" id="currency_rate_[% c.currency %]" name="[% c.currency %]" value="[% c.rate %]" />
118 [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
120 [% IF ( biblionumber ) %]
121 <span class="label">Title</span>
122 <input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
124 <label for="entertitle">Title: </label>
125 <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" required="required" />
126 <span class="required">Required</span>
130 [% IF ( biblionumber ) %]
131 <span class="label">Author: </span>
132 <input type="hidden" name="author" id="author" value="[% author %]" />[% author %]
134 <label for="author">Author: </label>
135 <input type="text" size="50" name="author" id="author" value="[% author %]" />
139 [% IF ( biblionumber ) %]
140 <span class="label">Publisher: </span>
141 <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
143 <label for="publishercode"> Publisher: </label>
144 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
148 [% IF ( biblionumber ) %]
149 <span class="label">Edition: </span>
150 <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
153 <label for="editionstatement">Edition: </label>
154 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
158 [% IF ( biblionumber ) %]
159 <span class="label">Publication year: </span>
160 <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
162 <label for="publicationyear">Publication year: </label>
163 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
167 [% IF ( biblionumber ) %]
168 <span class="label">ISBN: </span>
169 <input type="hidden" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
171 <label for="ISBN">ISBN: </label>
172 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
177 [% IF ( biblionumber ) %]
178 <span class="label">EAN: </span>
179 <input type="hidden" name="ean" id="EAN" value="[% ean %]" />[% ean %]
181 <label for="EAN">EAN: </label>
182 <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
187 [% IF ( biblionumber ) %]
188 <span class="label">Series: </span>
189 <input type="hidden" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
191 <label for="series">Series: </label>
192 <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
195 [% UNLESS ( biblionumber ) %]
196 [% IF ( itemtypeloop ) %]
198 <span class="label">Item type:</span>
199 <select name="itemtype" style="width:12em;">
200 [% FOREACH itemtype IN itemtypeloop %]
201 <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
209 <input type="hidden" name="use_ACQ_framework" value="1" />
210 [% IF biblionumber %]
212 [% FOREACH field IN catalog_details %]
214 <div class="subfield_line">
215 <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label>
223 [% FOREACH field IN catalog_details %]
225 <div class="subfield_line">
226 [% PROCESS display_subfield field=field %]
235 [% IF ( suggestionid ) %]
236 <fieldset class="rows">
237 <legend>Suggestion</legend>
240 <span class="label">Suggested by: </span>
241 [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">suggestion #[% suggestionid %]</a>)
247 [% UNLESS subscriptionid || basket.is_standing %][% # it is a suggestion, we have not items %]
248 [% IF (AcqCreateItemOrdering) %]
250 <div id="items_list" style="display:none">
251 <p><b>Items list</b></p>
252 <div style="width:100%;overflow:auto;">
259 <th>Home library</th>
260 <th>Holding library</th>
261 <th>Not for loan</th>
266 <th>Inventory number</th>
267 <th>Collection code</th>
279 <fieldset class="rows" id="itemfieldset">
280 <legend>Item</legend>
281 [% IF ( NoACQframework ) %]
282 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
285 [% UNLESS Koha.Preference('autoBarcode') == 'OFF' %]
286 <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>
289 <div id="outeritemblock"></div>
292 [% END %][%# UNLESS subscriptionid %]
293 [% END %][%# IF (AcqCreateItemOrdering) %]
294 <fieldset class="rows">
295 <legend>Accounting details</legend>
299 <span class="label required">Quantity: </span>
300 <input type="hidden" name="quantity" value="[% quantity %]" />[% quantity %]
302 <label class="required" for="quantity">Quantity: </label>
303 [% IF (AcqCreateItemOrdering) %]
304 [% IF subscriptionid || basket.is_standing %]
305 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
307 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
310 [% IF subscriptionid || basket.is_standing %]
311 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
313 <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" />
316 <span class="required">Required</span>
318 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
319 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
323 <span class="label required">Fund: </span>
324 <input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
326 <label class="required" for="budget_id">Fund: </label>
327 [% active_count = 0 %]
328 [% IF !ordernumber %]
329 [% FOREACH budget_loo IN budget_loop %]
330 [% active_count= active_count + budget_loo.b_active %]
333 <select id="budget_id" size="1" name="budget_id">
334 <option value="">Select a fund</option>
335 [% FOREACH budget_loo IN budget_loop %]
336 [% IF ( budget_loo.b_sel ) %]
337 [% active_count = 0 #select no other fund %]
338 <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
339 style="padding-left:[% budget_loo.b_level %]em;"
341 [% ELSIF active_count==1 && budget_loo.b_active %]
342 <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
343 style="padding-left:[% budget_loo.b_level %]em;"
346 [% bdgclass=budget_loo.b_active? "": "b_inactive" %]
347 <option value="[% budget_loo.b_id %]" class="[% bdgclass %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
348 style="padding-left:[% budget_loo.b_level %]em;"
351 [% budget_loo.b_txt %][% IF !budget_loo.b_active %] (inactive)[% END %]
355 <span class="required">Required</span>
356 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
357 <input type="checkbox" id="showallbudgets" />
362 <span class="label">Currency: </span>
363 <input type="hidden" name="currency" id="currency" value="[% currency %]" />[% currency %]
365 <label for="currency">Currency:</label>
366 <select name="currency" id="currency" onchange="updateCosts();">
367 [% FOREACH c IN currencies %]
368 [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
369 <option value="[% c.currency %]" selected="selected">[% c.currency %]</option>
370 [% ELSIF not c.archived %]
371 <option value="[% c.currency %]">[% c.currency %]</option>
379 <span class="label">Vendor price: </span>
380 <input type="hidden" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %] [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
382 <label for="listprice">Vendor price: </label>
383 <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
386 [% UNLESS ( close ) %]
388 <label for="uncertainprice">Uncertain price: </label>
389 [% IF ( uncertainprice ) %]
390 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" checked="checked" />
392 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
396 [% IF ( gst_values ) %]
399 <span class="label">Tax rate: </span>
400 <input type="hidden" name="tax_rate" id="tax_rate" value="[% tax_rate %]" />[% tax_rate %]%
402 <label for="tax_rate">Tax rate: </label>
403 <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
404 [% FOREACH gst IN gst_values %]
405 [% IF ( gst.option == tax_rate ) %]
406 <option value="[% gst.option %]" selected="selected">[% gst.option * 100 %]%</option>
408 <option value="[% gst.option %]">[% gst.option * 100 %]%</option>
414 <input type="hidden" name="tax_rate" value="0" />
418 <label for="discount">Discount: </label>
420 [% IF ( orderdiscount ) %]
421 <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]%
423 <input type="hidden" name="discount" id="discount" value="[% discount %]" />[% discount_2dp %]%
426 [% IF ( orderdiscount ) %]
427 <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount %]" onchange="updateCosts();" />%
429 <input type="text" size="6" name="discount" id="discount" value="[% discount %]" onchange="updateCosts();" />%
435 <span class="label">Replacement cost: </span>
436 <input type="hidden" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %] (adjusted for [% cur_active %], [% IF (listincgst == 1) %]tax inc.[% ELSE %]tax exc.[% END %])
438 <label for="rrp">Replacement cost: </label>
439 <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %], [% IF (listincgst == 1) %]tax inc.[% ELSE %]tax exc.[% END %])
443 <label for="ecost">Budgeted cost: </label>
444 <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly" /> [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
447 <label for="total">Total: </label>
448 <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" /> (budgeted cost * quantity)
452 <label for="unitprice">Actual cost: </label>
453 <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" /> [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
455 <label for="unitprice">Actual cost: </label>
456 <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" /> [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
460 <label for="order_internalnote">Internal note: </label>
461 <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote %][% END %]</textarea>
464 <label for="order_vendornote">Vendor note: </label>
465 <textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote" >[% IF ( order_vendornote ) %][% order_vendornote %][% END %]</textarea>
467 <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
468 <label for="sort1">Statistic 1: </label>
469 <input id="sort1" type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
471 <label for="sort2">Statistic 2: </label>
472 <input id="sort2" type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
476 <fieldset class="action">
477 <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
478 <input type="submit" value="Save" />
479 [% IF (suggestionid) %]
480 <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">Cancel</a>
482 [% IF subscriptionid %]
483 <a class="cancel" href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">Cancel</a>
485 <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
491 <div id="procModal" data-backdrop="static" class="modal fade" aria-labelledby="procModal" aria-hidden="true">
492 <div class="modal-dialog">
493 <div class="modal-content">
494 <div class="modal-body">
495 <h3>Processing multiple items</h3>
501 <div id="multiCountModal" class="modal fade" aria-labelledby="multiCountModal" aria-hidden="true">
502 <div class="modal-dialog">
503 <div class="modal-content">
504 <h3>Invalid number of copies</h3>
505 <p>Please enter a <b>number</b>, greater than or equal to 1</p>
513 [% INCLUDE 'acquisitions-menu.inc' %]
517 [% MACRO jsinclude BLOCK %]
518 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
519 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acq_[% KOHA_VERSION %].js"></script>
520 [% INCLUDE 'additem.js.inc' %]
521 <script type="text/javascript" src="[% interface %]/[% theme %]/js/additem_[% KOHA_VERSION %].js"></script>
522 <script type="text/javascript" src="[% interface %]/[% theme %]/js/cataloging_[% KOHA_VERSION %].js"></script>
523 <script type="text/javascript" src="[% interface %]/[% theme %]/js/prevent_submit_[% KOHA_VERSION %].js"></script>
524 <script type="text/javascript">
528 [% IF (AcqCreateItemOrdering) %]
529 // Remove last itemblock if it is not in items_list
530 var lastitemblock = $("#outeritemblock > div:last");
531 var tobedeleted = true;
532 var listitems = $("#items_list tr");
533 $(listitems).each(function(){
534 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
539 $(lastitemblock).remove();
544 var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
546 _alertString +="-------------------------------------------------------------------\n\n";
548 if(isNull(ff.budget_id,1)){
550 _alertString += "\n- "+ _("You must select a fund");
553 if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){
555 _alertString += "\n- " + _("Quantity must be greater than '0'");
558 if (!(isNum(ff.listprice,0))){
560 _alertString += "\n- " + _("Vendor price must be a number");
563 if (!(isNum(ff.total,0))){
565 _alertString += "\n- " + _("Total must be a number");
568 if (totalExceedsBudget(ff.budget_id.value, ff.total.value ) ) {
570 _alertString += "\n- " + _("Order total (%s) exceeds budget available (%s)").format(ff.total.value, actTotal);
573 if ( ff.field_value ) {
574 var empty_item_mandatory = CheckMandatorySubfields(ff);
575 if (empty_item_mandatory > 0) {
578 "\n- " + _("%s item mandatory fields empty").format(empty_item_mandatory);
585 [% IF (AcqCreateItemOrdering) %]
587 $(lastitemblock).appendTo('#outeritemblock');
593 [% IF (AcqCreateItemOrdering) %]
594 if(check_additem('[% UniqueItemFields %]') == false) {
595 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
597 $(lastitemblock).appendTo('#outeritemblock');
604 $(document).ready(function(){
605 [% IF AcqCreateItemOrdering and not basket.is_standing %]
606 cloneItemBlock(0, '[% UniqueItemFields %]');
609 [% IF ( suggestionid ) %]updateCosts();[% END %]
610 $("#quantity").change(function() {
614 //We apply the fonction only for modify option
615 [% IF ( quantityrec ) %]
616 [% IF ( acqcreate ) %]
617 $('#quantity').blur(function(){
618 // if user decreases the quantity
619 if($(this).val() < [% quantityrec %]){
620 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
623 // if user increases the quantity
624 alert(_("You can't add a new item, please create a new order line"));
625 // and we replace the original value
626 $(this).val([% quantityrec %])
627 updateCosts(); // blur is invoked after change which updated values
634 //keep a copy of all budgets before removing the inactives
635 disabledBudgetsCopy = $('#budget_id').html();
636 $('#budget_id .b_inactive').remove();
638 $('#showallbudgets').click(function() {
639 if ($(this).is(":checked")) {
640 $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
643 $('#budget_id .b_inactive').remove();
647 $("#budget_id").change(function(){
648 var destination_sort1 = $(this).parents('fieldset.rows').find('input[name="sort1"]');
649 var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat');
650 var sort1 = $(destination_sort1).val() || "";
651 if ( destination_sort1.length < 1 ) {
652 destination_sort1 = $(this).parents('fieldset.rows').find('select[name="sort1"]');
654 var destination_sort2 = $(this).parents('fieldset.rows').find('input[name="sort2"]');
655 var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat');
656 var sort2 = $(destination_sort2).val() || "";
657 if ( destination_sort2.length < 1 ) {
658 destination_sort2 = $(this).parents('fieldset.rows').find('select[name="sort2"]');
660 getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 );
661 getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 );
663 $("#budget_id").change();
666 function UserSearchPopup(f) {
668 "/cgi-bin/koha/acqui/add_user_search.pl",
670 'width=740, height=450, scrollbars=yes, toolbar=no,'
674 function add_user(borrowernumber, borrowername) {
675 var ids = $("#users_ids").val();
677 ids = ids.split(':');
681 if (ids.indexOf(borrowernumber.toString()) < 0) {
682 ids.push(borrowernumber);
683 $("#users_ids").val(ids.join(':'));
684 var li = '<li id="user_'+borrowernumber+'">'+borrowername
685 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
686 + _("Delete user") + '</a>]</li>';
687 $("#users_names").append(li);
693 function del_user(borrowernumber) {
694 $("#user_"+borrowernumber).remove();
695 var ids = $("#users_ids").val().split(':');
696 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
697 $("#users_ids").val(ids.join(':'));
702 [% INCLUDE 'intranet-bottom.inc' %]
704 [% BLOCK display_subfield %]
705 <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label>
706 [% IF field.authorised_value %]
707 [% SWITCH field.authorised_value %]
708 [% CASE 'branches' %]
709 [% IF field.mandatory %]
710 <select name="bib_field_value" required="required">
712 <select name="bib_field_value">
714 <option value=""></option>
715 [% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %]
717 [% CASE 'itemtypes' %]
718 [% IF field.mandatory %]
719 <select name="bib_field_value" required="required">
721 <select name="bib_field_value">
723 <option value=""></option>
724 [% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %]
726 [% CASE 'cn_source' %]
728 [% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %]
731 [% IF field.mandatory %]
732 <input type="text" name="bib_field_value" value="[% field.value %]" required="required" size="50" />
734 <input type="text" name="bib_field_value" value="[% field.value %]" size="50" />
738 <input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" />
739 <input type="hidden" name="bib_tag" value="[% field.tag %]" />
740 <input type="hidden" name="bib_subfield" value="[% field.subfield %]" />
741 [% IF field.mandatory %] <span class="required">Required</span>[% END %]