2 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
3 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
5 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( viewshelf ) %]Contents of [% shelfname |html %][% ELSE %]Your lists[% END %][% INCLUDE 'doc-head-close.inc' %]
6 [% BLOCK cssinclude %][% END %]
8 [% IF ( loggedinusername ) %]<body id="opac-userlists" class="scrollto">[% ELSE %]<body id="opac-lists" class="scrollto">[% END %]
10 [% BLOCK list_permissions %]
12 <label for="allow_add">Permissions: </label>
13 <select name="allow_add" id="allow_add">
14 [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
15 [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
17 <span>anyone else to add entries. (The owner of a list is always allowed to add entries, but needs permission to remove.)</span>
21 <select name="allow_delete_own" id="allow_delete_own">
22 [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
23 [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
25 <span>anyone to remove his own contributed entries.</span>
29 <select name="allow_delete_other" id="allow_delete_other">
30 [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
31 [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
33 <span>anyone to remove other contributed entries.</span>
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 || edit ) %]
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 || shelves ) %]
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 id="toolbar" class="toolbar clearfix">
466 <div class="list-actions">
467 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a> <span class="sep"></span>
468 [% IF ( manageshelf ) %]
469 <span class="sep">|</span>
470 <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
471 <input type="hidden" name="op" value="modif" />
472 <input type="hidden" name="display" value="viewshelf" />
473 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
474 <input type="submit" class="editshelf" value="Edit list" />
477 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
478 <input type="hidden" value="1" name="shelves"/>
479 <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
480 [% IF ( showprivateshelves ) %]
481 <input type="hidden" name="display" value="privateshelves"/>
483 <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
485 [% END # / IF manageshelf %]
486 </div> <!-- / .list-actions -->
487 </div> <!-- / #toolbar -->
489 <div class="alert alert-info">
491 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
492 You can add to your lists from the results of any <a href="opac-main.pl">search</a>.
495 [% END # / IF itemsloop %]
496 [% END # / IF viewshelf %]
498 [% IF ( itemsloop && allowremovingitems ) %]
499 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
500 <input type="hidden" name="modifyshelfcontents" value="1" />
501 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove selected items" id="remove-selected" class="btn btn-danger"/>
503 [% ELSIF ( !itemsloop && manageshelf ) %]
504 <form method="post" action="opac-shelves.pl">
505 <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />
506 <input type="hidden" name="shelves" value="1" />
507 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
508 <input type="submit" class="btn btn-danger" value="Delete this list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
513 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
514 <input type="hidden" name="op" value="modifsave" />
515 <input type="hidden" name="display" value="[% display %]" />
516 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
517 <fieldset class="rows">
518 <legend>Editing <em>[% shelfname |html %]</em></legend>
520 <li><label for="shelfname">List name: </label><input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelfname |html %]" /></li>
522 <label for="sortfield" >Sort this list by: </label>
523 <select name="sortfield" id="sortfield">
524 [% IF ( sortfield == "title" ) %]
525 <option value="title" selected="selected">Title</option>
527 <option value="title">Title</option>
529 [% IF ( sortfield == "author" ) %]
530 <option value="author" selected="selected">Author</option>
532 <option value="author">Author</option>
534 [% IF ( sortfield == "copyrightdate" ) %]
535 <option value="copyrightdate" selected="selected">Year</option>
537 <option value="copyrightdate">Year</option>
539 [% IF ( sortfield == "itemcallnumber" ) %]
540 <option value="itemcallnumber" selected="selected">Call number</option>
542 <option value="itemcallnumber">Call number</option>
546 [% IF ( OpacAllowPublicListCreation || category2 ) %]
548 <label for="category">Category:</label>
549 <select name="category" id="category">
550 [% IF ( category1 ) %]
551 <option value="1" selected="selected">Private</option>
553 <option value="1">Private</option>
555 [% IF ( category2 ) %]
556 <option value="2" selected="selected">Public</option>
558 <option value="2">Public</option>
561 [% IF ( category2 && !OpacAllowPublicListCreation ) %]
562 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.
565 [% INCLUDE list_permissions %]
568 [% UNLESS ( OpacAllowPublicListCreation || category2 ) %]
569 <input type="hidden" name="category" value="1" />
573 <fieldset class="action">
574 <input type="submit" value="Save" class="btn" />
575 [% IF ( showprivateshelves ) %]
576 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]&display=privateshelves">Cancel</a>
578 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]">Cancel</a>
582 [% END # / IF edit %]
585 [% UNLESS ( edit ) %]
586 [% UNLESS ( viewshelf ) %]
587 [% UNLESS ( shelves ) %]
589 <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all">
590 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
591 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
592 [% IF ( showprivateshelves ) %]
593 <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>
595 <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>
598 [% IF ( showpublicshelves ) %]
599 <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>
601 <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>
605 [% IF ( showprivateshelves ) %]
606 <div id="privateshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
608 [% IF ( loggedinusername ) %]
609 <div id="toolbar" class="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
610 [% IF ( showprivateshelves ) %]
611 [% IF ( shelveslooppriv ) %]
612 <table class="table">
622 [% FOREACH shelveslooppri IN shelveslooppriv %]
624 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
625 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
627 [% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
628 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
631 [% IF ( shelveslooppri.mine ) %]
632 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
633 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
634 <input type="hidden" name="display" value="privateshelves" />
635 <input type="hidden" name="op" value="modif" />
636 <input type="submit" class="editshelf" value="Edit" />
638 <form action="opac-shelves.pl" method="post" class="form-inline">
639 <input type="hidden" name="shelves" value="1" />
640 <input type="hidden" name="display" value="privateshelves" />
641 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
642 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
643 [% IF ( shelveslooppri.confirm ) %]
644 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
645 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
647 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
653 [% END # / FOREACH shelveslooppri %]
656 <div class="pages">[% pagination_bar %]</div>
658 <p>No private lists.</p>
659 [% END # / IF shelveslooppriv %]
660 [% END # / IF showprivateshelves %]
662 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
663 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
665 [% END # IF loggedinusername %]
666 </div><!-- / #privateshelves -->
667 [% END # / IF showprivateshelves %]
668 [% IF ( showpublicshelves ) %]
669 <div id="publicshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
671 [% IF ( loggedinusername ) %]
672 <div id="toolbar" class="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
674 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
675 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
677 [% END # / IF loggedinusername %]
679 [% IF ( shelvesloop ) %]
680 <table class="table">
685 <th>Type</th><th> </th>
689 [% FOREACH shelvesloo IN shelvesloop %]
691 <td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
692 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
694 [% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
695 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
698 [% IF ( shelvesloo.mine ) %]
699 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
700 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
701 <input type="hidden" name="op" value="modif" />
702 <input type="hidden" name="display" value="publicshelves" />
703 <input type="submit" class="editshelf" value="Edit" />
705 <form action="opac-shelves.pl" method="post" class="form-inline">
706 <input type="hidden" name="shelves" value="1" />
707 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
708 [% IF ( shelvesloo.confirm ) %]
709 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
710 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
712 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
718 [% END # / FOREACH shelvesloop %]
721 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
723 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
724 [% END # / IF shelvesloop %]
726 </div><!-- / # publicshelves -->
727 [% END # / IF showprivateshelves %]
728 </div> <!-- / .ui-tabs-panel -->
729 [% END # / UNLESS shelves %]
730 [% END # / UNLESS viewshelf %]
731 [% END # / UNLESS edit %]
735 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
736 <fieldset class="rows">
737 <legend>Create a new list</legend>
738 <input type="hidden" name="shelves" value="1" />
741 <label class="required" for="addshelf">List name:</label>
743 <input id="addshelf" type="text" name="addshelf" value="[% already %]" maxlength="255" class="input-fluid" />
745 <input id="addshelf" type="text" name="addshelf" maxlength="255" class="input-fluid" />
747 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
750 <label for="sortfield" >Sort this list by: </label>
751 <select name="sortfield" id="sortfield">
752 <option value="title">Title</option>
753 <option value="author">Author</option>
754 <option value="copyrightdate">Year</option>
755 <option value="itemcallnumber">Call number</option>
758 [% IF (OpacAllowPublicListCreation) %]
760 <label for="category">Category:</label>
761 <select name="category" id="category">
762 <option value="1">Private</option>
763 <option value="2">Public</option>
766 [% INCLUDE list_permissions %]
769 [% UNLESS (OpacAllowPublicListCreation) %]
770 <input type="hidden" name="category" value="1" />
773 <fieldset class="action">
774 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="btn" />
775 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
778 </div> <!-- / #addshelf -->
779 [% END # / IF shelves %]
781 </div> <!-- / #usershelves -->
782 </div> <!-- / .span10/12 -->
783 </div> <!-- / .row-fluid -->
784 </div> <!-- / .container-fluid -->
785 </div> <!-- / .main -->
788 <div id="debug"></div>
791 [% INCLUDE 'opac-bottom.inc' %]
792 [% BLOCK jsinclude %]
793 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
794 <script type="text/javascript">
796 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
797 var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
798 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
800 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
801 function holdSelections() {
802 var checkedBoxes = $("input:checkbox:checked");
803 if ($(checkedBoxes).size() == 0) {
804 alert(MSG_NO_RECORD_SELECTED);
807 $(checkedBoxes).each(function(){
808 var name = $(this).attr("name");
809 bib = name.substr(4);
812 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
816 [% IF ( TagsInputEnabled && loggedinusername ) %]
817 function tagSelected() {
818 var checkedBoxes = $("input:checkbox:checked");
819 if ($(checkedBoxes).size()) {
820 $("#tagsel_tag").hide();
821 $(".tag_hides").hide();
822 $("#tagsel_form").show();
824 alert(MSG_NO_RECORD_SELECTED);
828 function tagCanceled() {
829 $("#tagsel_form").hide();
830 $("#tagsel_tag").show();
831 $(".tag_hides").show();
832 $("#tagsel_new").val("");
833 $(".tagstatus").empty().hide();
836 function tagAdded() {
837 var checkedBoxes = $("input:checkbox:checked");
838 if (!$(checkedBoxes).size()) {
839 alert(MSG_NO_RECORD_SELECTED);
843 var tag = $("#tagsel_new").val();
844 if (!tag || (tag == "")) {
845 alert(MSG_NO_TAG_SPECIFIED);
850 for (var i = 0; i < $(checkedBoxes).size(); i++) {
851 var box = $(checkedBoxes).get(i);
852 bibs[i] = $(box).val();
855 KOHA.Tags.add_multitags_button(bibs, tag);
860 function enableCheckboxActions(){
861 // Enable/disable controls if checkboxes are checked
862 var checkedBoxes = $(".checkboxed input:checkbox:checked");
863 if ($(checkedBoxes).size()) {
864 $("#selections").html(_("With selected titles: "));
865 $("#selections-toolbar .links a").removeClass("disabled");
867 $("#selections").html(_("Select titles to: "));
868 $("#selections-toolbar .links a").addClass("disabled");
873 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]$(".addtocart,.cartRemove").removeClass("hidden");[% END %]
874 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
875 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
878 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
879 $("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
880 $("#selections-toolbar a.hold").click(function(){
886 $("#CheckAll").click(function(){
887 $(".checkboxed").checkCheckboxes();
888 enableCheckboxActions();
891 $("#CheckNone").click(function(){
892 $(".checkboxed").unCheckCheckboxes();
893 enableCheckboxActions();
897 $(".cb").click(function(){
898 enableCheckboxActions();
900 enableCheckboxActions();
902 [% IF ( TagsInputEnabled && loggedinusername ) %]
903 var tagAdd = $(".tag_add");
904 tagAdd.removeClass("hidden");
905 $("#tagsel_tag").click(function(){
909 $("#tagsel_cancel").click(function(){
913 $("#tagsel_button").click(function(){
918 tagAdd.click(function(){
919 var thisid = $(this).attr("id");
920 thisid = thisid.replace("tag_add","");
922 $("#tagform"+thisid).show();
923 $("#newtag"+thisid).focus();
924 $("#newtag"+thisid+"_status").empty().hide();
927 $(".cancel_tag_add").click(function(){
928 var thisid = $(this).attr("id");
929 thisid = thisid.replace("cancel","");
930 $("#tagform"+thisid).hide();
931 $("#tag_add"+thisid).show();
932 $("#newtag"+thisid).val("");
933 $("#newtag"+thisid+"_status").empty().hide();
936 $(".tagbutton").click(function(){
937 var thisid = $(this).attr("title");
938 var tag = $("#newtag"+thisid).val();
939 if (!tag || (tag == "")) {
940 alert(MSG_NO_TAG_SPECIFIED);
943 KOHA.Tags.add_tag_button(thisid, tag);
948 [% IF ( loggedinusername && allowremovingitems ) %]
949 var removeFromListLinks = $(".removefromlist");
950 removeFromListLinks.removeClass("hidden");
951 // "remove from list" appearing on each line of the list output
952 removeFromListLinks.on("click",function(){
953 $(".checkboxed").unCheckCheckboxes();
954 var listitem = $("input[name="+this.id+"]");
955 listitem.prop("checked",true);
956 $("#myform").submit();
959 $("#myform").submit(function(){
960 var checkedBoxes = $(".checkboxed input:checkbox:checked");
961 var numchecked = $(checkedBoxes).size();
963 if( numchecked > 1 ){
964 return confirmDelete(MSG_REMOVE_FROM_LIST);
966 return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
969 alert(MSG_NO_RECORD_SELECTED);
973 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
975 $("#myform").submit();
979 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
980 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
981 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
982 $('#sort-submit').hide();
983 }); // document.ready
989 if(f.addshelf.value.length ==0){
990 _alertString += _("- You must enter a list name") + "\n";
993 if (_alertString.length==0) {
996 alertString2 = _("Form not submitted because of the following problem(s)");
997 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
998 alertString2 += _alertString;