2 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
3 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
5 [% 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' %]
6 [% BLOCK cssinclude %][% END %]
8 [% IF ( loggedinusername ) %]<body id="opac-userlists" class="scrollto">[% ELSE %]<body id="opac-lists" class="scrollto">[% END %]
10 [% BLOCK list_permissions %]
12 <label for="allow_add">Permissions: </label>
13 <select name="allow_add" id="allow_add">
14 [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
15 [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
17 <span>anyone else to add entries. (The owner of a list is always allowed to add entries, but needs permission to remove.)</span>
21 <select name="allow_delete_own" id="allow_delete_own">
22 [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
23 [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
25 <span>anyone to remove his own contributed entries.</span>
29 <select name="allow_delete_other" id="allow_delete_other">
30 [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
31 [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
33 <span>anyone to remove other contributed entries.</span>
36 [% BLOCK remove_share %]
37 [%# Use: add parameter shelfnumber and add end form tag %]
38 <form action="opac-shelves.pl" method="post" class="form-inline">
39 <input type="hidden" name="shelves" value="1" />
40 <input type="hidden" name="display" value="privateshelves" />
41 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);" value="Remove share" />
44 [% INCLUDE 'masthead.inc' %]
46 <ul class="breadcrumb">
47 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
48 [% IF ( loggedinusername ) %]
49 <li><a href="/cgi-bin/koha/opac-user.pl">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</a> <span class="divider">›</span></li>
52 [% IF ( category1 ) %]
53 [% IF ( viewshelf || edit ) %]
54 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
58 [% ELSIF ( category2 ) %]
59 [% IF ( viewshelf || edit ) %]
60 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
64 [% ELSIF ( showprivateshelves ) %]
65 [% IF ( viewshelf || edit ) %]
66 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
70 [% ELSIF ( showpublicshelves ) %]
71 [% IF ( viewshelf || edit || shelves ) %]
72 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
78 [% IF ( viewshelf ) %]
79 <li><span class="divider">›</span> Contents of <i>[% shelfname | html %]</i></li>
83 <li><span class="divider">›</span> Create new list</li>
87 <li><span class="divider">›</span> Edit list <i>[% shelfname | html %]</i></li>
90 </ul> <!-- / .breadcrumb -->
92 <div class="container-fluid">
93 <div class="row-fluid">
94 [% IF ( OpacNav||loggedinusername ) %]
97 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
102 [% IF ( OpacNav||loggedinusername ) %]
107 <div id="usershelves" class="maincontent">
109 [% IF ( paramsloop ) %]
110 [% FOREACH paramsloo IN paramsloop %]
111 [% IF ( paramsloo.already ) %]<div class="alert">A list named <b>[% paramsloo.already %]</b> already exists!</div>[% END %]
112 [% IF ( paramsloo.addshelf_failed ) %]<div class="dialog alert">List could not be created. [% IF loggedinuser==0 %](Do not use the database administrator account.)[% END %]</div>[% END %]
113 [% IF ( paramsloo.status ) %]<div class="alert">[% paramsloo.string %]</div>[% END %]
114 [% IF ( paramsloo.nobarcode ) %]<div class="alert">ERROR: No barcode given.</div>[% END %]
115 [% IF ( paramsloo.noshelfnumber ) %]<div class="alert">ERROR: No shelfnumber given.</div>[% END %]
116 [% IF ( paramsloo.need_confirm ) %]
118 The list <i>[% paramsloo.need_confirm %]</i> is not empty.
119 <br />It has <b>[% paramsloo.count %]</b> [% IF ( paramsloo.single ) %]entry[% ELSE %]entries[% END %].
120 <br />Use the "Confirm" button below to confirm deletion.
123 [% IF ( paramsloo.nopermission ) %]
124 <div class="alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission |html%].</div>
126 [% IF ( paramsloo.failgetitem ) %]
127 <div class="alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
129 [% IF ( paramsloo.duplicatebiblio ) %]
130 <div class="alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
132 [% IF ( paramsloo.delete_ok ) %]
133 <div class="alert alert-info">List [% paramsloo.delete_ok %] Deleted.</div>
135 [% IF ( paramsloo.delete_fail ) %]
136 <div class="alert alert-info">ERROR: Database error. Delete (list number [% paramsloo.delete_fail %]) failed.</div>
138 [% IF ( paramsloo.unrecognized ) %]
139 <div class="alert alert-info">ERROR: List number [% paramsloo.unrecognized %] unrecognized.</div>
141 [% IF ( paramsloo.modifyfailure) %]
142 <div class="alert alert-info">ERROR: Shelf could not be renamed to [% paramsloo.modifyfailure %]. This name may not be unique for this type of list. Please check.</div>
144 [% IF ( paramsloo.nothingdeleted) %]
145 <div class="alert alert-info">Warning: You could not delete any selected items from this shelf.</div>
147 [% IF ( paramsloo.somedeleted) %]
148 <div class="alert alert-info">Warning: You could not delete all selected items from this shelf.</div>
150 [% END # / FOREACH paramsloop %]
151 [% END # / IF paramsloop %]
153 [% IF ( viewshelf ) %]<!-- Viewing a particular shelf -->
154 <h3>[% shelfname |html %]</h3>
155 [% IF ( itemsloop ) %]
156 <div id="toolbar" class="toolbar clearfix">
157 <div class="list-actions">
158 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep">|</span>
159 <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]" class="download" onclick="open('/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false;">Download list</a>
161 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
162 <span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber %]" class="send" onclick="open('/cgi-bin/koha/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>
165 <a class="print-small" href="/cgi-bin/koha/opac-shelves.pl" onclick="print(); return false;">Print list</a>
167 [% IF ( manageshelf ) %]
168 <span class="sep">|</span>
169 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
170 <input type="hidden" name="op" value="modif" />
171 <input type="hidden" name="display" value="viewshelf" />
172 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
173 <input type="submit" class="editshelf" value="Edit list" />
176 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
177 <input type="hidden" value="1" name="shelves"/>
178 <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
179 [% IF ( showprivateshelves ) %]
180 <input type="hidden" name="display" value="privateshelves"/>
182 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
184 [% IF showprivateshelves && Koha.Preference('OpacAllowSharingPrivateLists') %]
185 <a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelfnumber %]" class="">Share list</a>
187 [% ELSIF showprivateshelves # not manageshelf and private means shared %]
188 [% INCLUDE remove_share %]
189 <input type="hidden" name="REMSHR-[% shelfnumber %]" value="1" />
191 [% END # / IF manageshelf %]
194 <form action="/cgi-bin/koha/opac-shelves.pl" id="sorting-form" class="form-inline sort_by pull-right">
195 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
197 <label for="sort">Sort by: </label>
198 <select name="sort" id="sort" class="resort" onchange="$('#sorting-form').submit()">
199 <option value="">Default sorting</option>
201 [% IF sort == 'author' %]
202 <option value="author" selected="selected">Author</option>
204 <option value="author">Author</option>
207 [% IF sort == 'title' %]
208 <option value="title" selected="selected">Title</option>
210 <option value="title">Title</option>
213 [% IF sort == 'itemcallnumber' %]
214 <option value="itemcallnumber" selected="selected">Call number</option>
216 <option value="itemcallnumber">Call number</option>
219 [% IF sort == 'copyrightdate' %]
220 <option value="copyrightdate" selected="selected">Copyright date</option>
222 <option value="copyrightdate">Copyright date</option>
226 <select name="direction" class="resort" onchange="$('#sorting-form').submit()">
227 [% IF direction == 'asc' %]
228 <option value="asc" selected="selected">Ascending</option>
230 <option value="asc">Ascending</option>
233 [% IF direction == 'desc' %]
234 <option value="desc" selected="selected">Descending</option>
236 <option value="desc">Descending</option>
240 <input type="submit" class="btn btn-small" id="sort-submit" value="Resort list" />
243 </div> <!-- / #toolbar -->
245 <div id="selections-toolbar" class="toolbar">
246 <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span>
248 <span id="selections">Select titles to: </span>
249 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
250 <span id="placehold"></span>
252 [% IF ( TagsInputEnabled && loggedinusername ) %]
254 <a id="tagsel_tag" href="#" class="disabled">Tag</a>
256 <span id="tagsel_form" style="display:none">
257 <label for="tagsel_new">New tag(s), separated by a comma:</label>
258 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
259 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="tagsel_button" type="submit" value="Add" />
260 <a href="#" id="tagsel_cancel">Cancel</a>
263 [% IF ( loggedinusername && allowremovingitems ) %]
264 <span id="removeitems"></span>
266 </span> <!-- / .links -->
267 </div> <!-- / #selections-toolbar -->
269 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed">
270 [% IF ( manageshelf ) %]
271 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
272 <input type="hidden" name="modifyshelfcontents" value="1" />
274 <div class="searchresults">
275 <table id="listcontents" class="table">
277 [% FOREACH itemsloo IN itemsloop %]
279 <td class="select selectcol"><input type="checkbox" class="cb" name="REM-[% itemsloo.biblionumber %]" value="[% itemsloo.biblionumber %]" /></td>
280 [% UNLESS ( item_level_itypes ) %]
282 [% UNLESS ( noItemTypeImages ) %]
283 <img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />
285 [% itemsloo.description %]
289 <div class="coverimages">
290 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber %]">
291 [% IF ( OPACLocalCoverImages ) %]
292 <span title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
295 [% IF ( OPACAmazonCoverImages ) %]
296 [% IF ( itemsloo.normalized_isbn ) %]
297 <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="" /></span>
299 <span class="no-image">No cover image available</span>
303 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
304 [% IF ( using_https ) %]
305 <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="" /></span>
307 <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="" /></span>
311 [% IF ( GoogleJackets ) %]
312 [% IF ( itemsloo.normalized_isbn ) %]
313 <div title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
315 <span class="no-image">No cover image available</span>
319 [% IF OpenLibraryCovers %]
320 [% IF itemsloo.normalized_isbn %]
321 <span title="[% itemsloo.biblionumber %]" class="[% itemsloo.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>
323 <span class="no-image">No cover image available</span>
328 [% IF ( BakerTaylorEnabled ) %]
329 [% IF ( itemsloo.normalized_isbn ) %]
330 <a href="https://[% BakerTaylorBookstoreURL |html %][% itemsloo.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% itemsloo.normalized_isbn %]" /></a>
332 <span class="no-image">No cover image available</span>
336 [% IF ( itemsloo.XSLTBloc ) %]
337 [% itemsloo.XSLTBloc %]
340 [% IF ( itemsloo.BiblioDefaultViewmarc ) %]
341 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
343 [% IF ( itemsloo.BiblioDefaultViewisbd ) %]
344 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
346 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
350 [% IF ( itemsloo.title ) %]
351 [% itemsloo.title |html %]
356 [% FOREACH subtitl IN itemsloo.subtitle %]
357 [% subtitl.subfield|html %]
361 [% IF ( itemsloo.author ) %]
362 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>
367 <span class="results_summary">
368 <span class="label">Publication:</span>
369 [% IF ( itemsloo.place ) %]
372 [% IF ( itemsloo.publishercode ) %]
373 [% itemsloo.publishercode|html %]
375 [% IF ( itemsloo.publicationyear ) %]
376 [% itemsloo.publicationyear %]
378 [% IF ( itemsloo.copyrightdate ) %]
379 [% itemsloo.copyrightdate %]
382 [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %]
383 [% IF ( itemsloo.notes ) %], [% itemsloo.notes|html %][% END %]
384 [% IF ( itemsloo.size ) %] [% itemsloo.size %][% END %]
386 <span class="results_summary">
387 <span class="label">Holdings:</span>
388 [% IF ( itemsloo.ITEM_RESULTS ) %]
389 [% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %]
390 [% ITEM_RESULT.homebranch %]
391 [% IF ( ITEM_RESULT.location_opac ) %]
392 , [% ITEM_RESULT.location_opac %]
394 [% IF ( ITEM_RESULT.itemcallnumber ) %]
395 ([% ITEM_RESULT.itemcallnumber %])
396 [% IF ( loop.last ) %].[% ELSE %],[% END %]
400 This record has no items.
403 [% END # / IF itemsloo.XSLTBloc %]
405 [% IF ( TagsShowEnabled && itemsloo.TagLoop.size ) %]
406 <div class="results_summary tags">
407 <span class="label">Tags:</span>
409 [% FOREACH TagLoo IN itemsloo.TagLoop %]
410 <li><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>
416 <span class="results_summary">
418 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
419 [% UNLESS ( itemsloo.norequests ) %]
420 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
421 [% IF ( AllowOnShelfHolds ) %]
422 <span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place hold</a><!-- add back when available 0 holds in queue--></span>
424 [% IF ( itemsloo.itemsissued ) %]
425 <span class="actions"><a class="hold" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% itemsloo.biblionumber %]">Place hold</a><!-- add back when available 0 holds in queue--></span>
428 [% END # / IF opacuserlogin %]
429 [% END # / UNLESS itemsloo.norequests %]
430 [% END # / RequestOnOpac %]
432 [% IF ( TagsInputEnabled ) %]
433 [% IF ( loggedinusername ) %]
434 <span class="actions"><a class="tag_add hidden" id="tag_add[% itemsloo.biblionumber %]" href="#">Add tag</a></span>
435 <div id="tagform[% itemsloo.biblionumber %]" class="tag_results_input" style="display:none;">
436 <label for="newtag[% itemsloo.biblionumber %]">New tag(s), separated by a comma:</label>
437 <input name="newtag[% itemsloo.biblionumber %]" id="newtag[% itemsloo.biblionumber %]" maxlength="100" />
438 <input name="tagbutton" class="tagbutton btn btn-small" title="[% itemsloo.biblionumber %]" type="submit" value="Add" />
439 <a class="cancel_tag_add" id="cancel[% itemsloo.biblionumber %]" href="#">(done)</a>
441 <div id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">
444 [% ELSIF ( loop.first ) %]
445 <span class="tagstatus" id="login4tags">Log in to add tags.</span>
446 [% END # / IF loggedinusername %]
447 [% END # / IF TagsInputEnabled %]
449 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
450 <span class="actions"><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></span>
453 [% IF ( allowremovingitems ) %]
454 <span class="actions"><a class="removefromlist hidden" id="REM-[% itemsloo.biblionumber %]" href="#">Remove from this list</a></span>
457 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
458 [% IF ( itemsloo.incart ) %]
459 <span class="actions"><a class="addtocart cart[% itemsloo.biblionumber %] hidden" href="#" onclick="addRecord('[% itemsloo.biblionumber %]'); return false;">In your cart</a> <a class="cartRemove cartR[% itemsloo.biblionumber %] hidden" href="#" onclick="delSingleRecord('[% itemsloo.biblionumber %]'); return false;">(remove)</a></span>
461 <span class="actions"><a class="addtocart cart[% itemsloo.biblionumber %] hidden" href="#" onclick="addRecord('[% itemsloo.biblionumber %]'); return false;">Add to cart</a> <a style="display:none;" class="cartRemove cartR[% itemsloo.biblionumber %] hidden" href="#" onclick="delSingleRecord('[% itemsloo.biblionumber %]'); return false;">(remove)</a></span>
463 [% END # / IF opacbookbag %]
464 </span> <!-- / .results_summary .actions -->
466 <!-- COinS / Openurl -->
467 <span class="Z3988" title="[% itemsloo.coins %]"></span>
470 [% END # / FOREACH itemsloop %]
472 </table> <!-- / #listcontents -->
473 </div><!-- / .searchresults -->
475 [% IF ( pagination_bar ) %]
476 <div class="pages">[% pagination_bar %]</div>
480 <div id="toolbar" class="toolbar clearfix">
481 <div class="list-actions">
482 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep"></span>
483 [% IF ( manageshelf ) %]
484 <span class="sep">|</span>
485 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
486 <input type="hidden" name="op" value="modif" />
487 <input type="hidden" name="display" value="viewshelf" />
488 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
489 <input type="submit" class="editshelf" value="Edit list" />
492 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
493 <input type="hidden" value="1" name="shelves"/>
494 <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
495 [% IF ( showprivateshelves ) %]
496 <input type="hidden" name="display" value="privateshelves"/>
498 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
500 [% END # / IF manageshelf %]
501 </div> <!-- / .list-actions -->
502 </div> <!-- / #toolbar -->
504 <div class="alert alert-info">
506 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
507 You can add to your lists from the results of any <a href="opac-main.pl">search</a>.
510 [% END # / IF itemsloop %]
511 [% END # / IF viewshelf %]
513 [% IF ( itemsloop && allowremovingitems ) %]
514 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
515 <input type="hidden" name="modifyshelfcontents" value="1" />
516 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove selected items" id="remove-selected" class="btn btn-danger"/>
518 [% ELSIF ( !itemsloop && manageshelf ) %]
519 <form method="post" action="opac-shelves.pl">
520 <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />
521 <input type="hidden" name="shelves" value="1" />
522 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
523 <input type="submit" class="btn btn-danger" value="Delete this list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
528 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
529 <input type="hidden" name="op" value="modifsave" />
530 <input type="hidden" name="display" value="[% display %]" />
531 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
532 <fieldset class="rows">
533 <legend>Editing <em>[% shelfname |html %]</em></legend>
535 <li><label for="shelfname">List name: </label><input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelfname |html %]" /></li>
537 <label for="sortfield" >Sort this list by: </label>
538 <select name="sortfield" id="sortfield">
539 [% IF ( sortfield == "title" ) %]
540 <option value="title" selected="selected">Title</option>
542 <option value="title">Title</option>
544 [% IF ( sortfield == "author" ) %]
545 <option value="author" selected="selected">Author</option>
547 <option value="author">Author</option>
549 [% IF ( sortfield == "copyrightdate" ) %]
550 <option value="copyrightdate" selected="selected">Year</option>
552 <option value="copyrightdate">Year</option>
554 [% IF ( sortfield == "itemcallnumber" ) %]
555 <option value="itemcallnumber" selected="selected">Call number</option>
557 <option value="itemcallnumber">Call number</option>
561 [% IF ( OpacAllowPublicListCreation || category2 ) %]
563 <label for="category">Category:</label>
564 <select name="category" id="category">
565 [% IF ( category1 ) %]
566 <option value="1" selected="selected">Private</option>
568 <option value="1">Private</option>
570 [% IF ( category2 ) %]
571 <option value="2" selected="selected">Public</option>
573 <option value="2">Public</option>
576 [% IF ( category2 && !OpacAllowPublicListCreation ) %]
577 <span class="hint alert alert-info">The library has disabled the ability for patrons to create new public lists. If you make your list private, you will not be able to make it public again.</span>
580 [% INCLUDE list_permissions %]
583 [% UNLESS ( OpacAllowPublicListCreation || category2 ) %]
584 <input type="hidden" name="category" value="1" />
588 <fieldset class="action">
589 <input type="submit" value="Save" class="btn" />
590 [% IF ( showprivateshelves ) %]
591 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]&display=privateshelves">Cancel</a>
593 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]">Cancel</a>
597 [% END # / IF edit %]
600 [% UNLESS ( edit ) %]
601 [% UNLESS ( viewshelf ) %]
602 [% UNLESS ( shelves ) %]
604 <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all">
605 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
606 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
607 [% IF ( showprivateshelves ) %]
608 <li id="privateshelves_tab" class="ui-state-default ui-corner-top ui-tabs-active ui-state-active"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
610 <li id="privateshelves_tab" class="ui-state-default ui-corner-top"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
613 [% IF ( showpublicshelves ) %]
614 <li id="publicshelves_tab" class="ui-state-default ui-corner-top ui-tabs-active ui-state-active"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
616 <li id="publicshelves_tab" class="ui-state-default ui-corner-top"><a class="ui-tabs-anchor" href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
620 [% IF ( showprivateshelves ) %]
621 <div id="privateshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
623 [% IF ( loggedinusername ) %]
624 <div id="toolbar" class="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
625 [% IF ( showprivateshelves ) %]
626 [% IF ( shelveslooppriv ) %]
627 <table class="table">
637 [% FOREACH shelveslooppri IN shelveslooppriv %]
639 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
640 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
642 [% IF ( shelveslooppri.viewcategory1 ) %][% IF !shelveslooppri.shares %]Private[% ELSE %]Shared[% END %][% END %]
645 [% IF ( shelveslooppri.mine ) %]
646 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
647 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
648 <input type="hidden" name="display" value="privateshelves" />
649 <input type="hidden" name="op" value="modif" />
650 <input type="submit" class="editshelf" value="Edit" />
652 <form action="opac-shelves.pl" method="post" class="form-inline">
653 <input type="hidden" name="shelves" value="1" />
654 <input type="hidden" name="display" value="privateshelves" />
655 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
656 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
657 [% IF ( shelveslooppri.confirm ) %]
658 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
659 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
661 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
664 [% IF Koha.Preference('OpacAllowSharingPrivateLists') %]
665 <a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelveslooppri.shelf %]" class="">Share</a>
667 [% ELSE # not shelveslooppri.mine, so shared %]
668 [% INCLUDE remove_share # if pref is off, you should still be able to remove shares %]
669 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
670 <input type="hidden" name="REMSHR-[% shelveslooppri.shelf %]" value="1" />
675 [% END # / FOREACH shelveslooppri %]
678 <div class="pages">[% pagination_bar %]</div>
680 <p>No private lists.</p>
681 [% END # / IF shelveslooppriv %]
682 [% END # / IF showprivateshelves %]
684 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
685 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
687 [% END # IF loggedinusername %]
688 </div><!-- / #privateshelves -->
689 [% END # / IF showprivateshelves %]
690 [% IF ( showpublicshelves ) %]
691 <div id="publicshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
693 [% IF ( loggedinusername ) %]
694 <div id="toolbar" class="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
696 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
697 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
699 [% END # / IF loggedinusername %]
701 [% IF ( shelvesloop ) %]
702 <table class="table">
707 <th>Type</th><th> </th>
711 [% FOREACH shelvesloo IN shelvesloop %]
713 <td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
714 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
716 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
719 [% IF ( shelvesloo.mine ) %]
720 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
721 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
722 <input type="hidden" name="op" value="modif" />
723 <input type="hidden" name="display" value="publicshelves" />
724 <input type="submit" class="editshelf" value="Edit" />
726 <form action="opac-shelves.pl" method="post" class="form-inline">
727 <input type="hidden" name="shelves" value="1" />
728 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
729 [% IF ( shelvesloo.confirm ) %]
730 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
731 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
733 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
739 [% END # / FOREACH shelvesloop %]
742 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
744 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
745 [% END # / IF shelvesloop %]
747 </div><!-- / # publicshelves -->
748 [% END # / IF showprivateshelves %]
749 </div> <!-- / .ui-tabs-panel -->
750 [% END # / UNLESS shelves %]
751 [% END # / UNLESS viewshelf %]
752 [% END # / UNLESS edit %]
756 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
757 <fieldset class="rows">
758 <legend>Create a new list</legend>
759 <input type="hidden" name="shelves" value="1" />
762 <label class="required" for="addshelf">List name:</label>
764 <input id="addshelf" type="text" name="addshelf" value="[% already %]" maxlength="255" class="input-fluid" />
766 <input id="addshelf" type="text" name="addshelf" maxlength="255" class="input-fluid" />
768 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
771 <label for="sortfield" >Sort this list by: </label>
772 <select name="sortfield" id="sortfield">
773 <option value="title">Title</option>
774 <option value="author">Author</option>
775 <option value="copyrightdate">Year</option>
776 <option value="itemcallnumber">Call number</option>
779 [% IF (OpacAllowPublicListCreation) %]
781 <label for="category">Category:</label>
782 <select name="category" id="category">
783 <option value="1">Private</option>
784 <option value="2">Public</option>
787 [% INCLUDE list_permissions %]
790 [% UNLESS (OpacAllowPublicListCreation) %]
791 <input type="hidden" name="category" value="1" />
794 <fieldset class="action">
795 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="btn" />
796 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
799 </div> <!-- / #addshelf -->
800 [% END # / IF shelves %]
802 </div> <!-- / #usershelves -->
803 </div> <!-- / .span10/12 -->
804 </div> <!-- / .row-fluid -->
805 </div> <!-- / .container-fluid -->
806 </div> <!-- / .main -->
809 <div id="debug"></div>
812 [% INCLUDE 'opac-bottom.inc' %]
813 [% BLOCK jsinclude %]
814 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
815 <script type="text/javascript">
817 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
818 var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
819 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
820 var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?");
822 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
823 function holdSelections() {
824 var checkedBoxes = $("input:checkbox:checked");
825 if ($(checkedBoxes).size() == 0) {
826 alert(MSG_NO_RECORD_SELECTED);
829 $(checkedBoxes).each(function(){
830 var name = $(this).attr("name");
831 bib = name.substr(4);
834 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
838 [% IF ( TagsInputEnabled && loggedinusername ) %]
839 function tagSelected() {
840 var checkedBoxes = $("input:checkbox:checked");
841 if ($(checkedBoxes).size()) {
842 $("#tagsel_tag").hide();
843 $(".tag_hides").hide();
844 $("#tagsel_form").show();
846 alert(MSG_NO_RECORD_SELECTED);
850 function tagCanceled() {
851 $("#tagsel_form").hide();
852 $("#tagsel_tag").show();
853 $(".tag_hides").show();
854 $("#tagsel_new").val("");
855 $(".tagstatus").empty().hide();
858 function tagAdded() {
859 var checkedBoxes = $("input:checkbox:checked");
860 if (!$(checkedBoxes).size()) {
861 alert(MSG_NO_RECORD_SELECTED);
865 var tag = $("#tagsel_new").val();
866 if (!tag || (tag == "")) {
867 alert(MSG_NO_TAG_SPECIFIED);
872 for (var i = 0; i < $(checkedBoxes).size(); i++) {
873 var box = $(checkedBoxes).get(i);
874 bibs[i] = $(box).val();
877 KOHA.Tags.add_multitags_button(bibs, tag);
882 function enableCheckboxActions(){
883 // Enable/disable controls if checkboxes are checked
884 var checkedBoxes = $(".checkboxed input:checkbox:checked");
885 if ($(checkedBoxes).size()) {
886 $("#selections").html(_("With selected titles: "));
887 $("#selections-toolbar .links a").removeClass("disabled");
889 $("#selections").html(_("Select titles to: "));
890 $("#selections-toolbar .links a").addClass("disabled");
895 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]$(".addtocart,.cartRemove").removeClass("hidden");[% END %]
896 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
897 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
900 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
901 $("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
902 $("#selections-toolbar a.hold").click(function(){
908 $("#CheckAll").click(function(){
909 $(".checkboxed").checkCheckboxes();
910 enableCheckboxActions();
913 $("#CheckNone").click(function(){
914 $(".checkboxed").unCheckCheckboxes();
915 enableCheckboxActions();
919 $(".cb").click(function(){
920 enableCheckboxActions();
922 enableCheckboxActions();
924 [% IF ( TagsInputEnabled && loggedinusername ) %]
925 var tagAdd = $(".tag_add");
926 tagAdd.removeClass("hidden");
927 $("#tagsel_tag").click(function(){
931 $("#tagsel_cancel").click(function(){
935 $("#tagsel_button").click(function(){
940 tagAdd.click(function(){
941 var thisid = $(this).attr("id");
942 thisid = thisid.replace("tag_add","");
944 $("#tagform"+thisid).show();
945 $("#newtag"+thisid).focus();
946 $("#newtag"+thisid+"_status").empty().hide();
949 $(".cancel_tag_add").click(function(){
950 var thisid = $(this).attr("id");
951 thisid = thisid.replace("cancel","");
952 $("#tagform"+thisid).hide();
953 $("#tag_add"+thisid).show();
954 $("#newtag"+thisid).val("");
955 $("#newtag"+thisid+"_status").empty().hide();
958 $(".tagbutton").click(function(){
959 var thisid = $(this).attr("title");
960 var tag = $("#newtag"+thisid).val();
961 if (!tag || (tag == "")) {
962 alert(MSG_NO_TAG_SPECIFIED);
965 KOHA.Tags.add_tag_button(thisid, tag);
970 [% IF ( loggedinusername && allowremovingitems ) %]
971 var removeFromListLinks = $(".removefromlist");
972 removeFromListLinks.removeClass("hidden");
973 // "remove from list" appearing on each line of the list output
974 removeFromListLinks.on("click",function(){
975 $(".checkboxed").unCheckCheckboxes();
976 var listitem = $("input[name="+this.id+"]");
977 listitem.prop("checked",true);
978 $("#myform").submit();
981 $("#myform").submit(function(){
982 var checkedBoxes = $(".checkboxed input:checkbox:checked");
983 var numchecked = $(checkedBoxes).size();
985 if( numchecked > 1 ){
986 return confirmDelete(MSG_REMOVE_FROM_LIST);
988 return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
991 alert(MSG_NO_RECORD_SELECTED);
995 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
997 $("#myform").submit();
1001 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1002 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1003 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1004 $('#sort-submit').hide();
1005 }); // document.ready
1008 var _alertString="";
1011 if(f.addshelf.value.length ==0){
1012 _alertString += _("- You must enter a list name") + "\n";
1015 if (_alertString.length==0) {
1018 alertString2 = _("Form not submitted because of the following problem(s)");
1019 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
1020 alertString2 += _alertString;
1021 alert(alertString2);