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="permissions">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>
37 [% INCLUDE 'masthead.inc' %]
39 <ul class="breadcrumb">
40 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
41 [% IF ( loggedinusername ) %]
42 <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>
45 [% IF ( category1 ) %]
46 [% IF ( viewshelf || edit ) %]
47 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
51 [% ELSIF ( category2 ) %]
52 [% IF ( viewshelf ) %]
53 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
57 [% ELSIF ( showprivateshelves ) %]
58 [% IF ( viewshelf || edit ) %]
59 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your lists</a></li>
63 [% ELSIF ( showpublicshelves ) %]
64 [% IF ( viewshelf || edit ) %]
65 <li><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public lists</a></li>
71 [% IF ( viewshelf ) %]
72 <li><span class="divider">›</span> Contents of <i>[% shelfname | html %]</i></li>
76 <li><span class="divider">›</span> Create new list</li>
80 <li><span class="divider">›</span> Edit list <i>[% shelfname | html %]</i></li>
83 </ul> <!-- / .breadcrumb -->
85 <div class="container-fluid">
86 <div class="row-fluid">
87 [% IF ( OpacNav||loggedinusername ) %]
90 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
95 [% IF ( OpacNav||loggedinusername ) %]
100 <div id="usershelves" class="maincontent">
102 [% IF ( paramsloop ) %]
103 [% FOREACH paramsloo IN paramsloop %]
104 [% IF ( paramsloo.already ) %]<div class="alert">A list named <b>[% paramsloo.already %]</b> already exists!</div>[% END %]
105 [% IF ( paramsloo.status ) %]<div class="alert">[% paramsloo.string %]</div>[% END %]
106 [% IF ( paramsloo.nobarcode ) %]<div class="alert">ERROR: No barcode given.</div>[% END %]
107 [% IF ( paramsloo.noshelfnumber ) %]<div class="alert">ERROR: No shelfnumber given.</div>[% END %]
108 [% IF ( paramsloo.need_confirm ) %]
110 The list <i>[% paramsloo.need_confirm %]</i> is not empty.
111 <br />It has <b>[% paramsloo.count %]</b> [% IF ( paramsloo.single ) %]entry[% ELSE %]entries[% END %].
112 <br />Use the "Confirm" button below to confirm deletion.
115 [% IF ( paramsloo.nopermission ) %]
116 <div class="alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission |html%].</div>
118 [% IF ( paramsloo.failgetitem ) %]
119 <div class="alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
121 [% IF ( paramsloo.duplicatebiblio ) %]
122 <div class="alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
124 [% IF ( paramsloo.delete_ok ) %]
125 <div class="alert alert-info">List [% paramsloo.delete_ok %] Deleted.</div>
127 [% IF ( paramsloo.delete_fail ) %]
128 <div class="alert alert-info">ERROR: Database error. Delete (list number [% paramsloo.delete_fail %]) failed.</div>
130 [% IF ( paramsloo.unrecognized ) %]
131 <div class="alert alert-info">ERROR: List number [% paramsloo.unrecognized %] unrecognized.</div>
133 [% IF ( paramsloo.modifyfailure) %]
134 <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>
136 [% IF ( paramsloo.nothingdeleted) %]
137 <div class="alert alert-info">Warning: You could not delete any selected items from this shelf.</div>
139 [% IF ( paramsloo.somedeleted) %]
140 <div class="alert alert-info">Warning: You could not delete all selected items from this shelf.</div>
142 [% END # / FOREACH paramsloop %]
143 [% END # / IF paramsloop %]
145 [% IF ( viewshelf ) %]<!-- Viewing a particular shelf -->
146 <h3>[% shelfname |html %]</h3>
147 [% IF ( itemsloop ) %]
148 <div id="toolbar" class="toolbar clearfix">
149 <div class="list-actions">
150 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep">|</span>
151 <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]" class="download" onclick="open(CGIBIN+'opac-downloadshelf.pl?shelfid=[% shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false;">Download list</a>
153 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
154 <span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber %]" class="send" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=[% shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send list</a></span>
157 <a class="print-small" href="/cgi-bin/koha/opac-shelves.pl" onclick="print(); return false;">Print list</a>
159 [% IF ( manageshelf ) %]
160 <span class="sep">|</span>
161 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
162 <input type="hidden" name="op" value="modif" />
163 <input type="hidden" name="display" value="viewshelf" />
164 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
165 <input type="submit" class="editshelf" value="Edit list" />
168 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
169 <input type="hidden" value="1" name="shelves"/>
170 <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
171 [% IF ( showprivateshelves ) %]
172 <input type="hidden" name="display" value="privateshelves"/>
174 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
176 [% END # / IF manageshelf %]
179 <form action="/cgi-bin/koha/opac-shelves.pl" id="sorting-form" class="form-inline sort_by pull-right">
180 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
182 <label for="sort">Sort by: </label>
183 <select name="sort" id="sort" class="resort" onchange="$('#sorting-form').submit()">
184 <option value="">Default sorting</option>
186 [% IF sort == 'author' %]
187 <option value="author" selected="selected">Author</option>
189 <option value="author">Author</option>
192 [% IF sort == 'title' %]
193 <option value="title" selected="selected">Title</option>
195 <option value="title">Title</option>
198 [% IF sort == 'itemcallnumber' %]
199 <option value="itemcallnumber" selected="selected">Call number</option>
201 <option value="itemcallnumber">Call number</option>
204 [% IF sort == 'copyrightdate' %]
205 <option value="copyrightdate" selected="selected">Copyright date</option>
207 <option value="copyrightdate">Copyright date</option>
211 <select name="direction" class="resort" onchange="$('#sorting-form').submit()">
212 [% IF direction == 'asc' %]
213 <option value="asc" selected="selected">Ascending</option>
215 <option value="asc">Ascending</option>
218 [% IF direction == 'desc' %]
219 <option value="desc" selected="selected">Descending</option>
221 <option value="desc">Descending</option>
225 <input type="submit" class="btn btn-small" id="sort-submit" value="Resort list" />
228 </div> <!-- / #toolbar -->
230 <div id="selections-toolbar" class="toolbar">
231 <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span>
233 <span id="selections">Select titles to: </span>
234 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
235 <span id="placehold"></span>
237 [% IF ( TagsInputEnabled && loggedinusername ) %]
239 <a id="tagsel_tag" href="#" class="disabled">Tag</a>
241 <span id="tagsel_form" style="display:none">
242 <label for="tagsel_new">New tag(s), separated by a comma:</label>
243 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
244 <input id="tagsel_button" name="tagsel_button" class="tagsel_button btn btn-small" title="tagsel_button" type="submit" value="Add" />
245 <a href="#" id="tagsel_cancel">Cancel</a>
248 [% IF ( loggedinusername && allowremovingitems ) %]
249 <span id="removeitems"></span>
251 </span> <!-- / .links -->
252 </div> <!-- / #selections-toolbar -->
254 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed">
255 [% IF ( manageshelf ) %]
256 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
257 <input type="hidden" name="modifyshelfcontents" value="1" />
259 <div class="searchresults">
260 <table id="listcontents" class="table">
262 [% FOREACH itemsloo IN itemsloop %]
264 <td class="select selectcol"><input type="checkbox" class="cb" name="REM-[% itemsloo.biblionumber %]" value="[% itemsloo.biblionumber %]" /></td>
265 [% UNLESS ( item_level_itypes ) %]
267 [% UNLESS ( noItemTypeImages ) %]
268 <img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />
270 [% itemsloo.description %]
274 <div class="coverimages">
275 <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber %]">
276 [% IF ( OPACLocalCoverImages ) %]
277 <span title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
280 [% IF ( OPACAmazonCoverImages ) %]
281 [% IF ( itemsloo.normalized_isbn ) %]
282 <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>
284 <span class="no-image">No cover image available</span>
288 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
289 [% IF ( using_https ) %]
290 <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>
292 <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>
296 [% IF ( GoogleJackets ) %]
297 [% IF ( itemsloo.normalized_isbn ) %]
298 <div title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
300 <span class="no-image">No cover image available</span>
304 [% IF OpenLibraryCovers %]
305 [% IF itemsloo.normalized_isbn %]
306 <span title="[% itemsloo.biblionumber %]" class="[% itemsloo.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></span>
308 <span class="no-image">No cover image available</span>
313 [% IF ( BakerTaylorEnabled ) %]
314 [% IF ( itemsloo.normalized_isbn ) %]
315 <a href="https://[% BakerTaylorBookstoreURL |html %][% itemsloo.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% itemsloo.normalized_isbn %]" /></a>
317 <span class="no-image">No cover image available</span>
321 [% IF ( itemsloo.XSLTBloc ) %]
322 [% itemsloo.XSLTBloc %]
325 [% IF ( itemsloo.BiblioDefaultViewmarc ) %]
326 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
328 [% IF ( itemsloo.BiblioDefaultViewisbd ) %]
329 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
331 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]" title="View details for this title">
335 [% IF ( itemsloo.title ) %]
336 [% itemsloo.title |html %]
341 [% FOREACH subtitl IN itemsloo.subtitle %]
342 [% subtitl.subfield|html %]
346 [% IF ( itemsloo.author ) %]
347 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>
352 <span class="results_summary">
353 <span class="label">Publication:</span>
354 [% IF ( itemsloo.place ) %]
357 [% IF ( itemsloo.publishercode ) %]
358 [% itemsloo.publishercode|html %]
360 [% IF ( itemsloo.publicationyear ) %]
361 [% itemsloo.publicationyear %]
363 [% IF ( itemsloo.copyrightdate ) %]
364 [% itemsloo.copyrightdate %]
367 [% IF ( itemsloo.pages ) %]. [% itemsloo.pages %][% END %]
368 [% IF ( itemsloo.notes ) %], [% itemsloo.notes|html %][% END %]
369 [% IF ( itemsloo.size ) %] [% itemsloo.size %][% END %]
371 <span class="results_summary">
372 <span class="label">Holdings:</span>
373 [% IF ( itemsloo.ITEM_RESULTS ) %]
374 [% FOREACH ITEM_RESULT IN itemsloo.ITEM_RESULTS %]
375 [% ITEM_RESULT.homebranch %]
376 [% IF ( ITEM_RESULT.location_opac ) %]
377 , [% ITEM_RESULT.location_opac %]
379 [% IF ( ITEM_RESULT.itemcallnumber ) %]
380 ([% ITEM_RESULT.itemcallnumber %])
381 [% IF ( loop.last ) %].[% ELSE %],[% END %]
385 This record has no items.
388 [% END # / IF itemsloo.XSLTBloc %]
390 [% IF ( TagsShowEnabled && itemsloo.TagLoop.size ) %]
391 <div class="results_summary tags">
392 <span class="label">Tags:</span>
394 [% FOREACH TagLoo IN itemsloo.TagLoop %]
395 <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>
401 <span class="results_summary">
403 [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
404 [% UNLESS ( itemsloo.norequests ) %]
405 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
406 [% IF ( AllowOnShelfHolds ) %]
407 <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>
409 [% IF ( itemsloo.itemsissued ) %]
410 <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>
413 [% END # / IF opacuserlogin %]
414 [% END # / UNLESS itemsloo.norequests %]
415 [% END # / RequestOnOpac %]
417 [% IF ( TagsInputEnabled ) %]
418 [% IF ( loggedinusername ) %]
419 <span class="actions"><a class="tag_add hidden" id="tag_add[% itemsloo.biblionumber %]" href="#">Add tag</a></span>
420 <div id="tagform[% itemsloo.biblionumber %]" class="tag_results_input" style="display:none;">
421 <label for="newtag[% itemsloo.biblionumber %]">New tag(s), separated by a comma:</label>
422 <input name="newtag[% itemsloo.biblionumber %]" id="newtag[% itemsloo.biblionumber %]" maxlength="100" />
423 <input name="tagbutton" class="tagbutton btn btn-small" title="[% itemsloo.biblionumber %]" type="submit" value="Add" />
424 <a class="cancel_tag_add" id="cancel[% itemsloo.biblionumber %]" href="#">(done)</a>
426 <div id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">
429 [% ELSIF ( loop.first ) %]
430 <span class="tagstatus" id="login4tags">Log in to add tags.</span>
431 [% END # / IF loggedinusername %]
432 [% END # / IF TagsInputEnabled %]
434 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference( 'virtualshelves' ) == 1 ) ) %]
435 <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>
438 [% IF ( allowremovingitems ) %]
439 <span class="actions"><a class="removefromlist hidden" id="REM-[% itemsloo.biblionumber %]" href="#">Remove from this list</a></span>
442 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
443 [% IF ( itemsloo.incart ) %]
444 <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>
446 <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>
448 [% END # / IF opacbookbag %]
449 </span> <!-- / .results_summary .actions -->
451 <!-- COinS / Openurl -->
452 <span class="Z3988" title="[% itemsloo.coins %]"></span>
455 [% END # / FOREACH itemsloop %]
457 </table> <!-- / #listcontents -->
458 </div><!-- / .searchresults -->
460 [% IF ( pagination_bar ) %]
461 <div class="pages">[% pagination_bar %]</div>
465 <div class="alert alert-info">
467 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
468 You can add to your lists from the results of any <a href="opac-main.pl">search</a>.
471 [% END # / IF itemsloop %]
472 [% END # / IF viewshelf %]
474 [% IF ( itemsloop && allowremovingitems ) %]
475 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
476 <input type="hidden" name="modifyshelfcontents" value="1" />
477 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove selected items" id="remove-selected" class="btn btn-danger"/>
479 [% ELSIF ( !itemsloop && manageshelf ) %]
480 <form method="post" action="opac-shelves.pl">
481 <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />
482 <input type="hidden" name="shelves" value="1" />
483 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
484 <input type="submit" class="btn btn-danger" value="Delete this list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
489 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> ⇢ <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelfnumber %]"><em>[% shelfname |html %]</em></a> ⇢ Editing</h3>
490 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
491 <input type="hidden" name="op" value="modifsave" />
492 <input type="hidden" name="display" value="[% display %]" />
493 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
494 <fieldset class="rows">
496 <li><label for="shelfname">List name: </label><input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelfname |html %]" /></li>
498 <label for="sortfield" >Sort this list by: </label>
499 <select name="sortfield" id="sortfield">
500 [% IF ( sortfield == "title" ) %]
501 <option value="title" selected="selected">Title</option>
503 <option value="title">Title</option>
505 [% IF ( sortfield == "author" ) %]
506 <option value="author" selected="selected">Author</option>
508 <option value="author">Author</option>
510 [% IF ( sortfield == "copyrightdate" ) %]
511 <option value="copyrightdate" selected="selected">Year</option>
513 <option value="copyrightdate">Year</option>
515 [% IF ( sortfield == "itemcallnumber" ) %]
516 <option value="itemcallnumber" selected="selected">Call number</option>
518 <option value="itemcallnumber">Call number</option>
523 [% IF (OpacAllowPublicListCreation) %]
524 <label for="category">Category:</label>
525 <select name="category" id="category">
526 [% IF ( category1 ) %]
527 <option value="1" selected="selected">Private</option>
529 <option value="1">Private</option>
531 [% IF ( category2 ) %]
532 <option value="2" selected="selected">Public</option>
534 <option value="2">Public</option>
539 [% INCLUDE list_permissions %]
543 <fieldset class="action">
544 <input type="submit" value="Save" class="submit" />
545 [% IF ( showprivateshelves ) %]
546 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]&display=privateshelves">Cancel</a>
548 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]">Cancel</a>
552 [% END # / IF edit %]
555 [% UNLESS ( edit ) %]
556 [% UNLESS ( viewshelf ) %]
557 [% UNLESS ( shelves ) %]
559 <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all">
560 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
561 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
562 [% IF ( showprivateshelves ) %]
563 <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 private lists</a></li>
565 <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 private lists</a></li>
568 [% IF ( showpublicshelves ) %]
569 <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>
571 <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>
575 [% IF ( showprivateshelves ) %]
576 <div id="privateshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
578 [% IF ( loggedinusername ) %]
579 <div id="toolbar" class="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
580 [% IF ( showprivateshelves ) %]
581 [% IF ( shelveslooppriv ) %]
582 <table class="table">
592 [% FOREACH shelveslooppri IN shelveslooppriv %]
594 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
595 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
597 [% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
598 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
601 [% IF ( shelveslooppri.mine ) %]
602 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
603 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
604 <input type="hidden" name="display" value="privateshelves" />
605 <input type="hidden" name="op" value="modif" />
606 <input type="submit" class="editshelf" value="Edit" />
608 <form action="opac-shelves.pl" method="post" class="form-inline">
609 <input type="hidden" name="shelves" value="1" />
610 <input type="hidden" name="display" value="privateshelves" />
611 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
612 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
613 [% IF ( shelveslooppri.confirm ) %]
614 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
615 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
617 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
623 [% END # / FOREACH shelveslooppri %]
626 <div class="pages">[% pagination_bar %]</div>
628 <p>No private lists.</p>
629 [% END # / IF shelveslooppriv %]
630 [% END # / IF showprivateshelves %]
632 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
633 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
635 [% END # IF loggedinusername %]
636 </div><!-- / #privateshelves -->
637 [% END # / IF showprivateshelves %]
638 [% IF ( showpublicshelves ) %]
639 <div id="publicshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
641 [% IF ( loggedinusername ) %]
642 <div id="toolbar" class="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
644 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
645 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
647 [% END # / IF loggedinusername %]
649 [% IF ( shelvesloop ) %]
650 <table class="table">
655 <th>Type</th><th> </th>
659 [% FOREACH shelvesloo IN shelvesloop %]
661 <td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
662 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
664 [% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
665 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
668 [% IF ( shelvesloo.mine ) %]
669 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
670 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
671 <input type="hidden" name="op" value="modif" />
672 <input type="hidden" name="display" value="publicshelves" />
673 <input type="submit" class="editshelf" value="Edit" />
675 <form action="opac-shelves.pl" method="post" class="form-inline">
676 <input type="hidden" name="shelves" value="1" />
677 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
678 [% IF ( shelvesloo.confirm ) %]
679 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
680 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
682 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
688 [% END # / FOREACH shelvesloop %]
691 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
693 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
694 [% END # / IF shelvesloop %]
696 </div><!-- / # publicshelves -->
697 [% END # / IF showprivateshelves %]
698 </div> <!-- / .ui-tabs-panel -->
699 [% END # / UNLESS shelves %]
700 [% END # / UNLESS viewshelf %]
701 [% END # / UNLESS edit %]
705 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
706 <fieldset class="rows">
707 <legend>Create a new list</legend>
708 <input type="hidden" name="shelves" value="1" />
711 <label class="required" for="addshelf">List name:</label>
713 <input id="addshelf" type="text" name="addshelf" value="[% already %]" maxlength="255" class="input-fluid" />
715 <input id="addshelf" type="text" name="addshelf" maxlength="255" class="input-fluid" />
717 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
720 <label for="sortfield" >Sort this list by: </label>
721 <select name="sortfield" id="sortfield">
722 <option value="title">Title</option>
723 <option value="author">Author</option>
724 <option value="copyrightdate">Year</option>
725 <option value="itemcallnumber">Call number</option>
729 <label for="category">Category:</label>
730 <select name="category" id="category">
731 <option value="1">Private</option>
732 [% IF (OpacAllowPublicListCreation) %]
733 <option value="2">Public</option>
737 [% INCLUDE list_permissions %]
740 <fieldset class="action">
741 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="btn" />
742 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
745 </div> <!-- / #addshelf -->
746 [% END # / IF shelves %]
748 </div> <!-- / #usershelves -->
749 </div> <!-- / .span10/12 -->
750 </div> <!-- / .row-fluid -->
751 </div> <!-- / .container-fluid -->
752 </div> <!-- / .main -->
755 <div id="debug"></div>
758 [% INCLUDE 'opac-bottom.inc' %]
759 [% BLOCK jsinclude %]
760 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
761 <script type="text/javascript">
763 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
764 var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
765 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
767 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
768 function holdSelections() {
769 var checkedBoxes = $("input:checkbox:checked");
770 if ($(checkedBoxes).size() == 0) {
771 alert(MSG_NO_RECORD_SELECTED);
774 $(checkedBoxes).each(function(){
775 var name = $(this).attr("name");
776 bib = name.substr(4);
779 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
783 [% IF ( TagsInputEnabled && loggedinusername ) %]
784 function tagSelected() {
785 var checkedBoxes = $("input:checkbox:checked");
786 if ($(checkedBoxes).size()) {
787 $("#tagsel_tag").hide();
788 $(".tag_hides").hide();
789 $("#tagsel_form").show();
791 alert(MSG_NO_RECORD_SELECTED);
795 function tagCanceled() {
796 $("#tagsel_form").hide();
797 $("#tagsel_tag").show();
798 $(".tag_hides").show();
799 $("#tagsel_new").val("");
800 $(".tagstatus").empty().hide();
803 function tagAdded() {
804 var checkedBoxes = $("input:checkbox:checked");
805 if (!$(checkedBoxes).size()) {
806 alert(MSG_NO_RECORD_SELECTED);
810 var tag = $("#tagsel_new").val();
811 if (!tag || (tag == "")) {
812 alert(MSG_NO_TAG_SPECIFIED);
817 for (var i = 0; i < $(checkedBoxes).size(); i++) {
818 var box = $(checkedBoxes).get(i);
819 bibs[i] = $(box).val();
822 KOHA.Tags.add_multitags_button(bibs, tag);
827 function enableCheckboxActions(){
828 // Enable/disable controls if checkboxes are checked
829 var checkedBoxes = $(".checkboxed input:checkbox:checked");
830 if ($(checkedBoxes).size()) {
831 $("#selections").html(_("With selected titles: "));
832 $("#selections-toolbar .links a").removeClass("disabled");
834 $("#selections").html(_("Select titles to: "));
835 $("#selections-toolbar .links a").addClass("disabled");
840 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]$(".addtocart,.cartRemove").removeClass("hidden");[% END %]
841 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
842 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
845 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
846 $("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
847 $("#selections-toolbar a.hold").click(function(){
853 $("#CheckAll").click(function(){
854 $(".checkboxed").checkCheckboxes();
855 enableCheckboxActions();
858 $("#CheckNone").click(function(){
859 $(".checkboxed").unCheckCheckboxes();
860 enableCheckboxActions();
864 $(".cb").click(function(){
865 enableCheckboxActions();
867 enableCheckboxActions();
869 [% IF ( TagsInputEnabled && loggedinusername ) %]
870 var tagAdd = $(".tag_add");
871 tagAdd.removeClass("hidden");
872 $("#tagsel_tag").click(function(){
876 $("#tagsel_cancel").click(function(){
880 $("#tagsel_button").click(function(){
885 tagAdd.click(function(){
886 var thisid = $(this).attr("id");
887 thisid = thisid.replace("tag_add","");
889 $("#tagform"+thisid).show();
890 $("#newtag"+thisid).focus();
891 $("#newtag"+thisid+"_status").empty().hide();
894 $(".cancel_tag_add").click(function(){
895 var thisid = $(this).attr("id");
896 thisid = thisid.replace("cancel","");
897 $("#tagform"+thisid).hide();
898 $("#tag_add"+thisid).show();
899 $("#newtag"+thisid).val("");
900 $("#newtag"+thisid+"_status").empty().hide();
903 $(".tagbutton").click(function(){
904 var thisid = $(this).attr("title");
905 var tag = $("#newtag"+thisid).val();
906 if (!tag || (tag == "")) {
907 alert(MSG_NO_TAG_SPECIFIED);
910 KOHA.Tags.add_tag_button(thisid, tag);
915 [% IF ( loggedinusername && allowremovingitems ) %]
916 var removeFromListLinks = $(".removefromlist");
917 removeFromListLinks.removeClass("hidden");
918 // "remove from list" appearing on each line of the list output
919 removeFromListLinks.on("click",function(){
920 $(".checkboxed").unCheckCheckboxes();
921 var listitem = $("input[name="+this.id+"]");
922 listitem.prop("checked",true);
923 $("#myform").submit();
926 $("#myform").submit(function(){
927 var checkedBoxes = $(".checkboxed input:checkbox:checked");
928 var numchecked = $(checkedBoxes).size();
930 if( numchecked > 1 ){
931 return confirmDelete(MSG_REMOVE_FROM_LIST);
933 return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
936 alert(MSG_NO_RECORD_SELECTED);
940 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
942 $("#myform").submit();
946 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
947 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
948 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
949 $('#sort-submit').hide();
950 }); // document.ready
956 if(f.addshelf.value.length ==0){
957 _alertString += _("- You must enter a list name") + "\n";
960 if (_alertString.length==0) {
963 alertString2 = _("Form not submitted because of the following problem(s)");
964 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
965 alertString2 += _alertString;