1 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › [% IF ( viewshelf ) %]Contents of [% shelfname |html %][% ELSE %]My 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?");
10 [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]
11 function holdSelections() {
12 var checkedBoxes = $(":checkbox:checked");
13 if ($(checkedBoxes).size() == 0) {
14 alert(MSG_NO_RECORD_SELECTED);
17 $(checkedBoxes).each(function(){
18 var name = $(this).attr("name");
22 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
26 [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]function tagSelected() {
27 var checkedBoxes = $("input:checkbox:checked");
28 if ($(checkedBoxes).size()) {
29 $("#tagsel_tag").hide();
30 $(".tag_hides").hide();
31 $("#tagsel_form").show();
33 alert(MSG_NO_RECORD_SELECTED);
37 function tagCanceled() {
38 $("#tagsel_form").hide();
39 $("#tagsel_tag").show();
40 $(".tag_hides").show();
44 var checkedBoxes = $("input:checkbox:checked");
45 if (!$(checkedBoxes).size()) {
46 alert(MSG_NO_RECORD_SELECTED);
50 var tag = $("#tagsel_new").val();
51 if (!tag || (tag == "")) {
52 alert(MSG_NO_TAG_SPECIFIED);
57 for (var i = 0; i < $(checkedBoxes).size(); i++) {
58 var box = $(checkedBoxes).get(i);
59 bibs[i] = $(box).val();
62 KOHA.Tags.add_multitags_button(bibs, tag);
64 }[% END %][% END %][% END %]
67 [% IF ( opacbookbag ) %]$(".addtocart").show();[% END %]
68 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_('Clear All')+"<\/a>|");
69 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_('Select All')+"<\/a>");
72 [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]$("#placehold").html("<a href=\"#\" class=\"hold tag_hides\">"+_('Place Hold')+"<\/a>");
73 $("#toolbar a.hold").click(function(){
78 $("#CheckAll").click(function(){
79 $(".checkboxed").checkCheckboxes();
82 $("#CheckNone").click(function(){
83 $(".checkboxed").unCheckCheckboxes();
87 [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
88 $("#addtags").click(function(){
92 $("#addtags").html("<a id=\"tagsel_tag\" href=\"#\">"+_("Tag")+"<\/a> |");
94 $(".tagbutton").click(KOHA.Tags.add_tag_button);
95 [% IF ( loggedinusername ) %]
96 $("#tagsel_tag").click(function(){
100 $("#tagsel_cancel").click(function(){
104 $("#tagsel_button").click(function(){
109 $("#tagsel_tag").click(function(){
110 window.location = "/cgi-bin/koha/opac-user.pl";
114 [% END %][% END %][% END %]
115 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
121 if(f.addshelf.value.length ==0){
122 _alertString += _("- You must enter a List Name") + "\n";
125 if (_alertString.length==0) {
128 alertString2 = _("Form not submitted because of the following problem(s)");
129 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
130 alertString2 += _alertString;
137 [% IF ( loggedinusername ) %]<body id="opac-userlists">[% ELSE %]<body id="opac-lists">[% END %]
138 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSIF ( loggedinusername ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
140 [% INCLUDE 'masthead.inc' %]
143 <div id="usershelves" class="container">
145 [% IF ( paramsloop ) %]
146 [% FOREACH paramsloo IN paramsloop %]
148 <div class="yui-u first">
149 [% IF ( paramsloo.already ) %]<div class="dialog alert">A List named <b>[% paramsloo.already %]</b> already exists!</div>[% END %]
150 [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
151 [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %]
152 [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No shelfnumber given.</div>[% END %]
153 [% IF ( paramsloo.need_confirm ) %]
154 <div class="dialog alert">
155 The list <i>[% paramsloo.need_confirm %]</i> is not empty.
156 <br />It has <b>[% paramsloo.count %]</b> [% IF ( paramsloo.single ) %]entry[% ELSE %]entries[% END %].
157 <br />Use the "Confirm" button below to confirm deletion.
160 [% IF ( paramsloo.nopermission ) %]
161 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission %].</div>
163 [% IF ( paramsloo.failgetitem ) %]
164 <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
166 [% IF ( paramsloo.duplicatebiblio ) %]
167 <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
169 [% IF ( paramsloo.delete_ok ) %]
170 <div class="dialog message">List [% paramsloo.delete_ok %] Deleted.</div>
172 [% IF ( paramsloo.delete_fail ) %]
173 <div class="dialog message">ERROR: Database error. Delete (list number [% paramsloo.delete_fail %]) failed.</div>
175 [% IF ( paramsloo.unrecognized ) %]
176 <div class="dialog message">ERROR: List number [% paramsloo.unrecognized %] unrecognized.</div>
180 [% END %]<!-- /paramsloop -->
181 [% END %] <!-- /paramsloop -->
185 [% IF ( viewshelf ) %]<!-- Viewing a particular shelf -->
186 <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>
187 [% IF ( itemsloop ) %]
188 <div id="toolbar" class="list-actions"> <span class="checkall"></span>
189 <span class="clearall"></span>
191 [% IF ( RequestOnOpac ) %]
192 <span id="placehold"></span>[% UNLESS ( TagsEnabled ) %] |[% END %]
194 [% IF ( loggedinusername ) %]
195 [% IF ( TagsEnabled ) %]
196 <span id="addtags"></span>
197 <span id="tagsel_form" style="display:none">
198 <label for="tagsel_new" style="display:inline">New Tag:</label>
199 <input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
200 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button"
201 type="submit" value="Add" style="display:inline" />
202 <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
206 <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]" class="download tag_hides" 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>
208 <span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber %]" class="send tag_hides" 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>
210 <a class="print tag_hides" href="opac-shelves.pl" onclick="print(); return false;">Print List</a>
212 [% IF ( manageshelf ) %] | <form method="get" action="opac-shelves.pl" class="tag_hides"><input type="hidden" name="op" value="modif" />[% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %] <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> <input type="submit" class="editshelf tag_hides" value="Edit List" /></form>
213 <form method="post" action="opac-shelves.pl" class="tag_hides">
214 <input type="hidden" value="1" name="shelves"/>
215 [% IF ( showprivateshelves ) %]
216 <input type="hidden" name="display" value="privateshelves" />
218 <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
219 <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
225 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
226 [% IF ( manageshelf ) %]
227 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
228 <input type="hidden" name="modifyshelfcontents" value="1" />
230 <div class="searchresults">
231 <table id="listcontents">
233 [% FOREACH itemsloo IN itemsloop %]
234 [% UNLESS ( loop.odd ) %]
235 <tr class="highlight">
239 <td><input type="checkbox" name="REM-[% itemsloo.biblionumber %]"
240 value="[% itemsloo.biblionumber %]" /></td>
241 [% UNLESS ( item_level_itypes ) %]
243 [% UNLESS ( noItemTypeImages ) %]
244 <img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />
246 [% itemsloo.description %]
250 [% IF ( itemsloo.XSLTBloc ) %]
251 [% itemsloo.XSLTBloc %]
254 [% IF ( itemsloo.BiblioDefaultViewmarc ) %]<a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
256 [% IF ( itemsloo.BiblioDefaultViewisbd ) %]<a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
257 [% ELSE %]<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
260 [% IF ( itemsloo.title ) %][% itemsloo.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN itemsloo.subtitle %][% subtitl.subfield %][% END %]</a>
261 [% 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>
264 <span class="results_summary"><span class="label">Publication:</span>
265 [% IF ( itemsloo.place ) %][% itemsloo.place %] [% END %][% IF ( itemsloo.publishercode ) %][% itemsloo.publishercode %][% END %][% IF ( itemsloo.publicationyear ) %] [% itemsloo.publicationyear %]
266 [% ELSE %][% IF ( itemsloo.copyrightdate ) %] [% itemsloo.copyrightdate %][% END %][% END %]
267 [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %]
268 [% IF ( itemsloo.notes ) %], [% itemsloo.notes %][% END %]
269 [% IF ( itemsloo.size ) %] [% itemsloo.size %][% END %]
271 <span class="results_summary"><span class="label">Holdings:</span>[% IF ( itemsloo.ITEM_RESULTS ) %][% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %]
272 [% ITEM_RESULT.homebranch %][% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
273 [% IF ( ITEM_RESULT.itemcallnumber ) %]
274 ([% ITEM_RESULT.itemcallnumber %])[% IF ( loop.last ) %].[% ELSE %],[% END %]
276 [% END %][% ELSE %]This record has no items.[% END %]</span>
278 [% IF ( TagsEnabled ) %]
279 [% IF ( TagsShowOnList ) %]
280 [% IF ( itemsloo.TagLoop.size ) %]
281 <div class="results_summary">
282 <span class="label">Tags:</span>
283 <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>
289 [% IF ( TagsInputOnList ) %]
290 [% IF ( loggedinusername ) %]
291 <form name="tagform[% itemsloo.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl">
292 <label for="newtag[% itemsloo.biblionumber %]">New tag:</label>
293 <input name="newtag[% itemsloo.biblionumber %]" id="newtag[% itemsloo.biblionumber %]" maxlength="100" />
294 <input name="tagbutton" class="tagbutton" title="[% itemsloo.biblionumber %]" type="submit" value="Add" />
296 <span id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">
299 [% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span>
302 [% IF ( loggedinusername ) %]
303 <span id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">Tag status here.</span>
307 <span class="results_summary actions"><span class="label">Actions:</span>
308 [% IF ( RequestOnOpac ) %]
309 [% UNLESS ( itemsloo.norequests ) %]
310 [% IF ( opacuserlogin ) %]
311 [% IF ( AllowOnShelfHolds ) %]
312 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place Hold</a><!-- add back when available 0 holds in queue-->
314 [% IF ( itemsloo.itemsissued ) %]
315 <a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place Hold</a><!-- add back when available 0 holds in queue-->
322 [% 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>
323 [% END %][% END %][% END %]
325 [% IF ( opacbookbag ) %]<a class="addtocart" href="#" onclick="addRecord('[% itemsloo.biblionumber %]'); return false;">Add to Cart</a>[% ELSE %]nocart[% END %]
330 <!-- COinS / Openurl -->
331 <!-- COinS / Openurl --><span class="Z3988" title="[% itemsloo.coins %]"></span>
332 [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]<br/>
333 <div id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</div>[% END %][% END %][% END %]
336 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber %]">
337 [% 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 %]
339 [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %]
340 <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" />
342 <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 %]
344 [% 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 %]
346 [% 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 %]
349 [% END %]<!-- /itemsloop -->
353 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
355 <div class="dialog message">This List is empty. You can add to your lists from the results of any <a href="opac-main.pl">search</a>!</div>
356 [% END %]<!-- /itemsloop -->
357 [% END %]<!-- /viewshelf -->
360 [% IF ( manageshelf ) %]
361 <!-- Editing shelf -->
362 [% IF ( itemsloop ) %]
363 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
364 <input type="hidden" name="modifyshelfcontents" value="1" />
365 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete(MSG_REMOVE_FROM_LIST)" />
367 <form method="post" action="opac-shelves.pl">
368 <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />
369 <input type="hidden" name="shelves" value="1" />
370 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
371 <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
378 <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>
379 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
380 <input type="hidden" name="op" value="modifsave" />
381 [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %]
382 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
383 <fieldset class="rows">
385 <li><label for="shelfname">List Name: </label><input type="text" id="shelfname" name="shelfname" size="60" value="[% shelfname |html %]" /></li>
387 <label for="sortfield" >Sort this list by: </label>
388 <select name="sortfield" id="sortfield">
389 [% IF ( sort_title ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
390 [% IF ( sort_author ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
391 [% IF ( sort_year ) %]<option value="year" selected="selected">Year</option>[% ELSE %]<option value="year">Year</option>[% END %]
395 <label for="category">Category:</label>
396 <select name="category" id="category">
397 [% IF ( category1 ) %]<option value="1" selected="selected">Private</option>[% ELSE %]<option value="1">Private</option>[% END %]
398 [% IF ( category2 ) %]<option value="2" selected="selected">Public</option>[% ELSE %]<option value="2">Public</option>[% END %]
403 <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>
405 [% END %]<!-- /edit -->
408 [% UNLESS ( edit ) %]
409 [% UNLESS ( viewshelf ) %]
410 [% UNLESS ( shelves ) %]
412 <ul class="link-tabs">
413 [% IF ( showprivateshelves ) %]
414 <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li>
416 <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your private lists</a></li>
418 [% IF ( showpublicshelves ) %]
419 <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
421 <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
425 [% IF ( showprivateshelves ) %]
426 <div id="privateshelves" class="tab-container" style="display:block;">
428 <div id="privateshelves" class="tab-container" style="display:none;">
431 [% IF ( loggedinusername ) %]
432 <div id="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a></div>
433 [% IF ( showprivateshelves ) %]
434 [% IF ( shelveslooppriv ) %]
442 [% FOREACH shelveslooppri IN shelveslooppriv %]
443 [% UNLESS ( loop.odd ) %]
444 <tr class="highlight">
448 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
449 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
451 [% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
452 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
453 [% IF ( shelveslooppri.viewcategory3 ) %]Open[% END %]
456 [% IF ( shelveslooppri.mine ) %]
457 <form action="/cgi-bin/koha/opac-shelves.pl" method="get">
458 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
459 <input type="hidden" name="display" value="privateshelves" />
460 <input type="hidden" name="op" value="modif" />
461 <input type="submit" class="editshelf" value="Edit" />
463 <form action="opac-shelves.pl" method="post">
464 <input type="hidden" name="shelves" value="1" />
465 <input type="hidden" name="display" value="privateshelves" />
466 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
467 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
468 [% IF ( shelveslooppri.confirm ) %]
469 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
470 <input type="submit" class="confirm" value="Confirm" />
472 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
480 <div class="pages">[% pagination_bar %]</div>
482 <p>No private lists.</p>
483 [% END %]<!-- /shelveslooppriv -->
484 [% END %]<!-- /showprivateshelves -->
485 [% ELSE %]<!-- /loggedinusername -->
486 <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
487 [% END %]<!-- /loggedinusername -->
490 </div><!-- /privateshelves -->
492 [% IF ( showpublicshelves ) %]
493 <div id="publicshelves" class="tab-container" style="display:block;">
495 <div id="publicshelves" class="tab-container" style="display:none;">
497 [% IF ( loggedinusername ) %]
498 <div id="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a></div>
500 <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
502 [% IF ( shelvesloop ) %]
507 <th>Type</th><th> </th>
509 [% FOREACH shelvesloo IN shelvesloop %]
510 [% UNLESS ( loop.odd ) %]
511 <tr class="highlight">
515 <td><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
516 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
518 [% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
519 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
520 [% IF ( shelvesloo.viewcategory3 ) %]Open[% END %]
523 [% IF ( shelvesloo.mine ) %]
524 <form action="/cgi-bin/koha/opac-shelves.pl" method="get">
525 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
526 <input type="hidden" name="op" value="modif" />
527 <input type="submit" class="editshelf" value="Edit" />
529 <form action="opac-shelves.pl" method="post">
530 <input type="hidden" name="shelves" value="1" />
531 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
532 [% IF ( shelvesloo.confirm ) %]
533 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
534 <input type="submit" class="confirm" value="Confirm" />
536 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
542 [% END %]<!-- /shelvesloop -->
544 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
545 [% ELSE %]<!-- /shelvesloop -->
546 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
547 [% END %]<!-- /shelvesloop -->
549 </div><!-- /publicshelves -->
551 [% END %]<!-- /shelves -->
552 [% END %]<!-- /viewshelf -->
553 [% END %]<!-- /edit -->
557 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
558 <fieldset class="rows">
559 <legend>Create a New List</legend>
560 <input type="hidden" name="shelves" value="1" />
563 <label class="required" for="addshelf">List Name:</label>
565 <input id="addshelf" type="text" name="addshelf" value="[% already %]" size="60" />
567 <input id="addshelf" type="text" name="addshelf" size="60" />
569 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
572 <label for="sortfield" >Sort this list by: </label>
573 <select name="sortfield" id="sortfield">
574 [% IF ( sort_title ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
575 [% IF ( sort_author ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
576 [% IF ( sort_year ) %]<option value="year" selected="selected">Year</option>[% ELSE %]<option value="year">Year</option>[% END %]
580 <label for="category">Category:</label>
581 <select name="category" id="category">
582 <option value="1">Private</option>
583 <option value="2">Public</option>
588 <fieldset class="action">
589 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" />
590 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
594 [% END %]<!-- /shelves -->
601 [% IF ( OpacNav||loggedinusername ) %]
603 <div id="leftmenus" class="container">
604 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
612 <div id="debug"></div>
614 [% INCLUDE 'opac-bottom.inc' %]