8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% IF ( ordernumber ) %]Modify order details (line #[% ordernumber | html %])[% ELSE %]New order[% END %] › Basket [% basketno | html %] › Acquisitions › Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="acq_neworderempty" class="acq">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'acquisitions-search.inc' %]
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
27 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
30 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
33 [% IF ( ordernumber ) %]
35 <a href="#" aria-current="page">
36 Modify order details (line #[% ordernumber | html %])
41 <a href="#" aria-current="page">
49 [% INCLUDE 'blocking_errors.inc' %]
51 <div class="main container-fluid">
53 <div class="col-sm-10 col-sm-push-2">
57 [% IF ( ordernumber ) %]
64 <div class="dialog alert order_error" style="display:none"></div>
67 <div id="acqui_basket_summary">
68 <fieldset class="rows">
69 <legend>Basket details</legend>
71 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote | html %]</li>[% END %]
72 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote | html %]</li>[% END %]
73 [% IF ( basketcontractno ) %]
74 <li><span class="label">Contract number: </span>[% basketcontractno | html %]</li>
75 <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>
77 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname | html %]</li>[% END %]
78 [% IF ( creationdate ) %]<li><span class="label">Open on:</span> [% creationdate | $KohaDates %]</li>[% END %]
79 [% IF ( closedate ) %]
80 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
81 <li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>
82 [% IF ( basketgroups ) %]
83 <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
84 [% FOREACH basketgroup IN basketgroups %]
85 [% IF ( basketgroup.default ) %]
86 <option value="[% basketgroup.id | html %]" selected="selected">[% basketgroup.name | html %]</option>
88 <option value="[% basketgroup.id | html %]">[% basketgroup.name | html %]</option>
92 <input type="hidden" id="basketno" value="[% basketno | html %]" name="basketno" />
93 <input type="hidden" value="mod_basket" name="op" />
94 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
96 <fieldset class="action"><input type="submit" value="Change basketgroup" /></fieldset>
105 <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated noEnterSubmit" id="Aform" onsubmit="return Check(this);" >
107 <fieldset class="rows">
108 <legend>Patrons</legend>
111 <span class="label">To notify on receiving:</span>
112 <div style="float:left">
113 <ul id="users_names" style="padding-left:0">
114 [% FOREACH user IN users %]
115 <li id="user_[% user.borrowernumber | html %]">
116 [% user.firstname | html %] [% user.surname | html %]
117 [<a onclick="del_user([% user.borrowernumber | html %]);" style="cursor:pointer">Delete user</a>]
121 <input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" />
122 <input type="hidden" id="op" name="op" value="mod_users" />
123 <input type="button" id="add_user" onclick="UserSearchPopup();" value="Add user" />
129 <fieldset class="rows">
132 [% IF ( biblionumber ) %]
133 <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | uri %]"> Edit record</a></span>
136 [% UNLESS ( existing ) %]
137 <input type="hidden" name="existing" value="no" />
139 <input type="hidden" name="ordernumber" value="[% ordernumber | html %]" />
140 <input type="hidden" name="basketno" value="[% basketno | html %]" />
141 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
142 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
143 <input type="hidden" name="listinc" id="listinc" value="[% listincgst | html %]" />
144 <input type="hidden" name="invoiceincgst" id="invoiceincgst" value="[% invoiceincgst | html %]" />
145 <input type="hidden" name="suggestionid" value="[% suggestionid | html %]" />
146 <input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" />
148 [% FOREACH c IN currencies %]
149 <input type="hidden" id="currency_rate_[% c.currency | html %]" name="[% c.currency | html %]" value="[% c.rate | html %]" />
152 [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
154 [% IF ( biblionumber ) %]
155 <span class="label">Title</span>
156 <input type="hidden" name="title" value="[% title | html %]" /> <span class="title">[% title | html %]</span>
158 <label for="entertitle">Title: </label>
159 <input type="text" id="entertitle" size="50" name="title" value="[% title | html %]" class="focus" required="required" />
160 <span class="required">Required</span>
164 [% IF ( biblionumber ) %]
165 <span class="label">Author: </span>
166 <input type="hidden" name="author" id="author" value="[% author | html %]" />[% author | html %]
168 <label for="author">Author: </label>
169 <input type="text" size="50" name="author" id="author" value="[% author | html %]" />
173 [% IF ( biblionumber ) %]
174 <span class="label">Publisher: </span>
175 <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode | html %]" />[% publishercode | html %]
177 <label for="publishercode"> Publisher: </label>
178 <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode | html %]" />
182 [% IF ( biblionumber ) %]
183 <span class="label">Edition: </span>
184 <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement | html %]" />[% editionstatement | html %]
187 <label for="editionstatement">Edition: </label>
188 <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement | html %]" />
192 [% IF ( biblionumber ) %]
193 <span class="label">Publication year: </span>
194 <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear | html %]" />[% publicationyear | html %]
196 <label for="publicationyear">Publication year: </label>
197 <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear | html %]" />
201 [% IF ( biblionumber ) %]
202 <span class="label">ISBN: </span>
203 <input type="hidden" name="isbn" id="ISBN" value="[% isbn | html %]" />[% isbn | html %]
205 <label for="ISBN">ISBN: </label>
206 <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn | html %]" />
211 [% IF ( biblionumber ) %]
212 <span class="label">EAN: </span>
213 <input type="hidden" name="ean" id="EAN" value="[% ean | html %]" />[% ean | html %]
215 <label for="EAN">EAN: </label>
216 <input type="text" size="20" name="ean" id="EAN" value="[% ean | html %]" />
221 [% IF ( biblionumber ) %]
222 <span class="label">Series: </span>
223 <input type="hidden" name="series" id="series" value="[% seriestitle | html %]" />[% seriestitle | html %]
225 <label for="series">Series: </label>
226 <input type="text" size="50" name="series" id="series" value="[% seriestitle | html %]" />
229 [% UNLESS ( biblionumber ) %]
230 [% IF ( itemtypeloop ) %]
232 <span class="label">Item type:</span>
233 <select name="itemtype" style="width:12em;">
234 [% FOREACH itemtype IN itemtypeloop %]
235 <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
243 <input type="hidden" name="use_ACQ_framework" value="1" />
244 [% IF biblionumber %]
246 [% FOREACH field IN catalog_details %]
248 <div class="subfield_line">
249 <label>[% field.lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
250 [% field.value | html %]
257 [% FOREACH field IN catalog_details %]
259 <div class="subfield_line">
260 [% PROCESS display_subfield field=field %]
269 [% IF ( suggestionid ) %]
270 <fieldset class="rows">
271 <legend>Suggestion</legend>
274 <span class="label">Suggested by: </span>
275 [% surnamesuggestedby | html %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby | html %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid | uri %]&op=show">suggestion #[% suggestionid | html %]</a>)
281 [% UNLESS subscriptionid || basket.is_standing %][% # it is a suggestion, we have not items %]
282 [% IF (AcqCreateItemOrdering) %]
284 <div id="items_list" style="display:none">
285 <p><strong>Items list</strong></p>
286 <div style="width:100%;overflow:auto;">
290 <th class="noExport">Actions</th>
292 <th>Home library</th>
293 <th>Holding library</th>
294 <th>Not for loan</th>
299 <th>Inventory number</th>
312 <fieldset class="rows" id="itemfieldset">
313 <legend>Item</legend>
314 [% IF ( NoACQframework ) %]
315 <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
318 [% UNLESS Koha.Preference('autoBarcode') == 'OFF' %]
319 <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>
322 <div id="outeritemblock"></div>
325 [% END %][%# | html UNLESS subscriptionid %]
326 [% END %][%# IF (AcqCreateItemOrdering) %]
327 <fieldset class="rows">
328 <legend>Accounting details</legend>
331 <label class="required" for="quantity">Quantity: </label>
332 [% IF subscriptionid %]
333 <input type="text" size="20" id="quantity" name="quantity" value="1" onchange="updateCosts();" />
334 [% ELSIF AcqCreateItemOrdering %]
335 [% IF basket.is_standing %]
336 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
338 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" />
341 [% IF basket.is_standing %]
342 <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
344 <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec | html %]" onchange="updateCosts();" />
347 <span class="required">Required</span>
348 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order -->
349 <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
351 [% IF subscription %]
354 Frequency: [% subscription.frequency.description | html %] |
355 [% IF subscription.numberlength %]Number of issues: [% subscription.numberlength | html %][% END %]
356 [% IF subscription.weeklength %]Number of weeks: [% subscription.weeklength | html %][% END %]
357 [% IF subscription.monthlength %]Number of months: [% subscription.monthlength | html %][% END %]
362 <label class="required" for="budget_id">Fund: </label>
363 [% active_count = 0 %]
364 [% IF !ordernumber %]
365 [% FOREACH budget_loo IN budget_loop %]
366 [% active_count= active_count + budget_loo.b_active %]
369 <select id="budget_id" name="budget_id">
370 <option value="">Select a fund</option>
371 [% FOREACH budget_loo IN budget_loop %]
372 [% IF ( budget_loo.b_sel ) %]
373 [% active_count = 0 #select no other fund %]
374 <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 %]"
375 style="padding-left:[% budget_loo.b_level | html %]em;"
377 [% ELSIF active_count==1 && budget_loo.b_active %]
378 <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 %]"
379 style="padding-left:[% budget_loo.b_level | html %]em;"
382 [% bdgclass=budget_loo.b_active? "": "b_inactive" | html %]
383 <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 %]"
384 style="padding-left:[% budget_loo.b_level | html %]em;"
387 [% budget_loo.b_txt | html %][% IF !budget_loo.b_active %] (inactive)[% END %]
391 <span class="required">Required</span>
392 <label for="showallbudgets" style="float:none;"> Show inactive:</label>
393 <input type="checkbox" id="showallbudgets" />
396 <label for="currency">Currency:</label>
397 <select name="currency" id="currency" onchange="updateCosts();">
398 [% FOREACH c IN currencies %]
399 [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
400 <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
401 [% ELSIF not c.archived %]
402 <option value="[% c.currency | html %]">[% c.currency | html %]</option>
408 <label for="listprice">Vendor price: </label>
409 <input type="text" size="20" name="listprice" id="listprice" value="[% listprice | html %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
412 <label for="uncertainprice">Uncertain price: </label>
413 [% IF ( uncertainprice ) %]
414 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" checked="checked" />
416 <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
419 [% IF ( gst_values ) %]
421 <label for="tax_rate">Tax rate: </label>
422 <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
423 [% SET gst_found = 0 %]
424 [% FOREACH gst IN gst_values %]
425 [% IF ( gst.option == tax_rate ) %]
426 <option value="[% gst.option | html %]" selected="selected">[% gst.option * 100 | html %]%</option>
427 [% SET gst_found = 1 %]
429 <option value="[% gst.option | html %]">[% gst.option * 100 | html %]%</option>
434 <option value="[% tax_rate | html %]" selected="selected">[% tax_rate * 100 | html %]%</option>
438 [% IF !gst_found %]<span class="required">Tax rate not defined in system preference TaxRates!</span>[% END %]
440 <input type="hidden" name="tax_rate" value="0" />
444 <label for="discount">Discount: </label>
445 [% IF ( orderdiscount ) %]
446 <input type="text" size="6" name="discount" id="discount" value="[% orderdiscount | html %]" onchange="updateCosts();" />%
448 <input type="text" size="6" name="discount" id="discount" value="[% discount | html %]" onchange="updateCosts();" />%
452 <label for="rrp">Retail price: </label>
453 <input type="text" size="20" name="rrp" id="rrp" value="[% rrp | html %]" /> (adjusted for [% cur_active | html %], [% IF (listincgst == 1) %]tax inclusive[% ELSE %]tax exclusive[% END %])
456 <label for="replacementprice">Replacement cost: </label>
457 <input type="text" size="20" name="replacementprice" id="replacementprice" value="[% replacementprice | html | $Price on_editing => 1 %]" />
460 <label for="ecost">Budgeted cost: </label>
461 <input type="text" size="20" name="ecost" id="ecost" value="[% ecost | html %]" readonly="readonly" /> [% IF (listincgst == 1) %](tax inclusive)[% ELSE %](tax exclusive)[% END %]
464 <label for="total">Total: </label>
465 <input type="text" id="total" size="20" name="total" value="[% total | html %]" readonly="readonly" /> (budgeted cost * quantity)
467 <li class="ordering_unitprice">
468 <label for="unitprice">Actual cost: </label>
469 <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice | html %]" />
470 [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
473 <label for="order_internalnote">Internal note: </label>
474 <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote | html %][% END %]</textarea>
477 <label for="order_vendornote">Vendor note: </label>
478 <textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote" >[% IF ( order_vendornote ) %][% order_vendornote | html %][% END %]</textarea>
480 <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
481 <label for="sort1">Statistic 1: </label>
482 <input id="sort1" type="text" id="sort1" size="20" name="sort1" value="[% sort1 | html %]" />
484 <label for="sort2">Statistic 2: </label>
485 <input id="sort2" type="text" id="sort2" size="20" name="sort2" value="[% sort2 | html %]" />
489 <fieldset class="action">
490 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
491 <input type="submit" value="Save" />
492 [% IF (suggestionid) %]
493 <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">Cancel</a>
495 [% IF subscriptionid %]
496 <a class="cancel" href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]">Cancel</a>
498 <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
504 <div id="procModal" data-backdrop="static" class="modal fade" aria-labelledby="procModal" aria-hidden="true">
505 <div class="modal-dialog">
506 <div class="modal-content">
507 <div class="modal-body">
508 <h3>Processing multiple items</h3>
514 <div id="multiCountModal" class="modal fade" aria-labelledby="multiCountModal" aria-hidden="true">
515 <div class="modal-dialog">
516 <div class="modal-content">
517 <h3>Invalid number of copies</h3>
518 <p>Please enter a <strong>number</strong>, greater than or equal to 1</p>
524 </div> <!-- /.col-sm-10.col-sm-push-2 -->
526 <div class="col-sm-2 col-sm-pull-10">
528 [% INCLUDE 'acquisitions-menu.inc' %]
530 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
531 </div> <!-- /.row -->
533 [% MACRO jsinclude BLOCK %]
534 [% Asset.js("js/acquisitions-menu.js") | $raw %]
535 [% Asset.js("js/acq.js") | $raw %]
536 [% Asset.js("js/additem.js") | $raw %]
537 [% Asset.js("js/cataloging.js") | $raw %]
538 [% INCLUDE 'calendar.inc' %]
543 [% IF (AcqCreateItemOrdering) %]
544 // Remove last itemblock if it is not in items_list
545 var lastitemblock = $("#outeritemblock > div:last");
546 var tobedeleted = true;
547 var listitems = $("#items_list tr");
548 $(listitems).each(function(){
549 if($(this).attr('idblock') == $(lastitemblock).attr('id')){
554 $(lastitemblock).remove();
559 var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
561 _alertString +="-------------------------------------------------------------------\n\n";
563 if(isNull(ff.budget_id,1)){
565 _alertString += "\n- "+ _("You must select a fund");
568 if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){
570 _alertString += "\n- " + _("Quantity must be greater than '0'");
573 if (!(isNum(ff.listprice,0))){
575 _alertString += "\n- " + _("Vendor price must be a number");
578 if (!(isNum(ff.total,0))){
580 _alertString += "\n- " + _("Total must be a number");
583 if (totalExceedsBudget(ff.budget_id.value, ff.total.value ) ) {
585 _alertString += "\n- " + _("Order total (%s) exceeds budget available (%s)").format(ff.total.value, actTotal);
588 if ( ff.field_value ) {
589 var empty_item_mandatory = CheckMandatorySubfields(ff);
590 if (empty_item_mandatory > 0) {
593 "\n- " + _("%s item mandatory fields empty").format(empty_item_mandatory);
600 [% IF (AcqCreateItemOrdering) %]
602 $(lastitemblock).appendTo('#outeritemblock');
608 [% IF (AcqCreateItemOrdering) %]
609 if(check_additem('[% UniqueItemFields | html %]') == false) {
610 alert(_("Duplicate values detected. Please correct the errors and resubmit.") );
612 $(lastitemblock).appendTo('#outeritemblock');
619 $(document).ready(function(){
620 [% IF AcqCreateItemOrdering and not basket.is_standing %]
621 cloneItemBlock(0, '[% UniqueItemFields | html %]');
624 [% IF ( suggestionid ) %]updateCosts();[% END %]
625 $("#quantity").change(function() {
629 //We apply the fonction only for modify option
630 [% IF ( quantityrec and not subscriptionid ) %]
631 [% IF ( acqcreate ) %]
632 $('#quantity').blur(function(){
633 // if user decreases the quantity
634 if($(this).val() < [% quantityrec | html %]){
635 alert(_("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"));
638 // if user increases the quantity
639 alert(_("You can't add a new item, please create a new order line"));
640 // and we replace the original value
641 $(this).val([% quantityrec | html %])
642 updateCosts(); // blur is invoked after change which updated values
649 //keep a copy of all budgets before removing the inactives
650 disabledBudgetsCopy = $('#budget_id').html();
651 $('#budget_id .b_inactive').remove();
653 $('#showallbudgets').click(function() {
654 if ($(this).is(":checked")) {
655 $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
658 $('#budget_id .b_inactive').remove();
662 $("#budget_id").change(function(){
663 var destination_sort1 = $(this).parents('fieldset.rows').find('input[name="sort1"]');
664 var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat');
665 var sort1 = $(destination_sort1).val() || "";
666 if ( destination_sort1.length < 1 ) {
667 destination_sort1 = $(this).parents('fieldset.rows').find('select[name="sort1"]');
669 var destination_sort2 = $(this).parents('fieldset.rows').find('input[name="sort2"]');
670 var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat');
671 var sort2 = $(destination_sort2).val() || "";
672 if ( destination_sort2.length < 1 ) {
673 destination_sort2 = $(this).parents('fieldset.rows').find('select[name="sort2"]');
675 getAuthValueDropbox( 'sort1', sort1_authcat, destination_sort1, sort1 );
676 getAuthValueDropbox( 'sort2', sort2_authcat, destination_sort2, sort2 );
678 $("#budget_id").change();
681 function UserSearchPopup(f) {
683 "/cgi-bin/koha/acqui/add_user_search.pl",
685 'width=740, height=450, scrollbars=yes, toolbar=no,'
689 function add_user(borrowernumber, borrowername) {
690 var ids = $("#users_ids").val();
692 ids = ids.split(':');
696 if (ids.indexOf(borrowernumber.toString()) < 0) {
697 ids.push(borrowernumber);
698 $("#users_ids").val(ids.join(':'));
699 var li = '<li id="user_'+borrowernumber+'">'+borrowername
700 + ' [<a style="cursor:pointer" onclick="del_user('+borrowernumber+');">'
701 + _("Delete user") + '</a>]</li>';
702 $("#users_names").append(li);
708 function del_user(borrowernumber) {
709 $("#user_"+borrowernumber).remove();
710 var ids = $("#users_ids").val().split(':');
711 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
712 $("#users_ids").val(ids.join(':'));
717 [% INCLUDE 'intranet-bottom.inc' %]
719 [% BLOCK display_subfield %]
720 <label>[% field.lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
721 [% IF field.authorised_value %]
722 [% SWITCH field.authorised_value %]
723 [% CASE 'branches' %]
724 [% IF field.mandatory %]
725 <select name="bib_field_value" required="required">
727 <select name="bib_field_value">
729 <option value=""></option>
730 [% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %]
732 [% CASE 'itemtypes' %]
733 [% IF field.mandatory %]
734 <select name="bib_field_value" required="required">
736 <select name="bib_field_value">
738 <option value=""></option>
739 [% PROCESS options_for_item_types itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %]
741 [% CASE 'cn_source' %]
743 [% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %]
746 [% IF field.mandatory %]
747 <input type="text" name="bib_field_value" value="[% field.value | html %]" required="required" size="50" />
749 <input type="text" name="bib_field_value" value="[% field.value | html %]" size="50" />
753 <input type="hidden" name="bib_kohafield" value="[% field.kohafield | html %]" />
754 <input type="hidden" name="bib_tag" value="[% field.tag | html %]" />
755 <input type="hidden" name="bib_subfield" value="[% field.subfield | html %]" />
756 [% IF field.mandatory %] <span class="required">Required</span>[% END %]