2 [% SET TagsShowEnabled = ( TagsEnabled && TagsShowOnList ) %]
3 [% SET TagsInputEnabled = ( opacuserlogin && TagsEnabled && TagsInputOnList ) %]
4 [% 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' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
7 <script type="text/javascript">
9 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
10 var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
11 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
13 [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]
14 function holdSelections() {
15 var checkedBoxes = $("input:checkbox:checked");
16 if ($(checkedBoxes).size() == 0) {
17 alert(MSG_NO_RECORD_SELECTED);
20 $(checkedBoxes).each(function(){
21 var name = $(this).attr("name");
25 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
29 [% IF ( TagsInputEnabled && loggedinusername ) %]
30 function tagSelected() {
31 var checkedBoxes = $("input:checkbox:checked");
32 if ($(checkedBoxes).size()) {
33 $("#tagsel_tag").hide();
34 $(".tag_hides").hide();
35 $("#tagsel_form").show();
37 alert(MSG_NO_RECORD_SELECTED);
41 function tagCanceled() {
42 $("#tagsel_form").hide();
43 $("#tagsel_tag").show();
44 $(".tag_hides").show();
45 $("#tagsel_new").val("");
46 $(".tagstatus").empty().hide();
50 var checkedBoxes = $("input:checkbox:checked");
51 if (!$(checkedBoxes).size()) {
52 alert(MSG_NO_RECORD_SELECTED);
56 var tag = $("#tagsel_new").val();
57 if (!tag || (tag == "")) {
58 alert(MSG_NO_TAG_SPECIFIED);
63 for (var i = 0; i < $(checkedBoxes).size(); i++) {
64 var box = $(checkedBoxes).get(i);
65 bibs[i] = $(box).val();
68 KOHA.Tags.add_multitags_button(bibs, tag);
72 function enableCheckboxActions(){
73 // Enable/disable controls if checkboxes are checked
74 var checkedBoxes = $(".checkboxed input:checkbox:checked");
75 if ($(checkedBoxes).size()) {
76 $("#selections").html(_("With selected titles: "));
77 $("#selections-toolbar .links a").removeClass("disabled");
79 $("#selections").html(_("Select titles to: "));
80 $("#selections-toolbar .links a").addClass("disabled");
85 [% IF ( opacbookbag ) %]$(".addtocart").show();[% END %]
86 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
87 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
90 [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]$("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
91 $("#selections-toolbar a.hold").click(function(){
96 $("#CheckAll").click(function(){
97 $(".checkboxed").checkCheckboxes();
98 enableCheckboxActions();
101 $("#CheckNone").click(function(){
102 $(".checkboxed").unCheckCheckboxes();
103 enableCheckboxActions();
107 $(".cb").click(function(){
108 enableCheckboxActions();
110 enableCheckboxActions();
112 [% IF ( TagsInputEnabled && loggedinusername ) %]
113 $("#tagsel_tag").click(function(){
117 $("#tagsel_cancel").click(function(){
121 $("#tagsel_button").click(function(){
126 $(".tag_add").click(function(){
127 var thisid = $(this).attr("id");
128 thisid = thisid.replace("tag_add","");
130 $("#tagform"+thisid).show();
131 $("#newtag"+thisid).focus();
132 $("#newtag"+thisid+"_status").empty().hide();
135 $(".cancel_tag_add").click(function(){
136 var thisid = $(this).attr("id");
137 thisid = thisid.replace("cancel","");
138 $("#tagform"+thisid).hide();
139 $("#tag_add"+thisid).show();
140 $("#newtag"+thisid).val("");
141 $("#newtag"+thisid+"_status").empty().hide();
144 $(".tagbutton").click(function(){
145 var thisid = $(this).attr("title");
146 var tag = $("#newtag"+thisid).val();
147 if (!tag || (tag == "")) {
148 alert(MSG_NO_TAG_SPECIFIED);
151 KOHA.Tags.add_tag_button(thisid, tag);
155 [% IF ( loggedinusername && allowremovingitems ) %]
156 var removeFromListLinks = $(".removefromlist");
157 removeFromListLinks.show();
158 // "remove from list" appearing on each line of the list output
159 removeFromListLinks.on("click",function(){
160 $(".checkboxed").unCheckCheckboxes();
161 var listitem = $("input[name="+this.id+"]");
162 listitem.prop("checked",true);
163 $("#myform").submit();
165 $("#myform").submit(function(){
166 var checkedBoxes = $(".checkboxed input:checkbox:checked");
167 var numchecked = $(checkedBoxes).size();
169 if( numchecked > 1 ){
170 return confirmDelete(MSG_REMOVE_FROM_LIST);
172 return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
175 alert(MSG_NO_RECORD_SELECTED);
179 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
181 $("#myform").submit();
185 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
186 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
187 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
193 if(f.addshelf.value.length ==0){
194 _alertString += _("- You must enter a list name") + "\n";
197 if (_alertString.length==0) {
200 alertString2 = _("Form not submitted because of the following problem(s)");
201 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
202 alertString2 += _alertString;
207 $(document).ready(function() {
208 $('#sort-submit').hide();
214 [% IF ( loggedinusername ) %]<body id="opac-userlists">[% ELSE %]<body id="opac-lists">[% END %]
216 [% BLOCK list_permissions %]
218 <label for="permissions">Permissions: </label>
219 <select name="allow_add" id="allow_add">
220 [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
221 [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
223 <span>anyone else to add entries. (The owner of a list is always allowed to add entries, but needs permission to remove.)</span>
226 <label> </label>
227 <select name="allow_delete_own" id="allow_delete_own">
228 [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
229 [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
231 <span>anyone to remove his own contributed entries.</span>
234 <label> </label>
235 <select name="allow_delete_other" id="allow_delete_other">
236 [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
237 [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
239 <span>anyone to remove other contributed entries.</span>
243 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSIF ( loggedinusername ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
245 [% INCLUDE 'masthead.inc' %]
248 <div id="usershelves" class="container">
250 [% IF ( paramsloop ) %]
251 [% FOREACH paramsloo IN paramsloop %]
253 <div class="yui-u first">
254 [% IF ( paramsloo.already ) %]<div class="dialog alert">A list named <b>[% paramsloo.already %]</b> already exists!</div>[% END %]
255 [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
256 [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %]
257 [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No shelfnumber given.</div>[% END %]
258 [% IF ( paramsloo.need_confirm ) %]
259 <div class="dialog alert">
260 The list <i>[% paramsloo.need_confirm %]</i> is not empty.
261 <br />It has <b>[% paramsloo.count %]</b> [% IF ( paramsloo.single ) %]entry[% ELSE %]entries[% END %].
262 <br />Use the "Confirm" button below to confirm deletion.
265 [% IF ( paramsloo.nopermission ) %]
266 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission |html%].</div>
268 [% IF ( paramsloo.failgetitem ) %]
269 <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
271 [% IF ( paramsloo.duplicatebiblio ) %]
272 <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
274 [% IF ( paramsloo.delete_ok ) %]
275 <div class="dialog message">List [% paramsloo.delete_ok %] Deleted.</div>
277 [% IF ( paramsloo.delete_fail ) %]
278 <div class="dialog message">ERROR: Database error. Delete (list number [% paramsloo.delete_fail %]) failed.</div>
280 [% IF ( paramsloo.unrecognized ) %]
281 <div class="dialog message">ERROR: List number [% paramsloo.unrecognized %] unrecognized.</div>
283 [% IF ( paramsloo.modifyfailure) %]
284 <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>
286 [% IF ( paramsloo.nothingdeleted) %]
287 <div class="dialog message">Warning: You could not delete any selected items from this shelf.</div>
289 [% IF ( paramsloo.somedeleted) %]
290 <div class="dialog message">Warning: You could not delete all selected items from this shelf.</div>
294 [% END %]<!-- /paramsloop -->
295 [% END %] <!-- /paramsloop -->
299 [% IF ( viewshelf ) %]<!-- Viewing a particular shelf -->
300 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> ⇢ <em>[% shelfname |html %]</em></h3>
301 [% IF ( itemsloop ) %]
302 <div id="toolbar" class="list-actions">
304 <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]" class="download" onclick="open(CGIBIN+'opac-downloadshelf.pl?shelfid=[% shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false;">Download list</a>
306 [% 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','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send list</a></span>[% END %]
308 <a class="print" href="opac-shelves.pl" onclick="print(); return false;">Print list</a>
310 <form action="/cgi-bin/koha/opac-shelves.pl" id="sorting-form">
311 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
313 <label for="sort">Sort by: </label>
314 <select name="sort" onchange="$('#sorting-form').submit()">
315 <option value="">Default sorting</option>
317 [% IF sort == 'author' %]
318 <option value="author" selected="selected">Author</option>
320 <option value="author">Author</option>
323 [% IF sort == 'title' %]
324 <option value="title" selected="selected">Title</option>
326 <option value="title">Title</option>
329 [% IF sort == 'itemcallnumber' %]
330 <option value="itemcallnumber" selected="selected">Call number</option>
332 <option value="itemcallnumber">Call number</option>
335 [% IF sort == 'copyrightdate' %]
336 <option value="copyrightdate" selected="selected">Copyright date</option>
338 <option value="copyrightdate">Copyright date</option>
342 <select name="direction" onchange="$('#sorting-form').submit()">
343 [% IF direction == 'asc' %]
344 <option value="asc" selected="selected">Ascending</option>
346 <option value="asc">Ascending</option>
349 [% IF direction == 'desc' %]
350 <option value="desc" selected="selected">Descending</option>
352 <option value="desc">Descending</option>
356 <input type="submit" id="sort-submit" value="Resort list" />
359 [% IF ( manageshelf ) %] <span class="sep">|</span> <form method="get" action="opac-shelves.pl"><input type="hidden" name="op" value="modif" />
360 <input type="hidden" name="display" value="viewshelf" />
361 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> <input type="submit" class="editshelf" value="Edit list" /></form>
363 <form method="post" action="opac-shelves.pl">
364 <input type="hidden" value="1" name="shelves"/>
365 <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
366 [% 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);"/>
371 <div id="selections-toolbar" class="list-actions">
372 <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span>
373 <span class="links"><span id="selections">Select titles to: </span>
374 [% IF ( RequestOnOpac ) %]
375 <span id="placehold"></span>
377 [% IF ( TagsInputEnabled && loggedinusername ) %]
379 <a id="tagsel_tag" href="#" class="disabled">Tag</a>
381 <span id="tagsel_form" style="display:none">
382 <label for="tagsel_new">New tag:</label>
383 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
384 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button" type="submit" value="Add" />
385 <a href="#" id="tagsel_cancel">Cancel</a>
388 [% IF ( loggedinusername && allowremovingitems ) %]<span id="removeitems"></span>[% END %]</span>
390 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed">
391 [% IF ( manageshelf ) %]
392 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
393 <input type="hidden" name="modifyshelfcontents" value="1" />
395 <div class="searchresults">
396 <table id="listcontents">
398 [% FOREACH itemsloo IN itemsloop %]
399 [% UNLESS ( loop.odd ) %]
400 <tr class="highlight">
404 <td><input type="checkbox" class="cb" name="REM-[% itemsloo.biblionumber %]"
405 value="[% itemsloo.biblionumber %]" /></td>
406 [% UNLESS ( item_level_itypes ) %]
408 [% UNLESS ( noItemTypeImages ) %]
409 <img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />
411 [% itemsloo.description %]
415 [% IF ( itemsloo.XSLTBloc ) %]
416 [% itemsloo.XSLTBloc %]
419 [% IF ( itemsloo.BiblioDefaultViewmarc ) %]<a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
421 [% IF ( itemsloo.BiblioDefaultViewisbd ) %]<a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
422 [% ELSE %]<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
425 [% IF ( itemsloo.title ) %][% itemsloo.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN itemsloo.subtitle %][% subtitl.subfield|html %][% END %]</a>
426 [% 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>
430 <span class="results_summary"><span class="label">Publication:</span>
431 [% IF ( itemsloo.place ) %][% itemsloo.place %] [% END %][% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode|html %][% END %][% IF ( itemsloo.publicationyear ) %] [% itemsloo.publicationyear %]
432 [% ELSE %][% IF ( itemsloo.copyrightdate ) %] [% itemsloo.copyrightdate %][% END %][% END %]
433 [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %]
434 [% IF ( itemsloo.notes ) %], [% itemsloo.notes|html %][% END %]
435 [% IF ( itemsloo.size ) %] [% itemsloo.size %][% END %]
437 <span class="results_summary"><span class="label">Holdings:</span>[% IF ( itemsloo.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %]
438 [% ITEM_RESULT.homebranch %][% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
439 [% IF ( ITEM_RESULT.itemcallnumber ) %]
440 ([% ITEM_RESULT.itemcallnumber %])[% IF ( loop.last ) %].[% ELSE %],[% END %]
442 [% END %][% ELSE %]This record has no items.[% END %]</span>
444 [% IF ( TagsShowEnabled ) %]
445 [% IF ( itemsloo.TagLoop.size ) %]
446 <div class="results_summary">
447 <span class="label">Tags:</span>
448 <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>
455 <span class="results_summary actions">
456 <span class="label">Actions:</span>
458 [% IF ( TagsInputEnabled ) %]
459 [% IF ( loggedinusername ) %]
460 <a class="tag_add" id="tag_add[% itemsloo.biblionumber %]" href="#">Add tag</a>
461 <span id="tagform[% itemsloo.biblionumber %]" class="tag_results_input" style="display:none;">
462 <label for="newtag[% itemsloo.biblionumber %]">New tag(s):</label>
463 <input name="newtag[% itemsloo.biblionumber %]" id="newtag[% itemsloo.biblionumber %]" maxlength="100" />
464 <input name="tagbutton" class="tagbutton" title="[% itemsloo.biblionumber %]" type="submit" value="Add" />
465 <a class="cancel_tag_add" id="cancel[% itemsloo.biblionumber %]" href="#">(done)</a>
467 <span id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">
470 [% ELSIF ( loop.first ) %]
471 <span class="tagstatus" id="login4tags">Log in to add tags.</span>
475 [% IF ( RequestOnOpac ) %]
476 [% UNLESS ( itemsloo.norequests ) %]
477 [% IF ( opacuserlogin ) %]
478 [% IF ( AllowOnShelfHolds ) %]
479 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place hold</a><!-- add back when available 0 holds in queue-->
481 [% IF ( itemsloo.itemsissued ) %]
482 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place hold</a><!-- add back when available 0 holds in queue-->
489 [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( virtualshelves ) %]<a class="addtoshelf" 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>
490 [% END %][% END %][% END %]
492 [% IF ( allowremovingitems ) %]
493 <a class="removefromlist" id="REM-[% itemsloo.biblionumber %]" href="#">Remove from this list</a>
496 [% IF ( opacbookbag ) %]
497 [% IF ( itemsloo.incart ) %]
498 <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>
500 <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>
505 <!-- COinS / Openurl --><span class="Z3988" title="[% itemsloo.coins %]"></span>
508 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber %]">
509 [% IF ( OPACLocalCoverImages ) %]<span title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>[% END %]
510 [% IF ( OPACAmazonCoverImages ) %][% IF ( itemsloo.normalized_isbn ) %]<span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="http://images.amazon.com/images/P/[% itemsloo.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" /></span>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
512 [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %]
513 <span title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><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" /></span>
515 <span title="[% SEARCH_RESULT.biblionumber %]" id="syndetics-thumbnail[% loop.count %]"><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" /></span>[% END %][% END %][% END %]
517 [% 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 %]
518 [% IF OpenLibraryCovers %][% IF itemsloo.normalized_isbn %]<span style="block" title="[% itemsloo.biblionumber %]" class="[% itemsloo.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %]
520 [% 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 %]
523 [% END %]<!-- /itemsloop -->
527 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
529 <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>
530 [% END %]<!-- /itemsloop -->
531 [% END %]<!-- /viewshelf -->
534 [% IF ( itemsloop && allowremovingitems ) %]
535 <form method="post" action="opac-shelves.pl">
536 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
537 <input type="hidden" name="modifyshelfcontents" value="1" />
538 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove selected items" class="icon delete"/>
540 [% ELSIF ( !itemsloop && manageshelf ) %]
541 <form method="post" action="opac-shelves.pl">
542 <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />
543 <input type="hidden" name="shelves" value="1" />
544 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
545 <input type="submit" class="icon delete" value="Delete this list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
551 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> ⇢ <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelfnumber %]"><em>[% shelfname |html %]</em></a> ⇢ Editing</h3>
552 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
553 <input type="hidden" name="op" value="modifsave" />
554 <input type="hidden" name="display" value="[% display %]" />
555 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
556 <fieldset class="rows">
558 <li><label for="shelfname">List name: </label><input type="text" id="shelfname" name="shelfname" size="60" value="[% shelfname |html %]" /></li>
560 <label for="sortfield" >Sort this list by: </label>
561 <select name="sortfield" id="sortfield">
562 [% IF ( sortfield == "title" ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
563 [% IF ( sortfield == "author" ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
564 [% IF ( sortfield == "copyrightdate" ) %]<option value="copyrightdate" selected="selected">Year</option>[% ELSE %]<option value="copyrightdate">Year</option>[% END %]
565 [% IF ( sortfield == "itemcallnumber" ) %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
569 [% IF (OpacAllowPublicListCreation) %]
570 <label for="category">Category:</label>
571 <select name="category" id="category">
572 [% IF ( category1 ) %]<option value="1" selected="selected">Private</option>[% ELSE %]<option value="1">Private</option>[% END %]
573 [% IF ( category2 ) %]<option value="2" selected="selected">Public</option>[% ELSE %]<option value="2">Public</option>[% END %]
577 [% INCLUDE list_permissions %]
580 <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>
582 [% END %]<!-- /edit -->
585 [% UNLESS ( edit ) %]
586 [% UNLESS ( viewshelf ) %]
587 [% UNLESS ( shelves ) %]
589 <ul class="link-tabs">
590 [% IF ( opacuserlogin ) %]
591 [% IF ( showprivateshelves ) %]
592 <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li>
594 <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li>
597 [% IF ( showpublicshelves ) %]
598 <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
600 <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
604 [% IF ( showprivateshelves ) %]
605 <div id="privateshelves" class="tab-container" style="display:block;">
607 <div id="privateshelves" class="tab-container" style="display:none;">
610 [% IF ( loggedinusername ) %]
611 <div id="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
612 [% IF ( showprivateshelves ) %]
613 [% IF ( shelveslooppriv ) %]
621 [% FOREACH shelveslooppri IN shelveslooppriv %]
622 [% UNLESS ( loop.odd ) %]
623 <tr class="highlight">
627 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
628 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
630 [% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
631 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
634 [% IF ( shelveslooppri.mine ) %]
635 <form action="/cgi-bin/koha/opac-shelves.pl" method="get">
636 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
637 <input type="hidden" name="display" value="privateshelves" />
638 <input type="hidden" name="op" value="modif" />
639 <input type="submit" class="editshelf" value="Edit" />
641 <form action="opac-shelves.pl" method="post">
642 <input type="hidden" name="shelves" value="1" />
643 <input type="hidden" name="display" value="privateshelves" />
644 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
645 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
646 [% IF ( shelveslooppri.confirm ) %]
647 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
648 <input type="submit" class="confirm" value="Confirm" />
650 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
658 <div class="pages">[% pagination_bar %]</div>
660 <p>No private lists.</p>
661 [% END %]<!-- /shelveslooppriv -->
662 [% END %]<!-- /showprivateshelves -->
663 [% ELSE %]<!-- /loggedinusername -->
664 [% IF ( opacuserlogin ) %]<div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>[% END %]
665 [% END %]<!-- /loggedinusername -->
668 </div><!-- /privateshelves -->
670 [% IF ( showpublicshelves ) %]
671 <div id="publicshelves" class="tab-container" style="display:block;">
673 <div id="publicshelves" class="tab-container" style="display:none;">
675 [% IF ( loggedinusername ) %]
676 <div id="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
678 [% IF ( opacuserlogin ) %]<div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>[% END %]
680 [% IF ( shelvesloop ) %]
685 <th>Type</th><th> </th>
687 [% FOREACH shelvesloo IN shelvesloop %]
688 [% UNLESS ( loop.odd ) %]
689 <tr class="highlight">
693 <td><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
694 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
696 [% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
697 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
700 [% IF ( shelvesloo.mine ) %]
701 <form action="/cgi-bin/koha/opac-shelves.pl" method="get">
702 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
703 <input type="hidden" name="op" value="modif" />
704 <input type="hidden" name="display" value="publicshelves" />
705 <input type="submit" class="editshelf" value="Edit" />
707 <form action="opac-shelves.pl" method="post">
708 <input type="hidden" name="shelves" value="1" />
709 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
710 [% IF ( shelvesloo.confirm ) %]
711 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
712 <input type="submit" class="confirm" value="Confirm" />
714 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
720 [% END %]<!-- /shelvesloop -->
722 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
723 [% ELSE %]<!-- /shelvesloop -->
724 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
725 [% END %]<!-- /shelvesloop -->
727 </div><!-- /publicshelves -->
729 [% END %]<!-- /shelves -->
730 [% END %]<!-- /viewshelf -->
731 [% END %]<!-- /edit -->
735 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
736 <fieldset class="rows">
737 <legend>Create a new list</legend>
738 <input type="hidden" name="shelves" value="1" />
741 <label class="required" for="addshelf">List name:</label>
743 <input id="addshelf" type="text" name="addshelf" value="[% already %]" size="60" />
745 <input id="addshelf" type="text" name="addshelf" size="60" />
747 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
750 <label for="sortfield" >Sort this list by: </label>
751 <select name="sortfield" id="sortfield">
752 <option value="title">Title</option>
753 <option value="author">Author</option>
754 <option value="copyrightdate">Year</option>
755 <option value="itemcallnumber">Call number</option>
759 <label for="category">Category:</label>
760 <select name="category" id="category">
761 <option value="1">Private</option>
762 [% IF (OpacAllowPublicListCreation) %]
763 <option value="2">Public</option>
767 [% INCLUDE list_permissions %]
770 <fieldset class="action">
771 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" />
772 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
776 [% END %]<!-- /shelves -->
783 [% IF ( OpacNav||loggedinusername ) %]
785 <div id="leftmenus" class="container">
786 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
794 <div id="debug"></div>
796 [% INCLUDE 'opac-bottom.inc' %]