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 || 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>
547 [% IF (OpacAllowPublicListCreation) %]
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>
563 [% INCLUDE list_permissions %]
567 <fieldset class="action">
568 <input type="submit" value="Save" class="submit" />
569 [% IF ( showprivateshelves ) %]
570 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]&display=privateshelves">Cancel</a>
572 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=[% shelfnumber %]">Cancel</a>
576 [% END # / IF edit %]
579 [% UNLESS ( edit ) %]
580 [% UNLESS ( viewshelf ) %]
581 [% UNLESS ( shelves ) %]
583 <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all">
584 <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
585 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
586 [% IF ( showprivateshelves ) %]
587 <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>
589 <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>
592 [% IF ( showpublicshelves ) %]
593 <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>
595 <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>
599 [% IF ( showprivateshelves ) %]
600 <div id="privateshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
602 [% IF ( loggedinusername ) %]
603 <div id="toolbar" class="toolbar"><a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
604 [% IF ( showprivateshelves ) %]
605 [% IF ( shelveslooppriv ) %]
606 <table class="table">
616 [% FOREACH shelveslooppri IN shelveslooppriv %]
618 <td><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves&viewshelf=[% shelveslooppri.shelf %]&sortfield=[% shelveslooppri.sortfield %]">[% shelveslooppri.shelfname |html %]</a></td>
619 <td>[% IF ( shelveslooppri.count ) %][% shelveslooppri.count %] [% IF ( shelveslooppri.single ) %]item[% ELSE %]items[% END %][% ELSE %]Empty[% END %]</td>
621 [% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
622 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
625 [% IF ( shelveslooppri.mine ) %]
626 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
627 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
628 <input type="hidden" name="display" value="privateshelves" />
629 <input type="hidden" name="op" value="modif" />
630 <input type="submit" class="editshelf" value="Edit" />
632 <form action="opac-shelves.pl" method="post" class="form-inline">
633 <input type="hidden" name="shelves" value="1" />
634 <input type="hidden" name="display" value="privateshelves" />
635 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
636 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
637 [% IF ( shelveslooppri.confirm ) %]
638 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
639 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
641 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
647 [% END # / FOREACH shelveslooppri %]
650 <div class="pages">[% pagination_bar %]</div>
652 <p>No private lists.</p>
653 [% END # / IF shelveslooppriv %]
654 [% END # / IF showprivateshelves %]
656 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
657 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
659 [% END # IF loggedinusername %]
660 </div><!-- / #privateshelves -->
661 [% END # / IF showprivateshelves %]
662 [% IF ( showpublicshelves ) %]
663 <div id="publicshelves" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:block;">
665 [% IF ( loggedinusername ) %]
666 <div id="toolbar" class="toolbar"> <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New list</a></div>
668 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
669 <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
671 [% END # / IF loggedinusername %]
673 [% IF ( shelvesloop ) %]
674 <table class="table">
679 <th>Type</th><th> </th>
683 [% FOREACH shelvesloo IN shelvesloop %]
685 <td><a class="title" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelvesloo.shelf %]&sortfield=[% shelvesloo.sortfield %]">[% shelvesloo.shelfname |html %]</a></td>
686 <td>[% shelvesloo.count %] [% IF ( shelvesloo.single ) %]item[% ELSE %]item(s)[% END %]</td>
688 [% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
689 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
692 [% IF ( shelvesloo.mine ) %]
693 <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="form-inline">
694 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
695 <input type="hidden" name="op" value="modif" />
696 <input type="hidden" name="display" value="publicshelves" />
697 <input type="submit" class="editshelf" value="Edit" />
699 <form action="opac-shelves.pl" method="post" class="form-inline">
700 <input type="hidden" name="shelves" value="1" />
701 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
702 [% IF ( shelvesloo.confirm ) %]
703 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
704 <input type="submit" class="btn btn-danger confirm" value="Confirm" />
706 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
712 [% END # / FOREACH shelvesloop %]
715 [% IF ( pagination_bar ) %]<div class="pages">[% pagination_bar %]</div>[% END %]
717 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
718 [% END # / IF shelvesloop %]
720 </div><!-- / # publicshelves -->
721 [% END # / IF showprivateshelves %]
722 </div> <!-- / .ui-tabs-panel -->
723 [% END # / UNLESS shelves %]
724 [% END # / UNLESS viewshelf %]
725 [% END # / UNLESS edit %]
729 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
730 <fieldset class="rows">
731 <legend>Create a new list</legend>
732 <input type="hidden" name="shelves" value="1" />
735 <label class="required" for="addshelf">List name:</label>
737 <input id="addshelf" type="text" name="addshelf" value="[% already %]" maxlength="255" class="input-fluid" />
739 <input id="addshelf" type="text" name="addshelf" maxlength="255" class="input-fluid" />
741 <input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />
744 <label for="sortfield" >Sort this list by: </label>
745 <select name="sortfield" id="sortfield">
746 <option value="title">Title</option>
747 <option value="author">Author</option>
748 <option value="copyrightdate">Year</option>
749 <option value="itemcallnumber">Call number</option>
753 <label for="category">Category:</label>
754 <select name="category" id="category">
755 <option value="1">Private</option>
756 [% IF (OpacAllowPublicListCreation) %]
757 <option value="2">Public</option>
761 [% INCLUDE list_permissions %]
764 <fieldset class="action">
765 <input type="submit" onclick="Check(this.form); return false;" value="Save" class="btn" />
766 <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a>
769 </div> <!-- / #addshelf -->
770 [% END # / IF shelves %]
772 </div> <!-- / #usershelves -->
773 </div> <!-- / .span10/12 -->
774 </div> <!-- / .row-fluid -->
775 </div> <!-- / .container-fluid -->
776 </div> <!-- / .main -->
779 <div id="debug"></div>
782 [% INCLUDE 'opac-bottom.inc' %]
783 [% BLOCK jsinclude %]
784 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
785 <script type="text/javascript">
787 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
788 var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
789 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
791 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
792 function holdSelections() {
793 var checkedBoxes = $("input:checkbox:checked");
794 if ($(checkedBoxes).size() == 0) {
795 alert(MSG_NO_RECORD_SELECTED);
798 $(checkedBoxes).each(function(){
799 var name = $(this).attr("name");
800 bib = name.substr(4);
803 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
807 [% IF ( TagsInputEnabled && loggedinusername ) %]
808 function tagSelected() {
809 var checkedBoxes = $("input:checkbox:checked");
810 if ($(checkedBoxes).size()) {
811 $("#tagsel_tag").hide();
812 $(".tag_hides").hide();
813 $("#tagsel_form").show();
815 alert(MSG_NO_RECORD_SELECTED);
819 function tagCanceled() {
820 $("#tagsel_form").hide();
821 $("#tagsel_tag").show();
822 $(".tag_hides").show();
823 $("#tagsel_new").val("");
824 $(".tagstatus").empty().hide();
827 function tagAdded() {
828 var checkedBoxes = $("input:checkbox:checked");
829 if (!$(checkedBoxes).size()) {
830 alert(MSG_NO_RECORD_SELECTED);
834 var tag = $("#tagsel_new").val();
835 if (!tag || (tag == "")) {
836 alert(MSG_NO_TAG_SPECIFIED);
841 for (var i = 0; i < $(checkedBoxes).size(); i++) {
842 var box = $(checkedBoxes).get(i);
843 bibs[i] = $(box).val();
846 KOHA.Tags.add_multitags_button(bibs, tag);
851 function enableCheckboxActions(){
852 // Enable/disable controls if checkboxes are checked
853 var checkedBoxes = $(".checkboxed input:checkbox:checked");
854 if ($(checkedBoxes).size()) {
855 $("#selections").html(_("With selected titles: "));
856 $("#selections-toolbar .links a").removeClass("disabled");
858 $("#selections").html(_("Select titles to: "));
859 $("#selections-toolbar .links a").addClass("disabled");
864 [% IF Koha.Preference( 'opacbookbag' ) == 1 %]$(".addtocart,.cartRemove").removeClass("hidden");[% END %]
865 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear all")+"<\/a>");
866 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select all")+"<\/a>");
869 [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %]
870 $("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_("Place hold")+"<\/a>");
871 $("#selections-toolbar a.hold").click(function(){
877 $("#CheckAll").click(function(){
878 $(".checkboxed").checkCheckboxes();
879 enableCheckboxActions();
882 $("#CheckNone").click(function(){
883 $(".checkboxed").unCheckCheckboxes();
884 enableCheckboxActions();
888 $(".cb").click(function(){
889 enableCheckboxActions();
891 enableCheckboxActions();
893 [% IF ( TagsInputEnabled && loggedinusername ) %]
894 var tagAdd = $(".tag_add");
895 tagAdd.removeClass("hidden");
896 $("#tagsel_tag").click(function(){
900 $("#tagsel_cancel").click(function(){
904 $("#tagsel_button").click(function(){
909 tagAdd.click(function(){
910 var thisid = $(this).attr("id");
911 thisid = thisid.replace("tag_add","");
913 $("#tagform"+thisid).show();
914 $("#newtag"+thisid).focus();
915 $("#newtag"+thisid+"_status").empty().hide();
918 $(".cancel_tag_add").click(function(){
919 var thisid = $(this).attr("id");
920 thisid = thisid.replace("cancel","");
921 $("#tagform"+thisid).hide();
922 $("#tag_add"+thisid).show();
923 $("#newtag"+thisid).val("");
924 $("#newtag"+thisid+"_status").empty().hide();
927 $(".tagbutton").click(function(){
928 var thisid = $(this).attr("title");
929 var tag = $("#newtag"+thisid).val();
930 if (!tag || (tag == "")) {
931 alert(MSG_NO_TAG_SPECIFIED);
934 KOHA.Tags.add_tag_button(thisid, tag);
939 [% IF ( loggedinusername && allowremovingitems ) %]
940 var removeFromListLinks = $(".removefromlist");
941 removeFromListLinks.removeClass("hidden");
942 // "remove from list" appearing on each line of the list output
943 removeFromListLinks.on("click",function(){
944 $(".checkboxed").unCheckCheckboxes();
945 var listitem = $("input[name="+this.id+"]");
946 listitem.prop("checked",true);
947 $("#myform").submit();
950 $("#myform").submit(function(){
951 var checkedBoxes = $(".checkboxed input:checkbox:checked");
952 var numchecked = $(checkedBoxes).size();
954 if( numchecked > 1 ){
955 return confirmDelete(MSG_REMOVE_FROM_LIST);
957 return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
960 alert(MSG_NO_RECORD_SELECTED);
964 $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
966 $("#myform").submit();
970 [% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
971 [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
972 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
973 $('#sort-submit').hide();
974 }); // document.ready
980 if(f.addshelf.value.length ==0){
981 _alertString += _("- You must enter a list name") + "\n";
984 if (_alertString.length==0) {
987 alertString2 = _("Form not submitted because of the following problem(s)");
988 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
989 alertString2 += _alertString;