5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › [% IF op == 'view' %]Lists › Contents of [% shelf.shelfname | html %][% ELSE %]Lists[% END %][% IF op == 'add_form' %] › Create new list[% END %][% IF op == 'edit_form' %] › Edit list [% shelf.shelfname | html %][% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
9 [% INCLUDE 'datatables.inc' %]
10 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
13 <script type="text/javascript">
14 $( document ).ready(function() {
16 setTimeout('window.close()', 1);
22 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
25 <script type="text/javascript">
28 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
29 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
30 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?");
33 $(document).ready(function(){
34 [% IF category == PUBLIC %]
35 var type = [% PUBLIC %];
37 var type = [% PRIVATE %];
39 var dtListResults = $("#listresultst").dataTable($.extend(true, {}, dataTablesDefaults, {
41 "aaSorting": [[ 5, "asc" ]],
43 'sAjaxSource': "/cgi-bin/koha/svc/virtualshelves/search",
44 'fnServerData': function(sSource, aoData, fnCallback) {
50 'value': $("#searchshelfname_filter").val(),
53 'value': $("#searchowner_filter").val(),
56 'value': $("#searchsortby_filter").val(),
58 'name': 'template_path',
59 'value': 'virtualshelves/tables/shelves_results.tt',
66 'success': function(json){
72 { 'mDataProp': 'dt_type' },
73 { 'mDataProp': 'dt_shelfname' },
74 { 'mDataProp': 'dt_count' },
75 { 'mDataProp': 'dt_owner' },
76 { 'mDataProp': 'dt_sortby' },
77 { 'mDataProp': 'dt_created_on' },
78 { 'mDataProp': 'dt_modification_time' },
79 { 'mDataProp': 'dt_action', 'bSortable': false, 'sClass': 'actions' }
82 { "bVisible": false, "aTargets": [ 'NoVisible' ] }
85 'sPaginationType': 'full_numbers',
91 dtListResults.fnAddFilters("filter", 750);
93 var tabs = $("#tabs").tabs({
94 [% IF category == PUBLIC %]
99 activate: function(e, ui) {
100 var active = tabs.tabs("option", "active" );
102 type = [% PRIVATE %];
103 dtListResults.fnDraw();
104 } else if ( active == 1 ) {
106 dtListResults.fnDraw();
113 [% IF op == 'view' %]
114 $(document).ready(function(){
115 [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %]
116 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Clear all")+"<\/a>");
117 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Select all")+"<\/a>");
118 $("#CheckAll").click(function(){
119 $(".checkboxed").checkCheckboxes();
122 $("#CheckNone").click(function(){
123 $(".checkboxed").unCheckCheckboxes();
126 $(".placehold").on("click",function(e){
130 $(".addtocart").show();
131 var param1 = "| <label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
132 [% IF ( intranetbookbag ) %]
133 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
135 [% IF Koha.Preference('virtualshelves') %]
136 [% IF add_to_some_private_shelves.count %]
137 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
138 [% SET number_of_private_shelves = 0 %]
139 [% FOREACH s IN add_to_some_private_shelves %]
140 [% IF shelfnumber != s.shelfnumber %]
141 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
142 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
143 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
146 param1 += "<\/optgroup>";
148 [% IF add_to_some_public_shelves.count %]
149 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
150 [% SET number_of_public_shelves = 0 %]
151 [% FOREACH s IN add_to_some_public_shelves %]
152 [% IF shelfnumber != s.shelfnumber %]
153 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
154 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
155 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
158 param1 += "<\/optgroup>";
160 [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
161 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
163 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
165 param1 += "<\/select> <button id=\"cartsubmit\" type=\"submit\" class=\"btn btn-mini\">"+_("Save")+"</button>";
166 $("span.addto").html(param1);
167 $("#cartsubmit").on("click",function(e){
171 $("#addto").change(function(){
174 $(".addto").find("input:submit").click(function(e){
178 $("#selection_ops").show();
179 $(".merge-items").on("click",function(e){
183 $("#listform").on("submit",function(e){
186 $(".list-remove").on("click",function(e){
187 if($(".selection").filter(":checked").length > 0){
188 return confirm(MSG_REMOVE_FROM_LIST);
190 alert(MSG_NO_ITEM_SELECTED);
198 * This function checks if the adequate number of records are checked for merging
200 function MergeItems() {
201 var checkboxes = $("input:checkbox:checked");
202 if (checkboxes.length < 2) {
203 alert(_("At least two records must be selected for merging."));
206 $(checkboxes).each(function() {
207 params.push('biblionumber=' + $(this).val());
209 var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&');
216 * This function checks all checkboxes if all are empty,
217 * or unchecks all if any already checked.
220 var checkboxes = document.getElementsByTagName('input');
221 var nbCheckbox = checkboxes.length;
222 var check = areAllChecked();
223 for(var i=0;i<nbCheckbox;i++){
224 if(checkboxes[i].getAttribute('type') == "checkbox" ){
225 checkboxes[i].checked = (check) ? 0 : 1;
230 * This function returns true if ALL checkboxes are checked
232 function areAllChecked(){
233 var checkboxes = document.getElementsByTagName('input');
234 var nbCheckbox = checkboxes.length;
235 for(var i=0;i<nbCheckbox;i++){
236 if(checkboxes[i].getAttribute('type') == "checkbox" ){
237 if(checkboxes[i].checked == 0){
245 function placeHold () {
246 var checkedItems = $(".selection:checked");
247 if ($(checkedItems).size() == 0) {
248 alert(MSG_NO_ITEM_SELECTED);
252 $(checkedItems).each(function() {
253 bibs += $(this).val() + "/";
255 $("#hold_form_biblios").val(bibs);
256 $("#hold_form").submit();
261 var checkboxes = $("#searchresults").find(":checkbox");
262 var vshelf = vShelfAdd(checkboxes);
263 if($("#addto").find("option:selected").attr("value") == "addtolist"){
264 var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
266 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500);
269 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
271 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500);
274 } else if($("#addto").find("option:selected").attr("value") == "morelists"){
276 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500);
280 if($("#addto").find("option:selected").attr("value") == "addtocart"){
281 addMultiple(checkboxes);
288 <body id="lists_shelves" class="lists">
289 [% INCLUDE 'header.inc' %]
290 [% INCLUDE 'cat-search.inc' %]
292 <div id="breadcrumbs">
293 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
294 [% IF op != 'list' %]
295 <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
299 [% IF shelf AND shelf.category == PRIVATE %] ›
300 [% IF op == 'view' OR op == 'edit_form' %]
301 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PRIVATE %]">Your lists</a>
305 [% ELSIF shelf AND shelf.category == PUBLIC %] ›
306 [% IF op == 'view' %]
307 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC %]">Public lists</a>
313 [% IF op == 'view' %]› Contents of <i>[% shelf.shelfname | html %]</i>[% END %][% IF op == 'add_form' %] › Create new list[% END %][% IF op == 'edit_form' %] › Edit list <i>[% shelf.shelfname | html %]</i>[% END %]</div>
315 <div id="doc3" class="yui-t2">
320 <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
323 [% FOR m IN messages %]
324 <div class="dialog [% m.type %]">
326 [% CASE 'error_on_update' %]
327 <span>An error occurred when updating this list.</span>
328 [% CASE 'error_on_insert' %]
329 <span>An error occurred when creating this list./span>
330 [% CASE 'error_on_delete' %]
331 <span>An error occurred when deleting this list.</span>
332 [% CASE 'error_on_add_biblio' %]
333 <span>The item has not been added to the list. Please verify it is not already in the list.</span>
334 [% CASE 'success_on_update' %]
335 <span>List updated.</span>
336 [% CASE 'success_on_insert' %]
337 <span>List created.</span>
338 [% CASE 'success_on_delete' %]
339 <span>List deleted.</span>
340 [% CASE 'success_on_add_biblio' %]
341 <span>The item has been added to the list.</span>
342 [% CASE 'success_on_remove_biblios' %]
343 <span>The item has been removed from the list.</span>
344 [% CASE 'does_not_exist' %]
345 <span>This list does not exist.</span>
346 [% CASE 'item_does_not_exist' %]
347 <span>This item does not exist.</span>
348 [% CASE 'unauthorized_on_view' %]
349 <span>You do not have permission to view this list.</span>
350 [% CASE 'unauthorized_on_update' %]
351 <span>You do not have permission to update this list.</span>
352 [% CASE 'unauthorized_on_delete' %]
353 <span>You do not have permission to delete this list.</span>
354 [% CASE 'unauthorized_on_add_biblio' %]
355 <span>You do not have permission to add a record to this list.</span>
356 [% CASE 'no_biblio_removed' %]
357 <span>No record was removed.</span>
358 [% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %]
359 <span>An error occurred when creating this list. The name [% shelfname %] already exists.</span>
360 [% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %]
361 <span>List could not be created. (Do not use the database administrator account.)</span>
362 [% CASE 'DBIx::Class::Exception' %]
370 [% IF op == 'view' %]
374 <h3>Contents of <i>[% shelf.shelfname | html %]</i></h3>
375 <div class="pages">[% pagination_bar %]</div>
376 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed">
377 <input type="hidden" name="op" value="remove_biblios" />
378 <input type="hidden" name="referer" value="view" />
379 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
381 [% IF direction == 'asc' %]
382 [% SET new_direction = 'desc' %]
384 [% SET direction = 'desc' %]
385 [% SET new_direction = 'asc' %]
388 <div id="searchheader" class="noprint">
390 <div id="selection_ops"><span class="checkall"></span> |
391 <span class="clearall"></span>
393 <span class="addto">| </span>
395 [% IF CAN_user_reserveforothers && Koha.Preference('DisplayMultiPlaceHold') %]
396 <div class="btn-group"><button class="btn btn-mini placehold"><i class="fa fa-sticky-note-o"></i> Place hold</button></div>
398 [% IF can_remove_biblios %]
399 <div class="btn-group"><button type="submit" class="btn btn-mini list-remove"><i class="fa fa-times-circle"></i> Remove selected</button></div>
401 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-mini merge-items"><i class="fa fa-compress"></i> Merge selected</button></div>[% END %]
406 <table id="searchresults">
408 [% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %]
410 [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
412 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a>
413 [% IF sortfield == 'title' %]
414 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
416 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
420 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a>
421 [% IF sortfield == 'author' %]
422 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
424 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
429 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a>
430 [% IF sortfield == 'itemcallnumber' %]
431 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
433 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
437 [% FOREACH itemsloo IN itemsloop %]
441 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="biblionumber" />
444 [% UNLESS ( item_level_itypes ) %]<td>
445 [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
448 [% IF ( itemsloo.XSLTBloc ) %]
449 [% itemsloo.XSLTBloc %]
451 [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
452 [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %]</a>
455 [% IF ( itemsloo.notforloan ) %]
456 <span class="noholdstext">No holds allowed</span>
458 [% IF ( itemsloo.ITEM_RESULTS.size ) %]
459 <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a>
460 [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
462 <span class="noholdstext">No holds allowed</span>
465 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
466 | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">Edit record</a>
468 [% IF ( CAN_user_editcatalogue_edit_items ) %]
469 | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">Edit items</a>
473 <td>[% itemsloo.author %]</td>
474 <td>[% itemsloo.dateadded | $KohaDates%]</td>
477 [% FOREACH result IN itemsloo.ITEM_RESULTS %]
478 <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %]
479 [% IF ( result.itemcallnumber ) %]
480 [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% result.itemcallnumber |uri %]%22">[% result.itemcallnumber %]</a>]
487 [% END %]<!-- /itemsloop -->
489 <div class="pages">[% pagination_bar %]</div>
496 [% IF can_add_biblios %]
498 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
499 <fieldset class="brief noprint">
500 <legend>Add an item to <i>[% shelf.shelfname | html %]</i></legend>
503 <label for="barcode">Barcode:</label>
504 <input name="barcode" type="text" id="barcode" size="14" />
505 <input type="hidden" name="op" value="add_biblio" />
506 <input type="hidden" name="referer" value="view" />
507 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
508 <input type="submit" value="Add" />
516 [% IF op == 'add_form' OR op == 'edit_form' %]
518 <div class="yui-u first">
519 <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl" class="validated">
520 <fieldset class="rows">
522 [% IF op == 'add_form' %]
523 <legend>Create a new list</legend>
524 <input type="hidden" name="op" value="add" />
526 <legend>Edit list <i>[% shelf.shelfname | html %]</i></legend>
527 <input type="hidden" name="op" value="edit" />
529 <input type="hidden" name="referer" value="[% referer %]" />
530 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
533 <label for="shelfname" class="required">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelf.shelfname |html %]" required="required" class="required" />
534 <span class="required">Required</span>
537 <span class="label">Owner: </span>
538 [% IF op == 'add_form' %]
539 <input type="hidden" name="owner" id="owner" value="[% loggedinusernumber %]" />[% loggedinusername %]</li>
542 <input type="hidden" id="owner" name="owner" value="[% owner.borrowernumber %]" />[% owner.firstname _ ' ' _ owner.surname %]
544 <input type="hidden" id="owner" name="owner" value="[% loggedinusernumber %]" />[% loggedinusername %]
548 <li><label for="sortfield" >Sort this list by: </label>
549 <select name="sortfield">
550 [% IF shelf.sortfield == "title" %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
551 [% IF shelf.sortfield == "author" %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
552 [% IF shelf.sortfield == "copyrightdate" %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
553 [% IF shelf.sortfield == "itemcallnumber" %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
555 <li><label for="category">Category: </label>
556 <select id="category" name="category">
557 [% IF shelf.category == PRIVATE %]
558 <option value="1" selected="selected">Private</option>
560 <option value="1">Private</option>
562 [% IF shelf.category == PUBLIC %]
563 <option value="2" selected="selected">Public</option>
565 <option value="2">Public</option>
570 <label for="allow_add">Permissions: </label>
571 <select name="allow_add" id="allow_add">
572 [% IF shelf.allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
573 [% IF shelf.allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
575 <span>anyone else to add entries.</span>
578 <label> </label>
579 <select name="allow_delete_own" id="allow_delete_own">
580 [% IF shelf and not shelf.allow_delete_own %]<option value="0" selected="selected">Do not allow</option>[% ELSE %]<option value="0">Do not allow</option>[% END %]
581 [% IF not shelf or shelf.allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
583 <span>anyone to remove their own contributed entries.</span>
586 <label> </label>
587 <select name="allow_delete_other" id="allow_delete_other">
588 [% IF shelf.allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
589 [% IF shelf.allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
591 <span>anyone to remove other contributed entries.</span>
596 <fieldset class="action">
597 <input type="submit" value="Save" class="submit" />
598 [% IF referer == 'view' %]
599 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]" class="cancel">Cancel</a>
601 [% IF category == PUBLIC %]
602 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC %]" class="cancel">Cancel</a>
604 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PRIVATE %]" class="cancel">Cancel</a>
611 <div class="help"><ul>
612 <li><b>Private list:</b> Is managed by you and can be seen only by you.</li>
613 <li><b>Public list:</b> Can be seen by everybody, but managed only by you.</li>
620 [% IF op == 'list' %]
622 <div id="tabs" class="toptabs">
624 <li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li>
625 <li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li>
628 <div id="tab_content">
629 <table id="listresultst">
632 <th class="NoVisible">Type</th>
637 <th>Creation date</th>
638 <th>Modification date</th>
641 <tr class="filters_row">
643 <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th>
645 <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th>
647 <select class="filter text_filter" id="searchsortby_filter">
648 <option value=""></option>
649 <option value="title">Title</option>
650 <option value="author">Author</option>
651 <option value="copyrightdate">Copyrightdate</option>
652 <option value="itemcallnumber">Call number</option>
666 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
667 <!-- Value will be set here by placeHold() -->
668 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
669 <input type="hidden" name="multi_hold" value="1"/>
675 [% IF ( allowaddingitem ) %]
677 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
678 <fieldset class="brief">
679 <legend>Add an item</legend>
682 <label for="addbarcode">Barcode:</label>
683 <input name="addbarcode" type="text" id="addbarcode" class="focus" />
684 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
685 <input type="hidden" name="modifyshelfcontents" value="1" />
688 <fieldset class="action">
689 <input type="submit" value="Add" />
694 [% END %]<!-- /allowaddingitem -->
697 [% INCLUDE 'intranet-bottom.inc' %]