1 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( viewshelf ) %]Contents of [% shelfname |html %][% ELSE %]Your lists[% END %][% INCLUDE 'doc-head-close.inc' %]
2 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
3 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
4 <script type="text/javascript">
6 var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
7 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
8 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
9 var MSG_NO_RECORD_SELECTED = _("Please select one or more items");
11 [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]
12 function holdSelections() {
13 var checkedBoxes = $("input:checkbox:checked");
14 if ($(checkedBoxes).size() == 0) {
15 alert(MSG_NO_RECORD_SELECTED);
18 $(checkedBoxes).each(function(){
19 var name = $(this).attr("name");
23 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
27 [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]function tagSelected() {
28 var checkedBoxes = $("input:checkbox:checked");
29 if ($(checkedBoxes).size()) {
30 $("#tagsel_tag").hide();
31 $(".tag_hides").hide();
32 $("#tagsel_form").show();
34 alert(MSG_NO_RECORD_SELECTED);
38 function tagCanceled() {
39 $("#tagsel_form").hide();
40 $("#tagsel_tag").show();
41 $(".tag_hides").show();
45 var checkedBoxes = $("input:checkbox:checked");
46 if (!$(checkedBoxes).size()) {
47 alert(MSG_NO_RECORD_SELECTED);
51 var tag = $("#tagsel_new").val();
52 if (!tag || (tag == "")) {
53 alert(MSG_NO_TAG_SPECIFIED);
58 for (var i = 0; i < $(checkedBoxes).size(); i++) {
59 var box = $(checkedBoxes).get(i);
60 bibs[i] = $(box).val();
63 KOHA.Tags.add_multitags_button(bibs, tag);
65 }[% END %][% END %][% END %]
67 function enableCheckboxActions(){
68 // Enable/disable controls if checkboxes are checked
69 var checkedBoxes = $(".checkboxed input:checkbox:checked");
70 if ($(checkedBoxes).size()) {
71 $("#selections").html(_("With selected titles: "));
72 $("#selections-toolbar .links a").removeClass("disabled");
74 $("#selections").html(_("Select titles to: "));
75 $("#selections-toolbar .links a").addClass("disabled");
80 [% IF ( opacbookbag ) %]$(".addtocart").show();[% END %]
81 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_('Clear all')+"<\/a>");
82 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_('Select all')+"<\/a>");
85 [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]$("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_('Place hold')+"<\/a>");
86 $("#selections-toolbar a.hold").click(function(){
91 $("#CheckAll").click(function(){
92 $(".checkboxed").checkCheckboxes();
93 enableCheckboxActions();
96 $("#CheckNone").click(function(){
97 $(".checkboxed").unCheckCheckboxes();
98 enableCheckboxActions();
102 $(".cb").click(function(){
103 enableCheckboxActions();
106 [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
107 $("#addtags").click(function(){
111 $("#addtags").html("<a id=\"tagsel_tag\" href=\"#\" class=\"disabled\">"+_("Tag")+"<\/a> ");
113 $(".tagbutton").click(KOHA.Tags.add_tag_button);
114 [% IF ( loggedinusername ) %]
115 $("#tagsel_tag").click(function(){
119 $("#tagsel_cancel").click(function(){
123 $("#tagsel_button").click(function(){
128 $("#tagsel_tag").click(function(){
129 window.location = "/cgi-bin/koha/opac-user.pl";
133 [% END %][% END %][% END %]
134 [% IF ( loggedinusername && allowremovingitems ) %]
135 $("#myform").submit(function(){
136 var checkedBoxes = $(".checkboxed input:checkbox:checked");
137 if ($(checkedBoxes).size()) {
138 return confirmDelete(MSG_REMOVE_FROM_LIST);
140 alert(MSG_NO_RECORD_SELECTED);
144 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
146 $("#myform").submit();
150 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
156 if(f.addshelf.value.length ==0){
157 _alertString += _("- You must enter a list name") + "\n";
160 if (_alertString.length==0) {
163 alertString2 = _("Form not submitted because of the following problem(s)");
164 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
165 alertString2 += _alertString;
172 [% IF ( loggedinusername ) %]<body id="opac-userlists">[% ELSE %]<body id="opac-lists">[% END %]
173 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSIF ( loggedinusername ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
175 [% INCLUDE 'masthead.inc' %]
178 <div id="usershelves" class="container">
180 [% IF ( paramsloop ) %]
181 [% FOREACH paramsloo IN paramsloop %]
183 <div class="yui-u first">
184 [% IF ( paramsloo.already ) %]<div class="dialog alert">A list named <b>[% paramsloo.already %]</b> already exists!</div>[% END %]
185 [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
186 [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %]
187 [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No shelfnumber given.</div>[% END %]
188 [% IF ( paramsloo.need_confirm ) %]
189 <div class="dialog alert">
190 The list <i>[% paramsloo.need_confirm %]</i> is not empty.
191 <br />It has <b>[% paramsloo.count %]</b> [% IF ( paramsloo.single ) %]entry[% ELSE %]entries[% END %].
192 <br />Use the "Confirm" button below to confirm deletion.
195 [% IF ( paramsloo.nopermission ) %]
196 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission %].</div>
198 [% IF ( paramsloo.failgetitem ) %]
199 <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
201 [% IF ( paramsloo.duplicatebiblio ) %]
202 <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
204 [% IF ( paramsloo.delete_ok ) %]
205 <div class="dialog message">List [% paramsloo.delete_ok %] Deleted.</div>
207 [% IF ( paramsloo.delete_fail ) %]
208 <div class="dialog message">ERROR: Database error. Delete (list number [% paramsloo.delete_fail %]) failed.</div>
210 [% IF ( paramsloo.unrecognized ) %]
211 <div class="dialog message">ERROR: List number [% paramsloo.unrecognized %] unrecognized.</div>
213 [% IF ( paramsloo.modifyfailure) %]
214 <div class="dialog message">ERROR: Shelf could not be renamed to [% paramsloo.modifyfailure %]. This name may not be unique for this type of list. Please check.</div>
216 [% IF ( paramsloo.nothingdeleted) %]
217 <div class="dialog message">Warning: You could not delete any selected items from this shelf.</div>
219 [% IF ( paramsloo.somedeleted) %]
220 <div class="dialog message">Warning: You could not delete all selected items from this shelf.</div>
224 [% END %]<!-- /paramsloop -->
225 [% END %] <!-- /paramsloop -->
229 [% IF ( viewshelf ) %]<!-- Viewing a particular shelf -->
230 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="[% themelang %]/../images/caret.gif" width="16" height="16" alt=">" border="0" /> <em>[% shelfname |html %]</em></h3>
231 [% IF ( itemsloop ) %]
232 <div id="toolbar" class="list-actions">
234 <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]" class="download" onclick="open(CGIBIN+'opac-downloadshelf.pl?shelfid=[% shelfnumber %]','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false;">Download list</a>
236 [% IF ( opacuserlogin ) %]<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber %]" class="send" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=[% shelfnumber %]','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send list</a></span>[% END %]
238 <a class="print" href="opac-shelves.pl" onclick="print(); return false;">Print list</a>
240 [% IF ( manageshelf ) %] <span class="sep">|</span> <form method="get" action="opac-shelves.pl"><input type="hidden" name="op" value="modif" />
241 <input type="hidden" name="display" value="viewshelf" />
242 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> <input type="submit" class="editshelf" value="Edit list" /></form>
244 <form method="post" action="opac-shelves.pl">
245 <input type="hidden" value="1" name="shelves"/>
246 <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
247 [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves"/>[% END %]<input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
252 <div id="selections-toolbar" class="list-actions">
253 <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span>
254 <span class="links"><span id="selections">Select titles to: </span>
255 [% IF ( RequestOnOpac ) %]
256 <span id="placehold"></span>
258 [% IF ( loggedinusername ) %]
259 [% IF ( TagsEnabled ) %]
260 <span id="addtags"></span>
261 <span id="tagsel_form" style="display:none">
262 <label for="tagsel_new" style="display:inline">New tag:</label>
263 <input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
264 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button" type="submit" value="Add" style="display:inline" />
265 <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
269 [% IF ( loggedinusername && allowremovingitems ) %]<span id="removeitems"></span>[% END %]</span>
271 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed">
272 [% IF ( manageshelf ) %]
273 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
274 <input type="hidden" name="modifyshelfcontents" value="1" />
276 <div class="searchresults">
277 <table id="listcontents">
279 [% FOREACH itemsloo IN itemsloop %]
280 [% UNLESS ( loop.odd ) %]
281 <tr class="highlight">
285 <td><input type="checkbox" class="cb" name="REM-[% itemsloo.biblionumber %]"
286 value="[% itemsloo.biblionumber %]" /></td>
287 [% UNLESS ( item_level_itypes ) %]
289 [% UNLESS ( noItemTypeImages ) %]
290 <img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />
292 [% itemsloo.description %]
296 [% IF ( itemsloo.XSLTBloc ) %]
297 [% itemsloo.XSLTBloc %]
300 [% IF ( itemsloo.BiblioDefaultViewmarc ) %]<a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
302 [% IF ( itemsloo.BiblioDefaultViewisbd ) %]<a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
303 [% ELSE %]<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
306 [% IF ( itemsloo.title ) %][% itemsloo.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN itemsloo.subtitle %][% subtitl.subfield|html %][% END %]</a>
307 [% IF ( itemsloo.author ) %]by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% itemsloo.author |url %]" title="Search for works by this author" class="author">[% itemsloo.author %]</a>
311 <span class="results_summary"><span class="label">Publication:</span>
312 [% IF ( itemsloo.place ) %][% itemsloo.place %] [% END %][% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode|html %][% END %][% IF ( itemsloo.publicationyear ) %] [% itemsloo.publicationyear %]
313 [% ELSE %][% IF ( itemsloo.copyrightdate ) %] [% itemsloo.copyrightdate %][% END %][% END %]
314 [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %]
315 [% IF ( itemsloo.notes ) %], [% itemsloo.notes|html %][% END %]
316 [% IF ( itemsloo.size ) %] [% itemsloo.size %][% END %]
318 <span class="results_summary"><span class="label">Holdings:</span>[% IF ( itemsloo.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %]
319 [% ITEM_RESULT.homebranch %][% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
320 [% IF ( ITEM_RESULT.itemcallnumber ) %]
321 ([% ITEM_RESULT.itemcallnumber %])[% IF ( loop.last ) %].[% ELSE %],[% END %]
323 [% END %][% ELSE %]This record has no items.[% END %]</span>
325 [% IF ( TagsEnabled ) %]
326 [% IF ( TagsShowOnList ) %]
327 [% IF ( itemsloo.TagLoop.size ) %]
328 <div class="results_summary">
329 <span class="label">Tags:</span>
330 <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN itemsloo.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
336 [% IF ( TagsInputOnList ) %]
337 [% IF ( loggedinusername ) %]
338 <label for="newtag[% itemsloo.biblionumber %]">New tag:</label>
339 <input name="newtag[% itemsloo.biblionumber %]" id="newtag[% itemsloo.biblionumber %]" maxlength="100" />
340 <input name="tagbutton" class="tagbutton" title="[% itemsloo.biblionumber %]" type="submit" value="Add" />
341 <span id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">
344 [% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span>
347 [% IF ( loggedinusername ) %]
348 <span id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus results_summary" style="display:none;">Tag status here.</span>
353 <span class="results_summary actions"><span class="label">Actions:</span>
354 [% IF ( RequestOnOpac ) %]
355 [% UNLESS ( itemsloo.norequests ) %]
356 [% IF ( opacuserlogin ) %]
357 [% IF ( AllowOnShelfHolds ) %]
358 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place hold</a><!-- add back when available 0 holds in queue-->
360 [% IF ( itemsloo.itemsissued ) %]
361 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place hold</a><!-- add back when available 0 holds in queue-->
368 [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtolist" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% itemsloo.biblionumber %]" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=[% itemsloo.biblionumber %]'); return false;">Save to another list</a>
369 [% END %][% END %][% END %]
370 [% IF ( opacbookbag ) %]
371 [% IF ( itemsloo.incart ) %]
372 <a class="addtocart cart[% itemsloo.biblionumber %]" href="#" onclick="addRecord('[% itemsloo.biblionumber %]'); return false;">In your cart</a> <a class="cartRemove cartR[% itemsloo.biblionumber %]" href="#" onclick="delSingleRecord('[% itemsloo.biblionumber %]'); return false;">(remove)</a>
374 <a class="addtocart cart[% itemsloo.biblionumber %]" href="#" onclick="addRecord('[% itemsloo.biblionumber %]'); return false;">Add to cart</a> <a style="display:none;" class="cartRemove cartR[% itemsloo.biblionumber %]" href="#" onclick="delSingleRecord('[% itemsloo.biblionumber %]'); return false;">(remove)</a>
379 <!-- COinS / Openurl --><span class="Z3988" title="[% itemsloo.coins %]"></span>
382 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber %]">
383 [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( itemsloo.normalized_isbn ) %]<img src="http://images.amazon.com/images/P/[% itemsloo.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %][% END %]
385 [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %]
386 <img src="https://secure.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% itemsloo.normalized_upc %]&oclc=[% itemsloo.normalized_oclc %]" alt="" class="thumbnail" />
388 <img src="http://www.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% itemsloo.normalized_upc %]&oclc=[% itemsloo.normalized_oclc %]" alt="" class="thumbnail" />[% END %][% END %][% END %]
390 [% IF ( GoogleJackets ) %][% IF ( itemsloo.normalized_isbn ) %]<div style="block" title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
392 [% IF ( BakerTaylorEnabled ) %][% IF ( itemsloo.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% itemsloo.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% itemsloo.normalized_isbn %]" /></a>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
395 [% END %]<!-- /itemsloop -->
399 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
401 <div class="dialog message">This list is empty. [% IF ( opacuserlogin ) %]You can add to your lists from the results of any <a href="opac-main.pl">search</a>![% END %]</div>
402 [% END %]<!-- /itemsloop -->
403 [% END %]<!-- /viewshelf -->
406 [% IF ( itemsloop && allowremovingitems ) %]
407 <form method="post" action="opac-shelves.pl">
408 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
409 <input type="hidden" name="modifyshelfcontents" value="1" />
410 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove selected items" class="icon delete"/>
412 [% ELSIF ( !itemsloop && manageshelf ) %]
413 <form method="post" action="opac-shelves.pl">
414 <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />
415 <input type="hidden" name="shelves" value="1" />
416 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
417 <input type="submit" class="icon delete" value="Delete this list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
423 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="[% themelang %]/../images/caret.gif" width="16" height="16" alt=">" border="0" /> <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelfnumber %]"><em>[% shelfname |html %]</em></a> <img src="[% themelang %]/../images/caret.gif" width="16" height="16" alt=">" border="0" /> Editing</h3>
424 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
425 <input type="hidden" name="op" value="modifsave" />
426 <input type="hidden" name="display" value="[% display %]" />
427 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
428 <fieldset class="rows">
430 <li><label for="shelfname">List name: </label><input type="text" id="shelfname" name="shelfname" size="60" value="[% shelfname |html %]" /></li>
432 <label for="sortfield" >Sort this list by: </label>
433 <select name="sortfield" id="sortfield">
434 [% IF ( sort_title ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
435 [% IF ( sort_author ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
436 [% IF ( sort_year ) %]<option value="year" selected="selected">Year</option>[% ELSE %]<option value="year">Year</option>[% END %]
440 [% IF (OpacAllowPublicListCreation) %]
441 <label for="category">Category:</label>
442 <select name="category" id="category">
443 [% IF ( category1 ) %]<option value="1" selected="selected">Private</option>[% ELSE %]<option value="1">Private</option>[% END %]
444 [% IF ( category2 ) %]<option value="2" selected="selected">Public</option>[% ELSE %]<option value="2">Public</option>[% END %]
450 <fieldset class="action"><input type="submit" value="Save" class="submit" /> [% IF ( showprivateshelves ) %]<a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]&display=privateshelves">Cancel</a>[% ELSE %]<a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]">Cancel</a>[% END %]</fieldset>
452 [% END %]<!-- /edit -->
455 [% UNLESS ( edit ) %]
456 [% UNLESS ( viewshelf ) %]
457 [% UNLESS ( shelves ) %]
459 <ul class="link-tabs">
460 [% IF ( opacuserlogin ) %]
461 [% IF ( showprivateshelves ) %]
462 <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li>
464 <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li>
467 [% IF ( showpublicshelves ) %]
468 <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
470 <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
474 [% IF ( showprivateshelves ) %]
475 <div id="privateshelves" class="tab-container" style="display:block;">
477 <div id="privateshelves" class="tab-container" style="display:none;">
480 [% IF ( loggedinusername ) %]
481 <div id="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
482 [% IF ( showprivateshelves ) %]
483 [% IF ( shelveslooppriv ) %]
491 [% FOREACH shelveslooppri IN shelveslooppriv %]
492 [% UNLESS ( loop.odd ) %]
493 <tr class="highlight">
497 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
498 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
500 [% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
501 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
504 [% IF ( shelveslooppri.mine ) %]
505 <form action="/cgi-bin/koha/opac-shelves.pl" method="get">
506 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
507 <input type="hidden" name="display" value="privateshelves" />
508 <input type="hidden" name="op" value="modif" />
509 <input type="submit" class="editshelf" value="Edit" />
511 <form action="opac-shelves.pl" method="post">
512 <input type="hidden" name="shelves" value="1" />
513 <input type="hidden" name="display" value="privateshelves" />
514 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
515 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
516 [% IF ( shelveslooppri.confirm ) %]
517 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
518 <input type="submit" class="confirm" value="Confirm" />
520 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
528 <div class="pages">[% pagination_bar %]</div>
530 <p>No private lists.</p>
531 [% END %]<!-- /shelveslooppriv -->
532 [% END %]<!-- /showprivateshelves -->
533 [% ELSE %]<!-- /loggedinusername -->
534 [% IF ( opacuserlogin ) %]<div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>[% END %]
535 [% END %]<!-- /loggedinusername -->
538 </div><!-- /privateshelves -->
540 [% IF ( showpublicshelves ) %]
541 <div id="publicshelves" class="tab-container" style="display:block;">
543 <div id="publicshelves" class="tab-container" style="display:none;">
545 [% IF ( loggedinusername ) %]
546 <div id="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
548 [% IF ( opacuserlogin ) %]<div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>[% END %]
550 [% IF ( shelvesloop ) %]
555 <th>Type</th><th> </th>
557 [% FOREACH shelvesloo IN shelvesloop %]
558 [% UNLESS ( loop.odd ) %]
559 <tr class="highlight">
563 <td><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
564 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
566 [% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
567 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
570 [% IF ( shelvesloo.mine ) %]
571 <form action="/cgi-bin/koha/opac-shelves.pl" method="get">
572 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
573 <input type="hidden" name="op" value="modif" />
574 <input type="hidden" name="display" value="publicshelves" />
575 <input type="submit" class="editshelf" value="Edit" />
577 <form action="opac-shelves.pl" method="post">
578 <input type="hidden" name="shelves" value="1" />
579 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
580 [% IF ( shelvesloo.confirm ) %]
581 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
582 <input type="submit" class="confirm" value="Confirm" />
584 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
590 [% END %]<!-- /shelvesloop -->
592 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
593 [% ELSE %]<!-- /shelvesloop -->
594 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
595 [% END %]<!-- /shelvesloop -->
597 </div><!-- /publicshelves -->
599 [% END %]<!-- /shelves -->
600 [% END %]<!-- /viewshelf -->
601 [% END %]<!-- /edit -->
605 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
606 <fieldset class="rows">
607 <legend>Create a new list</legend>
608 <input type="hidden" name="shelves" value="1" />
611 <label class="required" for="addshelf">List name:</label>
613 <input id="addshelf" type="text" name="addshelf" value="[% already %]" size="60" />
615 <input id="addshelf" type="text" name="addshelf" size="60" />
617 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
620 <label for="sortfield" >Sort this list by: </label>
621 <select name="sortfield" id="sortfield">
622 [% IF ( sort_title ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
623 [% IF ( sort_author ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
624 [% IF ( sort_year ) %]<option value="year" selected="selected">Year</option>[% ELSE %]<option value="year">Year</option>[% END %]
628 <label for="category">Category:</label>
629 <select name="category" id="category">
630 <option value="1">Private</option>
631 [% IF (OpacAllowPublicListCreation) %]
632 <option value="2">Public</option>
638 <fieldset class="action">
639 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" />
640 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
644 [% END %]<!-- /shelves -->
651 [% IF ( OpacNav||loggedinusername ) %]
653 <div id="leftmenus" class="container">
654 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
662 <div id="debug"></div>
664 [% INCLUDE 'opac-bottom.inc' %]