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' %]
6 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( viewshelf ) %]Contents of [% shelfname |html %][% ELSE %]Your lists[% END %]</title>[% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
9 [% IF ( loggedinusername ) %][% INCLUDE 'bodytag.inc' bodyid='opac-userlists' bodyclass='scrollto' %][% ELSE %][% INCLUDE 'bodytag.inc' bodyid='opac-lists' bodyclass='scrollto' %][% END %]
11 [% BLOCK list_permissions %]
13 <label for="allow_add">Permissions: </label>
14 <select name="allow_add" id="allow_add">
15 [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
16 [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
18 <span>anyone else to add entries. (The owner of a list is always allowed to add entries, but needs permission to remove.)</span>
22 <select name="allow_delete_own" id="allow_delete_own">
23 [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
24 [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
26 <span>anyone to remove his own contributed entries.</span>
30 <select name="allow_delete_other" id="allow_delete_other">
31 [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
32 [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
34 <span>anyone to remove other contributed entries.</span>
37 [% BLOCK remove_share %]
38 [%# Use: add parameter shelfnumber and add end form tag %]
39 <form action="opac-shelves.pl" method="post" class="form-inline">
40 <input type="hidden" name="shelves" value="1" />
41 <input type="hidden" name="display" value="privateshelves" />
42 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);" value="Remove share" />
45 [% INCLUDE 'masthead.inc' %]
47 <ul class="breadcrumb noprint">
48 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
49 [% IF ( loggedinusername ) %]
50 <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>
53 [% IF ( category1 ) %]
54 [% IF ( viewshelf || edit ) %]
55 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
59 [% ELSIF ( category2 ) %]
60 [% IF ( viewshelf || edit ) %]
61 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
65 [% ELSIF ( showprivateshelves ) %]
66 [% IF ( viewshelf || edit ) %]
67 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
71 [% ELSIF ( showpublicshelves ) %]
72 [% IF ( viewshelf || edit || shelves ) %]
73 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
79 [% IF ( viewshelf ) %]
80 <li><span class="divider">›</span> Contents of <i>[% shelfname | html %]</i></li>
84 <li><span class="divider">›</span> Create new list</li>
88 <li><span class="divider">›</span> Edit list <i>[% shelfname | html %]</i></li>
91 </ul> <!-- / .breadcrumb -->
93 <div class="container-fluid">
94 <div class="row-fluid">
95 [% IF ( OpacNav||loggedinusername ) && !print %]
98 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
103 [% IF ( OpacNav||loggedinusername ) %]
108 <div id="usershelves" class="maincontent">
110 [% IF ( paramsloop ) %]
111 [% FOREACH paramsloo IN paramsloop %]
112 [% IF ( paramsloo.already ) %]<div class="alert">A list named <b>[% paramsloo.already %]</b> already exists!</div>[% END %]
113 [% 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 %]
114 [% IF ( paramsloo.status ) %]<div class="alert">[% paramsloo.string %]</div>[% END %]
115 [% IF ( paramsloo.nobarcode ) %]<div class="alert">ERROR: No barcode given.</div>[% END %]
116 [% IF ( paramsloo.noshelfnumber ) %]<div class="alert">ERROR: No shelfnumber given.</div>[% END %]
117 [% IF ( paramsloo.need_confirm ) %]
119 The list <i>[% paramsloo.need_confirm %]</i> is not empty.
120 <br />It has <b>[% paramsloo.count %]</b> [% IF ( paramsloo.single ) %]entry[% ELSE %]entries[% END %].
121 <br />Use the "Confirm" button below to confirm deletion.
124 [% IF ( paramsloo.nopermission ) %]
125 <div class="alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission |html%].</div>
127 [% IF ( paramsloo.failgetitem ) %]
128 <div class="alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
130 [% IF ( paramsloo.duplicatebiblio ) %]
131 <div class="alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
133 [% IF ( paramsloo.delete_ok ) %]
134 <div class="alert alert-info">List [% paramsloo.delete_ok |html %] Deleted.</div>
136 [% IF ( paramsloo.delete_fail ) %]
137 <div class="alert alert-info">ERROR: Database error. Delete (list number [% paramsloo.delete_fail |html %]) failed.</div>
139 [% IF ( paramsloo.unrecognized ) %]
140 <div class="alert alert-info">ERROR: List number [% paramsloo.unrecognized %] unrecognized.</div>
142 [% IF ( paramsloo.modifyfailure) %]
143 <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>
145 [% IF ( paramsloo.nothingdeleted) %]
146 <div class="alert alert-info">Warning: You could not delete any selected items from this shelf.</div>
148 [% IF ( paramsloo.somedeleted) %]
149 <div class="alert alert-info">Warning: You could not delete all selected items from this shelf.</div>
151 [% END # / FOREACH paramsloop %]
152 [% END # / IF paramsloop %]
154 [% IF ( viewshelf ) %]<!-- Viewing a particular shelf -->
156 [% shelfname |html %]
157 <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-shelves.pl?rss=1&viewshelf=[% shelfnumber %]" class="rss-list-link noprint">
158 <img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this list" title="Subscribe to this list" border="0" class="rsssearchicon"/>
162 [% IF ( itemsloop ) %]
163 <div id="toolbar" class="toolbar clearfix">
164 <div class="list-actions">
165 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep">|</span>
166 <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>
168 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
169 <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>
172 <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>
174 [% IF ( manageshelf ) %]
175 <span class="sep">|</span>
176 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
177 <input type="hidden" name="op" value="modif" />
178 <input type="hidden" name="display" value="viewshelf" />
179 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
180 <input type="submit" class="editshelf" value="Edit list" />
183 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
184 <input type="hidden" value="1" name="shelves"/>
185 <input type="hidden" value="1" name="DEL-[% shelfnumber | html %]"/>
186 [% IF ( showprivateshelves ) %]
187 <input type="hidden" name="display" value="privateshelves"/>
189 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
191 [% IF showprivateshelves && Koha.Preference('OpacAllowSharingPrivateLists') %]
192 <a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelfnumber | html %]" class="">Share list</a>
194 [% ELSIF showprivateshelves # not manageshelf and private means shared %]
195 [% INCLUDE remove_share %]
196 <input type="hidden" name="REMSHR-[% shelfnumber | html %]" value="1" />
198 [% END # / IF manageshelf %]
201 <form action="/cgi-bin/koha/opac-shelves.pl" id="sorting-form" class="form-inline sort_by pull-right">
202 <input type="hidden" name="viewshelf" value="[% shelfnumber | html %]" />
204 <label for="sort">Sort by: </label>
205 <select name="sort" id="sort" class="resort" onchange="$('#sorting-form').submit()">
206 <option value="">Default sorting</option>
208 [% IF sort == 'author' %]
209 <option value="author" selected="selected">Author</option>
211 <option value="author">Author</option>
214 [% IF sort == 'title' %]
215 <option value="title" selected="selected">Title</option>
217 <option value="title">Title</option>
220 [% IF sort == 'itemcallnumber' %]
221 <option value="itemcallnumber" selected="selected">Call number</option>
223 <option value="itemcallnumber">Call number</option>
226 [% IF sort == 'copyrightdate' %]
227 <option value="copyrightdate" selected="selected">Copyright date</option>
229 <option value="copyrightdate">Copyright date</option>
233 <select name="direction" class="resort" onchange="$('#sorting-form').submit()">
234 [% IF direction == 'asc' %]
235 <option value="asc" selected="selected">Ascending</option>
237 <option value="asc">Ascending</option>
240 [% IF direction == 'desc' %]
241 <option value="desc" selected="selected">Descending</option>
243 <option value="desc">Descending</option>
247 <input type="submit" class="btn btn-small" id="sort-submit" value="Resort list" />
250 </div> <!-- / #toolbar -->
252 <div id="selections-toolbar" class="toolbar noprint">
253 <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span>
255 <span id="selections">Select titles to: </span>
256 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
257 <span id="placehold"></span>
259 [% IF ( TagsInputEnabled && loggedinusername ) %]
261 <a id="tagsel_tag" href="#" class="disabled">Tag</a>
263 <span id="tagsel_form" style="display:none">
264 <label for="tagsel_new">New tag(s), separated by a comma:</label>
265 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
266 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="tagsel_button" type="submit" value="Add" />
267 <a href="#" id="tagsel_cancel">Cancel</a>
270 [% IF ( loggedinusername && allowremovingitems ) %]
271 <span id="removeitems"></span>
273 </span> <!-- / .links -->
274 </div> <!-- / #selections-toolbar -->
276 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed">
277 [% IF ( manageshelf ) %]
278 <input type="hidden" name="viewshelf" value="[% shelfnumber | html %]" />
279 <input type="hidden" name="modifyshelfcontents" value="1" />
281 <div class="searchresults">
282 <table id="listcontents" class="table">
284 [% FOREACH itemsloo IN itemsloop %]
286 <td class="select selectcol"><input type="checkbox" class="cb" name="REM-[% itemsloo.biblionumber %]" value="[% itemsloo.biblionumber %]" /></td>
287 [% UNLESS ( item_level_itypes ) %]
289 [% UNLESS ( noItemTypeImages ) %]
290 <img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />
292 [% itemsloo.description %]
296 <div class="coverimages">
297 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber %]">
298 [% IF ( OPACLocalCoverImages ) %]
299 <span title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
302 [% IF ( OPACAmazonCoverImages ) %]
303 [% IF ( itemsloo.normalized_isbn ) %]
304 <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>
306 <span class="no-image">No cover image available</span>
310 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
311 [% IF ( using_https ) %]
312 <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>
314 <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>
318 [% IF ( GoogleJackets ) %]
319 [% IF ( itemsloo.normalized_isbn ) %]
320 <div title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
322 <span class="no-image">No cover image available</span>
326 [% IF OpenLibraryCovers %]
327 [% IF itemsloo.normalized_isbn %]
328 <span title="[% itemsloo.biblionumber %]" class="[% itemsloo.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>
330 <span class="no-image">No cover image available</span>
335 [% IF ( BakerTaylorEnabled ) %]
336 [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
338 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
340 <span class="no-image">No cover image available</span>
344 [% IF ( itemsloo.XSLTBloc ) %]
345 [% itemsloo.XSLTBloc %]
348 [% IF ( itemsloo.BiblioDefaultViewmarc ) %]
349 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
351 [% IF ( itemsloo.BiblioDefaultViewisbd ) %]
352 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
354 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
358 [% IF ( itemsloo.title ) %]
359 [% itemsloo.title |html %]
364 [% FOREACH subtitl IN itemsloo.subtitle %]
365 [% subtitl.subfield|html %]
369 [% IF ( itemsloo.author ) %]
370 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>
375 <span class="results_summary">
376 <span class="label">Publication:</span>
377 [% IF ( itemsloo.place ) %]
380 [% IF ( itemsloo.publishercode ) %]
381 [% itemsloo.publishercode|html %]
383 [% IF ( itemsloo.publicationyear ) %]
384 [% itemsloo.publicationyear %]
386 [% IF ( itemsloo.copyrightdate ) %]
387 [% itemsloo.copyrightdate %]
390 [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %]
391 [% IF ( itemsloo.notes ) %], [% itemsloo.notes|html %][% END %]
392 [% IF ( itemsloo.item('size') ) %] [% itemsloo.item('size') %][% END %]
394 <span class="results_summary">
395 <span class="label">Holdings:</span>
396 [% IF ( itemsloo.ITEM_RESULTS ) %]
397 [% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %]
398 [% ITEM_RESULT.homebranch %]
399 [% IF ( ITEM_RESULT.location_opac ) %]
400 , [% ITEM_RESULT.location_opac %]
402 [% IF ( ITEM_RESULT.itemcallnumber ) %]
403 ([% ITEM_RESULT.itemcallnumber %])
404 [% IF ( loop.last ) %].[% ELSE %],[% END %]
408 This record has no items.
411 [% END # / IF itemsloo.XSLTBloc %]
413 [% IF ( TagsShowEnabled && itemsloo.TagLoop.size ) %]
414 <div class="results_summary tags">
415 <span class="label">Tags:</span>
417 [% FOREACH TagLoo IN itemsloo.TagLoop %]
418 <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>
424 <span class="results_summary">
426 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
427 [% UNLESS ( itemsloo.norequests ) %]
428 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
429 [% IF ( itemsloo.allow_onshelf_holds ) %]
430 <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>
432 [% IF ( itemsloo.itemsissued ) %]
433 <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>
436 [% END # / IF opacuserlogin %]
437 [% END # / UNLESS itemsloo.norequests %]
438 [% END # / RequestOnOpac %]
440 [% IF ( TagsInputEnabled ) %]
441 [% IF ( loggedinusername ) %]
442 <span class="actions"><a class="tag_add hidden" id="tag_add[% itemsloo.biblionumber %]" href="#">Add tag</a></span>
443 <div id="tagform[% itemsloo.biblionumber %]" class="tag_results_input" style="display:none;">
444 <label for="newtag[% itemsloo.biblionumber %]">New tag(s), separated by a comma:</label>
445 <input name="newtag[% itemsloo.biblionumber %]" id="newtag[% itemsloo.biblionumber %]" maxlength="100" />
446 <input name="tagbutton" class="tagbutton btn btn-small" title="[% itemsloo.biblionumber %]" type="submit" value="Add" />
447 <a class="cancel_tag_add" id="cancel[% itemsloo.biblionumber %]" href="#">(done)</a>
449 <div id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">
452 [% ELSIF ( loop.first ) %]
453 <span class="tagstatus" id="login4tags">Log in to add tags.</span>
454 [% END # / IF loggedinusername %]
455 [% END # / IF TagsInputEnabled %]
457 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
458 <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>
461 [% IF ( allowremovingitems ) %]
462 <span class="actions"><a class="removefromlist hidden" id="REM-[% itemsloo.biblionumber %]" href="#">Remove from this list</a></span>
465 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
466 [% IF ( itemsloo.incart ) %]
467 <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>
469 <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>
471 [% END # / IF opacbookbag %]
472 </span> <!-- / .results_summary .actions -->
474 <!-- COinS / Openurl -->
475 <span class="Z3988" title="[% itemsloo.coins %]"></span>
478 [% END # / FOREACH itemsloop %]
480 </table> <!-- / #listcontents -->
481 </div><!-- / .searchresults -->
483 [% IF ( pagination_bar ) %]
484 <div class="pages">[% pagination_bar %]</div>
488 <div id="toolbar" class="toolbar clearfix">
489 <div class="list-actions">
490 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep"></span>
491 [% IF ( manageshelf ) %]
492 <span class="sep">|</span>
493 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
494 <input type="hidden" name="op" value="modif" />
495 <input type="hidden" name="display" value="viewshelf" />
496 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
497 <input type="submit" class="editshelf" value="Edit list" />
500 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
501 <input type="hidden" value="1" name="shelves"/>
502 <input type="hidden" value="1" name="DEL-[% shelfnumber | html %]"/>
503 [% IF ( showprivateshelves ) %]
504 <input type="hidden" name="display" value="privateshelves"/>
506 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
508 [% END # / IF manageshelf %]
509 </div> <!-- / .list-actions -->
510 </div> <!-- / #toolbar -->
512 <div class="alert alert-info">
514 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
515 You can add to your lists from the results of any <a href="opac-main.pl">search</a>.
518 [% END # / IF itemsloop %]
519 [% END # / IF viewshelf %]
521 [% IF ( itemsloop && allowremovingitems ) %]
522 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
523 <input type="hidden" name="modifyshelfcontents" value="1" />
524 <input type="hidden" name="viewshelf" value="[% shelfnumber | html %]" /><input type="submit" value="Remove selected items" id="remove-selected" class="btn btn-danger"/>
526 [% ELSIF ( !itemsloop && manageshelf ) %]
527 <form method="post" action="opac-shelves.pl">
528 <input type="hidden" name="DEL-[% shelfnumber | html %]" value="1" />
529 <input type="hidden" name="shelves" value="1" />
530 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
531 <input type="submit" class="btn btn-danger" value="Delete this list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
536 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
537 <input type="hidden" name="op" value="modifsave" />
538 <input type="hidden" name="display" value="[% display |html %]" />
539 <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />
540 <fieldset class="rows">
541 <legend>Editing <em>[% shelfname |html %]</em></legend>
543 <li><label for="shelfname">List name: </label><input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelfname |html %]" /></li>
545 <label for="sortfield" >Sort this list by: </label>
546 <select name="sortfield" id="sortfield">
547 [% IF ( sortfield == "title" ) %]
548 <option value="title" selected="selected">Title</option>
550 <option value="title">Title</option>
552 [% IF ( sortfield == "author" ) %]
553 <option value="author" selected="selected">Author</option>
555 <option value="author">Author</option>
557 [% IF ( sortfield == "copyrightdate" ) %]
558 <option value="copyrightdate" selected="selected">Year</option>
560 <option value="copyrightdate">Year</option>
562 [% IF ( sortfield == "itemcallnumber" ) %]
563 <option value="itemcallnumber" selected="selected">Call number</option>
565 <option value="itemcallnumber">Call number</option>
569 [% IF ( OpacAllowPublicListCreation || category2 ) %]
571 <label for="category">Category:</label>
572 <select name="category" id="category">
573 [% IF ( category1 ) %]
574 <option value="1" selected="selected">Private</option>
576 <option value="1">Private</option>
578 [% IF ( category2 ) %]
579 <option value="2" selected="selected">Public</option>
581 <option value="2">Public</option>
584 [% IF ( category2 && !OpacAllowPublicListCreation ) %]
585 <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>
588 [% INCLUDE list_permissions %]
591 [% UNLESS ( OpacAllowPublicListCreation || category2 ) %]
592 <input type="hidden" name="category" value="1" />
596 <fieldset class="action">
597 <input type="submit" value="Save" class="btn" />
598 [% IF ( showprivateshelves ) %]
599 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber | html %]&display=privateshelves">Cancel</a>
601 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber | html %]">Cancel</a>
605 [% END # / IF edit %]
608 [% UNLESS ( edit ) %]
609 [% UNLESS ( viewshelf ) %]
610 [% UNLESS ( shelves ) %]
612 <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all">
613 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
614 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
615 [% IF ( showprivateshelves ) %]
616 <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>
618 <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>
621 [% IF ( showpublicshelves ) %]
622 <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>
624 <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>
628 [% IF ( showprivateshelves ) %]
629 <div id="privateshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
631 [% IF ( loggedinusername ) %]
632 <div id="toolbar" class="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
633 [% IF ( showprivateshelves ) %]
634 [% IF ( shelveslooppriv ) %]
635 <table class="table">
645 [% FOREACH shelveslooppri IN shelveslooppriv %]
647 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
648 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
650 [% IF ( shelveslooppri.viewcategory1 ) %][% IF !shelveslooppri.shares %]Private[% ELSE %]Shared[% END %][% END %]
653 [% IF ( shelveslooppri.mine ) %]
654 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
655 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf |html %]" />
656 <input type="hidden" name="display" value="privateshelves" />
657 <input type="hidden" name="op" value="modif" />
658 <input type="submit" class="editshelf" value="Edit" />
660 <form action="opac-shelves.pl" method="post" class="form-inline">
661 <input type="hidden" name="shelves" value="1" />
662 <input type="hidden" name="display" value="privateshelves" />
663 <input type="hidden" name="DEL-[% shelveslooppri.shelf |html %]" value="1" />
664 <input type="hidden" name="shelfoff" value="[% shelfoff |html %]" />
665 [% IF ( shelveslooppri.confirm ) %]
666 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm |html %]" value="1" />
667 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
669 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
672 [% IF Koha.Preference('OpacAllowSharingPrivateLists') %]
673 <a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelveslooppri.shelf |html %]" class="">Share</a>
675 [% ELSE # not shelveslooppri.mine, so shared %]
676 [% INCLUDE remove_share # if pref is off, you should still be able to remove shares %]
677 <input type="hidden" name="shelfoff" value="[% shelfoff |html %]" />
678 <input type="hidden" name="REMSHR-[% shelveslooppri.shelf |html %]" value="1" />
683 [% END # / FOREACH shelveslooppri %]
686 <div class="pages">[% pagination_bar %]</div>
688 <p>No private lists.</p>
689 [% END # / IF shelveslooppriv %]
690 [% END # / IF showprivateshelves %]
692 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
693 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
695 [% END # IF loggedinusername %]
696 </div><!-- / #privateshelves -->
697 [% END # / IF showprivateshelves %]
698 [% IF ( showpublicshelves ) %]
699 <div id="publicshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
701 [% IF ( loggedinusername ) %]
702 <div id="toolbar" class="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
704 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
705 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
707 [% END # / IF loggedinusername %]
709 [% IF ( shelvesloop ) %]
710 <table class="table">
715 <th>Type</th><th> </th>
719 [% FOREACH shelvesloo IN shelvesloop %]
721 <td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
722 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
724 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
727 [% IF ( shelvesloo.mine ) %]
728 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
729 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
730 <input type="hidden" name="op" value="modif" />
731 <input type="hidden" name="display" value="publicshelves" />
732 <input type="submit" class="editshelf" value="Edit" />
734 <form action="opac-shelves.pl" method="post" class="form-inline">
735 <input type="hidden" name="shelves" value="1" />
736 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
737 [% IF ( shelvesloo.confirm ) %]
738 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
739 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
741 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
747 [% END # / FOREACH shelvesloop %]
750 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
752 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
753 [% END # / IF shelvesloop %]
755 </div><!-- / # publicshelves -->
756 [% END # / IF showprivateshelves %]
757 </div> <!-- / .ui-tabs-panel -->
758 [% END # / UNLESS shelves %]
759 [% END # / UNLESS viewshelf %]
760 [% END # / UNLESS edit %]
764 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
765 <fieldset class="rows">
766 <legend>Create a new list</legend>
767 <input type="hidden" name="shelves" value="1" />
770 <label class="required" for="addshelf">List name:</label>
772 <input id="addshelf" type="text" name="addshelf" value="[% already %]" maxlength="255" class="input-fluid" />
774 <input id="addshelf" type="text" name="addshelf" maxlength="255" class="input-fluid" />
776 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
779 <label for="sortfield" >Sort this list by: </label>
780 <select name="sortfield" id="sortfield">
781 <option value="title">Title</option>
782 <option value="author">Author</option>
783 <option value="copyrightdate">Year</option>
784 <option value="itemcallnumber">Call number</option>
787 [% IF (OpacAllowPublicListCreation) %]
789 <label for="category">Category:</label>
790 <select name="category" id="category">
791 <option value="1">Private</option>
792 <option value="2">Public</option>
795 [% INCLUDE list_permissions %]
798 [% UNLESS (OpacAllowPublicListCreation) %]
799 <input type="hidden" name="category" value="1" />
802 <fieldset class="action">
803 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="btn" />
804 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
807 </div> <!-- / #addshelf -->
808 [% END # / IF shelves %]
810 </div> <!-- / #usershelves -->
811 </div> <!-- / .span10/12 -->
812 </div> <!-- / .row-fluid -->
813 </div> <!-- / .container-fluid -->
814 </div> <!-- / .main -->
816 <div class="modal hide" id="modalWin" role="dialog" aria-hidden="true" tabindex="-1">
817 <div class="modal-content">
818 <div class="modal-body">
819 <div style="margin:1em;padding:1em;font-size:150%;">
820 <img src="[% interface %]/[% theme %]/images/loading.gif" /> Loading
827 <div id="debug"></div>
830 [% INCLUDE 'opac-bottom.inc' %]
831 [% BLOCK jsinclude %]
832 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
833 <script type="text/javascript">
835 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
836 var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
837 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
838 var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?");
840 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
841 function holdSelections() {
842 var checkedBoxes = $("input:checkbox:checked");
843 if ($(checkedBoxes).size() == 0) {
844 alert(MSG_NO_RECORD_SELECTED);
847 $(checkedBoxes).each(function(){
848 var name = $(this).attr("name");
849 bib = name.substr(4);
852 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
856 [% IF ( TagsInputEnabled && loggedinusername ) %]
857 function tagSelected() {
858 var checkedBoxes = $("input:checkbox:checked");
859 if ($(checkedBoxes).size()) {
860 $("#tagsel_tag").hide();
861 $(".tag_hides").hide();
862 $("#tagsel_form").show();
864 alert(MSG_NO_RECORD_SELECTED);
868 function tagCanceled() {
869 $("#tagsel_form").hide();
870 $("#tagsel_tag").show();
871 $(".tag_hides").show();
872 $("#tagsel_new").val("");
873 $(".tagstatus").empty().hide();
876 function tagAdded() {
877 var checkedBoxes = $("input:checkbox:checked");
878 if (!$(checkedBoxes).size()) {
879 alert(MSG_NO_RECORD_SELECTED);
883 var tag = $("#tagsel_new").val();
884 if (!tag || (tag == "")) {
885 alert(MSG_NO_TAG_SPECIFIED);
890 for (var i = 0; i < $(checkedBoxes).size(); i++) {
891 var box = $(checkedBoxes).get(i);
892 bibs[i] = $(box).val();
895 KOHA.Tags.add_multitags_button(bibs, tag);
900 function enableCheckboxActions(){
901 // Enable/disable controls if checkboxes are checked
902 var checkedBoxes = $(".checkboxed input:checkbox:checked");
903 if ($(checkedBoxes).size()) {
904 $("#selections").html(_("With selected titles: "));
905 $("#selections-toolbar .links a").removeClass("disabled");
907 $("#selections").html(_("Select titles to: "));
908 $("#selections-toolbar .links a").addClass("disabled");
913 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]$(".addtocart,.cartRemove").removeClass("hidden");[% END %]
914 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
915 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
918 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
919 $("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
920 $("#selections-toolbar a.hold").click(function(){
926 // If JS is enabled add paramter to download link
927 var dialoglink = $(".download").attr("href");
928 dialoglink += "&context=modal";
929 $(".download").attr("href",dialoglink);
931 $("#CheckAll").click(function(){
932 $(".checkboxed").checkCheckboxes();
933 enableCheckboxActions();
936 $("#CheckNone").click(function(){
937 $(".checkboxed").unCheckCheckboxes();
938 enableCheckboxActions();
942 $(".cb").click(function(){
943 enableCheckboxActions();
945 enableCheckboxActions();
947 [% IF ( TagsInputEnabled && loggedinusername ) %]
948 var tagAdd = $(".tag_add");
949 tagAdd.removeClass("hidden");
950 $("#tagsel_tag").click(function(){
954 $("#tagsel_cancel").click(function(){
958 $("#tagsel_button").click(function(){
963 tagAdd.click(function(){
964 var thisid = $(this).attr("id");
965 thisid = thisid.replace("tag_add","");
967 $("#tagform"+thisid).show();
968 $("#newtag"+thisid).focus();
969 $("#newtag"+thisid+"_status").empty().hide();
972 $(".cancel_tag_add").click(function(){
973 var thisid = $(this).attr("id");
974 thisid = thisid.replace("cancel","");
975 $("#tagform"+thisid).hide();
976 $("#tag_add"+thisid).show();
977 $("#newtag"+thisid).val("");
978 $("#newtag"+thisid+"_status").empty().hide();
981 $(".tagbutton").click(function(){
982 var thisid = $(this).attr("title");
983 var tag = $("#newtag"+thisid).val();
984 if (!tag || (tag == "")) {
985 alert(MSG_NO_TAG_SPECIFIED);
988 KOHA.Tags.add_tag_button(thisid, tag);
993 [% IF ( loggedinusername && allowremovingitems ) %]
994 var removeFromListLinks = $(".removefromlist");
995 removeFromListLinks.removeClass("hidden");
996 // "remove from list" appearing on each line of the list output
997 removeFromListLinks.on("click",function(){
998 $(".checkboxed").unCheckCheckboxes();
999 var listitem = $("input[name="+this.id+"]");
1000 listitem.prop("checked",true);
1001 $("#myform").submit();
1004 $("#myform").submit(function(){
1005 var checkedBoxes = $(".checkboxed input:checkbox:checked");
1006 var numchecked = $(checkedBoxes).size();
1008 if( numchecked > 1 ){
1009 return confirmDelete(MSG_REMOVE_FROM_LIST);
1011 return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
1014 alert(MSG_NO_RECORD_SELECTED);
1018 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
1020 $("#myform").submit();
1024 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1025 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1026 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1027 $('#sort-submit').hide();
1031 setTimeout('window.close()', 1);
1033 }); // document.ready
1036 var _alertString="";
1039 if(f.addshelf.value.length ==0){
1040 _alertString += _("- You must enter a list name") + "\n";
1043 if (_alertString.length==0) {
1046 alertString2 = _("Form not submitted because of the following problem(s)");
1047 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
1048 alertString2 += _alertString;
1049 alert(alertString2);