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 ) %][% INCLUDE 'bodytag.inc' bodyid='opac-userlists' bodyclass='scrollto' %][% ELSE %][% INCLUDE 'bodytag.inc' bodyid='opac-lists' bodyclass='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 noprint">
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 ) && !print %]
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 |html %] Deleted.</div>
135 [% IF ( paramsloo.delete_fail ) %]
136 <div class="alert alert-info">ERROR: Database error. Delete (list number [% paramsloo.delete_fail |html %]) 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 -->
155 [% shelfname |html %]
156 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-shelves.pl?rss=1&viewshelf=[% shelfnumber %]" class="rss-list-link noprint">
157 <img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this list" title="Subscribe to this list" border="0" class="rsssearchicon"/>
161 [% IF ( itemsloop ) %]
162 <div id="toolbar" class="toolbar clearfix">
163 <div class="list-actions">
164 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep">|</span>
165 <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber | html %]&showprivateshelves=[% showprivateshelves | html %]" class="download" data-toggle="modal" data-target="#modalWin">Download list</a>
167 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
168 <span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber | html %]" class="send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber | html %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send list</a></span>
171 <a class="print-small" target="_blank" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelfnumber %]&sort=[% sort %]&direction=[% direction |uri %]&print=1">Print list</a>
173 [% IF ( manageshelf ) %]
174 <span class="sep">|</span>
175 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
176 <input type="hidden" name="op" value="modif" />
177 <input type="hidden" name="display" value="viewshelf" />
178 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
179 <input type="submit" class="editshelf" value="Edit list" />
182 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
183 <input type="hidden" value="1" name="shelves"/>
184 <input type="hidden" value="1" name="DEL-[% shelfnumber | html %]"/>
185 [% IF ( showprivateshelves ) %]
186 <input type="hidden" name="display" value="privateshelves"/>
188 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
190 [% IF showprivateshelves && Koha.Preference('OpacAllowSharingPrivateLists') %]
191 <a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelfnumber | html %]" class="">Share list</a>
193 [% ELSIF showprivateshelves # not manageshelf and private means shared %]
194 [% INCLUDE remove_share %]
195 <input type="hidden" name="REMSHR-[% shelfnumber | html %]" value="1" />
197 [% END # / IF manageshelf %]
200 <form action="/cgi-bin/koha/opac-shelves.pl" id="sorting-form" class="form-inline sort_by pull-right">
201 <input type="hidden" name="viewshelf" value="[% shelfnumber | html %]" />
203 <label for="sort">Sort by: </label>
204 <select name="sort" id="sort" class="resort" onchange="$('#sorting-form').submit()">
205 <option value="">Default sorting</option>
207 [% IF sort == 'author' %]
208 <option value="author" selected="selected">Author</option>
210 <option value="author">Author</option>
213 [% IF sort == 'title' %]
214 <option value="title" selected="selected">Title</option>
216 <option value="title">Title</option>
219 [% IF sort == 'itemcallnumber' %]
220 <option value="itemcallnumber" selected="selected">Call number</option>
222 <option value="itemcallnumber">Call number</option>
225 [% IF sort == 'copyrightdate' %]
226 <option value="copyrightdate" selected="selected">Copyright date</option>
228 <option value="copyrightdate">Copyright date</option>
232 <select name="direction" class="resort" onchange="$('#sorting-form').submit()">
233 [% IF direction == 'asc' %]
234 <option value="asc" selected="selected">Ascending</option>
236 <option value="asc">Ascending</option>
239 [% IF direction == 'desc' %]
240 <option value="desc" selected="selected">Descending</option>
242 <option value="desc">Descending</option>
246 <input type="submit" class="btn btn-small" id="sort-submit" value="Resort list" />
249 </div> <!-- / #toolbar -->
251 <div id="selections-toolbar" class="toolbar noprint">
252 <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span>
254 <span id="selections">Select titles to: </span>
255 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
256 <span id="placehold"></span>
258 [% IF ( TagsInputEnabled && loggedinusername ) %]
260 <a id="tagsel_tag" href="#" class="disabled">Tag</a>
262 <span id="tagsel_form" style="display:none">
263 <label for="tagsel_new">New tag(s), separated by a comma:</label>
264 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
265 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="tagsel_button" type="submit" value="Add" />
266 <a href="#" id="tagsel_cancel">Cancel</a>
269 [% IF ( loggedinusername && allowremovingitems ) %]
270 <span id="removeitems"></span>
272 </span> <!-- / .links -->
273 </div> <!-- / #selections-toolbar -->
275 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed">
276 [% IF ( manageshelf ) %]
277 <input type="hidden" name="viewshelf" value="[% shelfnumber | html %]" />
278 <input type="hidden" name="modifyshelfcontents" value="1" />
280 <div class="searchresults">
281 <table id="listcontents" class="table">
283 [% FOREACH itemsloo IN itemsloop %]
285 <td class="select selectcol"><input type="checkbox" class="cb" name="REM-[% itemsloo.biblionumber %]" value="[% itemsloo.biblionumber %]" /></td>
286 [% UNLESS ( item_level_itypes ) %]
288 [% UNLESS ( noItemTypeImages ) %]
289 <img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />
291 [% itemsloo.description %]
295 <div class="coverimages">
296 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber %]">
297 [% IF ( OPACLocalCoverImages ) %]
298 <span title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
301 [% IF ( OPACAmazonCoverImages ) %]
302 [% IF ( itemsloo.normalized_isbn ) %]
303 <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>
305 <span class="no-image">No cover image available</span>
309 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
310 [% IF ( using_https ) %]
311 <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>
313 <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>
317 [% IF ( GoogleJackets ) %]
318 [% IF ( itemsloo.normalized_isbn ) %]
319 <div title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
321 <span class="no-image">No cover image available</span>
325 [% IF OpenLibraryCovers %]
326 [% IF itemsloo.normalized_isbn %]
327 <span title="[% itemsloo.biblionumber %]" class="[% itemsloo.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>
329 <span class="no-image">No cover image available</span>
334 [% IF ( BakerTaylorEnabled ) %]
335 [% IF ( itemsloo.normalized_isbn ) %]
336 <a href="https://[% BakerTaylorBookstoreURL |html %][% itemsloo.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% itemsloo.normalized_isbn %]" /></a>
338 <span class="no-image">No cover image available</span>
342 [% IF ( itemsloo.XSLTBloc ) %]
343 [% itemsloo.XSLTBloc %]
346 [% IF ( itemsloo.BiblioDefaultViewmarc ) %]
347 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
349 [% IF ( itemsloo.BiblioDefaultViewisbd ) %]
350 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
352 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
356 [% IF ( itemsloo.title ) %]
357 [% itemsloo.title |html %]
362 [% FOREACH subtitl IN itemsloo.subtitle %]
363 [% subtitl.subfield|html %]
367 [% IF ( itemsloo.author ) %]
368 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>
373 <span class="results_summary">
374 <span class="label">Publication:</span>
375 [% IF ( itemsloo.place ) %]
378 [% IF ( itemsloo.publishercode ) %]
379 [% itemsloo.publishercode|html %]
381 [% IF ( itemsloo.publicationyear ) %]
382 [% itemsloo.publicationyear %]
384 [% IF ( itemsloo.copyrightdate ) %]
385 [% itemsloo.copyrightdate %]
388 [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %]
389 [% IF ( itemsloo.notes ) %], [% itemsloo.notes|html %][% END %]
390 [% IF ( itemsloo.item('size') ) %] [% itemsloo.item('size') %][% END %]
392 <span class="results_summary">
393 <span class="label">Holdings:</span>
394 [% IF ( itemsloo.ITEM_RESULTS ) %]
395 [% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %]
396 [% ITEM_RESULT.homebranch %]
397 [% IF ( ITEM_RESULT.location_opac ) %]
398 , [% ITEM_RESULT.location_opac %]
400 [% IF ( ITEM_RESULT.itemcallnumber ) %]
401 ([% ITEM_RESULT.itemcallnumber %])
402 [% IF ( loop.last ) %].[% ELSE %],[% END %]
406 This record has no items.
409 [% END # / IF itemsloo.XSLTBloc %]
411 [% IF ( TagsShowEnabled && itemsloo.TagLoop.size ) %]
412 <div class="results_summary tags">
413 <span class="label">Tags:</span>
415 [% FOREACH TagLoo IN itemsloo.TagLoop %]
416 <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>
422 <span class="results_summary">
424 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
425 [% UNLESS ( itemsloo.norequests ) %]
426 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
427 [% IF ( itemsloo.allow_onshelf_holds ) %]
428 <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>
430 [% IF ( itemsloo.itemsissued ) %]
431 <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>
434 [% END # / IF opacuserlogin %]
435 [% END # / UNLESS itemsloo.norequests %]
436 [% END # / RequestOnOpac %]
438 [% IF ( TagsInputEnabled ) %]
439 [% IF ( loggedinusername ) %]
440 <span class="actions"><a class="tag_add hidden" id="tag_add[% itemsloo.biblionumber %]" href="#">Add tag</a></span>
441 <div id="tagform[% itemsloo.biblionumber %]" class="tag_results_input" style="display:none;">
442 <label for="newtag[% itemsloo.biblionumber %]">New tag(s), separated by a comma:</label>
443 <input name="newtag[% itemsloo.biblionumber %]" id="newtag[% itemsloo.biblionumber %]" maxlength="100" />
444 <input name="tagbutton" class="tagbutton btn btn-small" title="[% itemsloo.biblionumber %]" type="submit" value="Add" />
445 <a class="cancel_tag_add" id="cancel[% itemsloo.biblionumber %]" href="#">(done)</a>
447 <div id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">
450 [% ELSIF ( loop.first ) %]
451 <span class="tagstatus" id="login4tags">Log in to add tags.</span>
452 [% END # / IF loggedinusername %]
453 [% END # / IF TagsInputEnabled %]
455 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
456 <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>
459 [% IF ( allowremovingitems ) %]
460 <span class="actions"><a class="removefromlist hidden" id="REM-[% itemsloo.biblionumber %]" href="#">Remove from this list</a></span>
463 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
464 [% IF ( itemsloo.incart ) %]
465 <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>
467 <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>
469 [% END # / IF opacbookbag %]
470 </span> <!-- / .results_summary .actions -->
472 <!-- COinS / Openurl -->
473 <span class="Z3988" title="[% itemsloo.coins %]"></span>
476 [% END # / FOREACH itemsloop %]
478 </table> <!-- / #listcontents -->
479 </div><!-- / .searchresults -->
481 [% IF ( pagination_bar ) %]
482 <div class="pages">[% pagination_bar %]</div>
486 <div id="toolbar" class="toolbar clearfix">
487 <div class="list-actions">
488 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep"></span>
489 [% IF ( manageshelf ) %]
490 <span class="sep">|</span>
491 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
492 <input type="hidden" name="op" value="modif" />
493 <input type="hidden" name="display" value="viewshelf" />
494 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
495 <input type="submit" class="editshelf" value="Edit list" />
498 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
499 <input type="hidden" value="1" name="shelves"/>
500 <input type="hidden" value="1" name="DEL-[% shelfnumber | html %]"/>
501 [% IF ( showprivateshelves ) %]
502 <input type="hidden" name="display" value="privateshelves"/>
504 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
506 [% END # / IF manageshelf %]
507 </div> <!-- / .list-actions -->
508 </div> <!-- / #toolbar -->
510 <div class="alert alert-info">
512 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
513 You can add to your lists from the results of any <a href="opac-main.pl">search</a>.
516 [% END # / IF itemsloop %]
517 [% END # / IF viewshelf %]
519 [% IF ( itemsloop && allowremovingitems ) %]
520 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
521 <input type="hidden" name="modifyshelfcontents" value="1" />
522 <input type="hidden" name="viewshelf" value="[% shelfnumber | html %]" /><input type="submit" value="Remove selected items" id="remove-selected" class="btn btn-danger"/>
524 [% ELSIF ( !itemsloop && manageshelf ) %]
525 <form method="post" action="opac-shelves.pl">
526 <input type="hidden" name="DEL-[% shelfnumber | html %]" value="1" />
527 <input type="hidden" name="shelves" value="1" />
528 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
529 <input type="submit" class="btn btn-danger" value="Delete this list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
534 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
535 <input type="hidden" name="op" value="modifsave" />
536 <input type="hidden" name="display" value="[% display |html %]" />
537 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
538 <fieldset class="rows">
539 <legend>Editing <em>[% shelfname |html %]</em></legend>
541 <li><label for="shelfname">List name: </label><input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelfname |html %]" /></li>
543 <label for="sortfield" >Sort this list by: </label>
544 <select name="sortfield" id="sortfield">
545 [% IF ( sortfield == "title" ) %]
546 <option value="title" selected="selected">Title</option>
548 <option value="title">Title</option>
550 [% IF ( sortfield == "author" ) %]
551 <option value="author" selected="selected">Author</option>
553 <option value="author">Author</option>
555 [% IF ( sortfield == "copyrightdate" ) %]
556 <option value="copyrightdate" selected="selected">Year</option>
558 <option value="copyrightdate">Year</option>
560 [% IF ( sortfield == "itemcallnumber" ) %]
561 <option value="itemcallnumber" selected="selected">Call number</option>
563 <option value="itemcallnumber">Call number</option>
567 [% IF ( OpacAllowPublicListCreation || category2 ) %]
569 <label for="category">Category:</label>
570 <select name="category" id="category">
571 [% IF ( category1 ) %]
572 <option value="1" selected="selected">Private</option>
574 <option value="1">Private</option>
576 [% IF ( category2 ) %]
577 <option value="2" selected="selected">Public</option>
579 <option value="2">Public</option>
582 [% IF ( category2 && !OpacAllowPublicListCreation ) %]
583 <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>
586 [% INCLUDE list_permissions %]
589 [% UNLESS ( OpacAllowPublicListCreation || category2 ) %]
590 <input type="hidden" name="category" value="1" />
594 <fieldset class="action">
595 <input type="submit" value="Save" class="btn" />
596 [% IF ( showprivateshelves ) %]
597 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber | html %]&display=privateshelves">Cancel</a>
599 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber | html %]">Cancel</a>
603 [% END # / IF edit %]
606 [% UNLESS ( edit ) %]
607 [% UNLESS ( viewshelf ) %]
608 [% UNLESS ( shelves ) %]
610 <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all">
611 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
612 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
613 [% IF ( showprivateshelves ) %]
614 <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>
616 <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>
619 [% IF ( showpublicshelves ) %]
620 <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>
622 <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>
626 [% IF ( showprivateshelves ) %]
627 <div id="privateshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
629 [% IF ( loggedinusername ) %]
630 <div id="toolbar" class="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
631 [% IF ( showprivateshelves ) %]
632 [% IF ( shelveslooppriv ) %]
633 <table class="table">
643 [% FOREACH shelveslooppri IN shelveslooppriv %]
645 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
646 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
648 [% IF ( shelveslooppri.viewcategory1 ) %][% IF !shelveslooppri.shares %]Private[% ELSE %]Shared[% END %][% END %]
651 [% IF ( shelveslooppri.mine ) %]
652 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
653 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf |html %]" />
654 <input type="hidden" name="display" value="privateshelves" />
655 <input type="hidden" name="op" value="modif" />
656 <input type="submit" class="editshelf" value="Edit" />
658 <form action="opac-shelves.pl" method="post" class="form-inline">
659 <input type="hidden" name="shelves" value="1" />
660 <input type="hidden" name="display" value="privateshelves" />
661 <input type="hidden" name="DEL-[% shelveslooppri.shelf |html %]" value="1" />
662 <input type="hidden" name="shelfoff" value="[% shelfoff |html %]" />
663 [% IF ( shelveslooppri.confirm ) %]
664 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm |html %]" value="1" />
665 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
667 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
670 [% IF Koha.Preference('OpacAllowSharingPrivateLists') %]
671 <a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelveslooppri.shelf |html %]" class="">Share</a>
673 [% ELSE # not shelveslooppri.mine, so shared %]
674 [% INCLUDE remove_share # if pref is off, you should still be able to remove shares %]
675 <input type="hidden" name="shelfoff" value="[% shelfoff |html %]" />
676 <input type="hidden" name="REMSHR-[% shelveslooppri.shelf |html %]" value="1" />
681 [% END # / FOREACH shelveslooppri %]
684 <div class="pages">[% pagination_bar %]</div>
686 <p>No private lists.</p>
687 [% END # / IF shelveslooppriv %]
688 [% END # / IF showprivateshelves %]
690 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
691 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
693 [% END # IF loggedinusername %]
694 </div><!-- / #privateshelves -->
695 [% END # / IF showprivateshelves %]
696 [% IF ( showpublicshelves ) %]
697 <div id="publicshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
699 [% IF ( loggedinusername ) %]
700 <div id="toolbar" class="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
702 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
703 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
705 [% END # / IF loggedinusername %]
707 [% IF ( shelvesloop ) %]
708 <table class="table">
713 <th>Type</th><th> </th>
717 [% FOREACH shelvesloo IN shelvesloop %]
719 <td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
720 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
722 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
725 [% IF ( shelvesloo.mine ) %]
726 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
727 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
728 <input type="hidden" name="op" value="modif" />
729 <input type="hidden" name="display" value="publicshelves" />
730 <input type="submit" class="editshelf" value="Edit" />
732 <form action="opac-shelves.pl" method="post" class="form-inline">
733 <input type="hidden" name="shelves" value="1" />
734 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
735 [% IF ( shelvesloo.confirm ) %]
736 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
737 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
739 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
745 [% END # / FOREACH shelvesloop %]
748 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
750 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
751 [% END # / IF shelvesloop %]
753 </div><!-- / # publicshelves -->
754 [% END # / IF showprivateshelves %]
755 </div> <!-- / .ui-tabs-panel -->
756 [% END # / UNLESS shelves %]
757 [% END # / UNLESS viewshelf %]
758 [% END # / UNLESS edit %]
762 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
763 <fieldset class="rows">
764 <legend>Create a new list</legend>
765 <input type="hidden" name="shelves" value="1" />
768 <label class="required" for="addshelf">List name:</label>
770 <input id="addshelf" type="text" name="addshelf" value="[% already %]" maxlength="255" class="input-fluid" />
772 <input id="addshelf" type="text" name="addshelf" maxlength="255" class="input-fluid" />
774 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
777 <label for="sortfield" >Sort this list by: </label>
778 <select name="sortfield" id="sortfield">
779 <option value="title">Title</option>
780 <option value="author">Author</option>
781 <option value="copyrightdate">Year</option>
782 <option value="itemcallnumber">Call number</option>
785 [% IF (OpacAllowPublicListCreation) %]
787 <label for="category">Category:</label>
788 <select name="category" id="category">
789 <option value="1">Private</option>
790 <option value="2">Public</option>
793 [% INCLUDE list_permissions %]
796 [% UNLESS (OpacAllowPublicListCreation) %]
797 <input type="hidden" name="category" value="1" />
800 <fieldset class="action">
801 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="btn" />
802 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
805 </div> <!-- / #addshelf -->
806 [% END # / IF shelves %]
808 </div> <!-- / #usershelves -->
809 </div> <!-- / .span10/12 -->
810 </div> <!-- / .row-fluid -->
811 </div> <!-- / .container-fluid -->
812 </div> <!-- / .main -->
814 <div class="modal hide" id="modalWin" role="dialog" aria-hidden="true" tabindex="-1">
815 <div class="modal-content">
816 <div class="modal-body">
817 <div style="margin:1em;padding:1em;font-size:150%;">
818 <img src="[% interface %]/[% theme %]/images/loading.gif" /> Loading
825 <div id="debug"></div>
828 [% INCLUDE 'opac-bottom.inc' %]
829 [% BLOCK jsinclude %]
830 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
831 <script type="text/javascript">
833 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
834 var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
835 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
836 var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?");
838 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
839 function holdSelections() {
840 var checkedBoxes = $("input:checkbox:checked");
841 if ($(checkedBoxes).size() == 0) {
842 alert(MSG_NO_RECORD_SELECTED);
845 $(checkedBoxes).each(function(){
846 var name = $(this).attr("name");
847 bib = name.substr(4);
850 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
854 [% IF ( TagsInputEnabled && loggedinusername ) %]
855 function tagSelected() {
856 var checkedBoxes = $("input:checkbox:checked");
857 if ($(checkedBoxes).size()) {
858 $("#tagsel_tag").hide();
859 $(".tag_hides").hide();
860 $("#tagsel_form").show();
862 alert(MSG_NO_RECORD_SELECTED);
866 function tagCanceled() {
867 $("#tagsel_form").hide();
868 $("#tagsel_tag").show();
869 $(".tag_hides").show();
870 $("#tagsel_new").val("");
871 $(".tagstatus").empty().hide();
874 function tagAdded() {
875 var checkedBoxes = $("input:checkbox:checked");
876 if (!$(checkedBoxes).size()) {
877 alert(MSG_NO_RECORD_SELECTED);
881 var tag = $("#tagsel_new").val();
882 if (!tag || (tag == "")) {
883 alert(MSG_NO_TAG_SPECIFIED);
888 for (var i = 0; i < $(checkedBoxes).size(); i++) {
889 var box = $(checkedBoxes).get(i);
890 bibs[i] = $(box).val();
893 KOHA.Tags.add_multitags_button(bibs, tag);
898 function enableCheckboxActions(){
899 // Enable/disable controls if checkboxes are checked
900 var checkedBoxes = $(".checkboxed input:checkbox:checked");
901 if ($(checkedBoxes).size()) {
902 $("#selections").html(_("With selected titles: "));
903 $("#selections-toolbar .links a").removeClass("disabled");
905 $("#selections").html(_("Select titles to: "));
906 $("#selections-toolbar .links a").addClass("disabled");
911 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]$(".addtocart,.cartRemove").removeClass("hidden");[% END %]
912 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
913 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
916 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
917 $("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
918 $("#selections-toolbar a.hold").click(function(){
924 // If JS is enabled add paramter to download link
925 var dialoglink = $(".download").attr("href");
926 dialoglink += "&context=modal";
927 $(".download").attr("href",dialoglink);
929 $("#CheckAll").click(function(){
930 $(".checkboxed").checkCheckboxes();
931 enableCheckboxActions();
934 $("#CheckNone").click(function(){
935 $(".checkboxed").unCheckCheckboxes();
936 enableCheckboxActions();
940 $(".cb").click(function(){
941 enableCheckboxActions();
943 enableCheckboxActions();
945 [% IF ( TagsInputEnabled && loggedinusername ) %]
946 var tagAdd = $(".tag_add");
947 tagAdd.removeClass("hidden");
948 $("#tagsel_tag").click(function(){
952 $("#tagsel_cancel").click(function(){
956 $("#tagsel_button").click(function(){
961 tagAdd.click(function(){
962 var thisid = $(this).attr("id");
963 thisid = thisid.replace("tag_add","");
965 $("#tagform"+thisid).show();
966 $("#newtag"+thisid).focus();
967 $("#newtag"+thisid+"_status").empty().hide();
970 $(".cancel_tag_add").click(function(){
971 var thisid = $(this).attr("id");
972 thisid = thisid.replace("cancel","");
973 $("#tagform"+thisid).hide();
974 $("#tag_add"+thisid).show();
975 $("#newtag"+thisid).val("");
976 $("#newtag"+thisid+"_status").empty().hide();
979 $(".tagbutton").click(function(){
980 var thisid = $(this).attr("title");
981 var tag = $("#newtag"+thisid).val();
982 if (!tag || (tag == "")) {
983 alert(MSG_NO_TAG_SPECIFIED);
986 KOHA.Tags.add_tag_button(thisid, tag);
991 [% IF ( loggedinusername && allowremovingitems ) %]
992 var removeFromListLinks = $(".removefromlist");
993 removeFromListLinks.removeClass("hidden");
994 // "remove from list" appearing on each line of the list output
995 removeFromListLinks.on("click",function(){
996 $(".checkboxed").unCheckCheckboxes();
997 var listitem = $("input[name="+this.id+"]");
998 listitem.prop("checked",true);
999 $("#myform").submit();
1002 $("#myform").submit(function(){
1003 var checkedBoxes = $(".checkboxed input:checkbox:checked");
1004 var numchecked = $(checkedBoxes).size();
1006 if( numchecked > 1 ){
1007 return confirmDelete(MSG_REMOVE_FROM_LIST);
1009 return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
1012 alert(MSG_NO_RECORD_SELECTED);
1016 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
1018 $("#myform").submit();
1022 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1023 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1024 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1025 $('#sort-submit').hide();
1029 setTimeout('window.close()', 1);
1031 }); // document.ready
1034 var _alertString="";
1037 if(f.addshelf.value.length ==0){
1038 _alertString += _("- You must enter a list name") + "\n";
1041 if (_alertString.length==0) {
1044 alertString2 = _("Form not submitted because of the following problem(s)");
1045 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
1046 alertString2 += _alertString;
1047 alert(alertString2);