1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › <!-- TMPL_IF NAME="viewshelf" -->Contents of <!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --><!-- TMPL_ELSE -->My Lists<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
3 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
4 <script type="text/JavaScript" language="JavaScript">
6 $.tablesorter.addParser({
8 is: function(s) {return false; },
9 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
12 function holdSelections() {
13 var checkedBoxes = $(":checkbox:checked");
14 if ($(checkedBoxes).size() == 0) {
15 alert(MSG_NO_RECORD_SELECTED);
18 $(checkedBoxes).each(function(){
19 var name = $(this).attr("name");
23 document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
29 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"</a>");
30 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"</a>");
31 $("#listcontents").tablesorter({
33 <!-- TMPL_IF NAME="manageshelf" -->
35 headers: { 0: { sorter: false },1:{sorter: 'articles'}
38 headers: { 0:{sorter:'articles'}
42 $("#CheckAll").click(function(){
43 $(".checkboxed").checkCheckboxes();
46 $("#CheckNone").click(function(){
47 $(".checkboxed").unCheckCheckboxes();
52 $(document).ready(function(){
53 <!-- TMPL_IF NAME="TagsEnabled" -->
54 $("#tagsel_tag").text("Tag");
55 $("#tagsel_button").click(function(){
64 <!-- TMPL_IF NAME="loggedinusername" --><body id="opac-userlists"><!-- TMPL_ELSE --><body id="opac-lists"><!-- /TMPL_IF -->
65 <!-- TMPL_IF EXPR="OpacNav||loggedinusername" --><div id="doc3" class="yui-t1"><!-- TMPL_ELSE --><div id="doc3" class="yui-t7"><!-- /TMPL_IF -->
67 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
71 <div class="container">
72 <!-- TMPL_IF NAME="paramsloop" -->
73 <!-- TMPL_LOOP NAME="paramsloop" -->
75 <div class="yui-u first">
76 <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <b><!-- TMPL_VAR NAME="already" --></b> already exists!</div><!-- /TMPL_IF -->
77 <!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
78 <!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF -->
79 <!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF -->
80 <!-- TMPL_IF NAME="need_confirm" -->
81 <div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
82 <br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
83 <br />Use the "Confirm" button below to confirm deletion.
85 <form action="opac-shelves.pl" method="post">
86 <input type="hidden" name="shelves" value="1" />
87 <input type="hidden" name="display" value="<!--TMPL_VAR Name="shelftype"-->shelves" />
88 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
89 <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
90 <input type="submit" class="confirm" value="Confirm" />
95 <!-- TMPL_IF NAME="nopermission" -->
96 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
98 <!-- TMPL_IF NAME="failgetitem" -->
99 <div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
101 <!-- TMPL_IF NAME="duplicatebiblio" -->
102 <div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
104 <!-- TMPL_IF NAME="delete_ok" -->
105 <div class="dialog message">List <!-- TMPL_VAR NAME="delete_ok" --> Deleted.</div>
107 <!-- TMPL_IF NAME="delete_fail" -->
108 <div class="dialog message">ERROR: Database error. Delete (list number <!-- TMPL_VAR NAME="delete_fail" -->) failed.</div>
110 <!-- TMPL_IF NAME="unrecognized" -->
111 <div class="dialog message">ERROR: List number <!-- TMPL_VAR NAME="unrecognized" --> unrecognized.</div>
119 <!-- TMPL_IF NAME="viewshelf" --><!-- Viewing a particular shelf -->
120 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt=">" border="0" /> <em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></h3>
121 <!-- TMPL_IF NAME="itemsloop" -->
123 <!-- TMPL_IF NAME="manageshelf" -->
124 <span class="checkall"></span>
125 <span class="clearall"></span>
127 <!-- div id="tag_hides" -->
128 <a class="editshelf tag_hides" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&op=modif">Edit List</a>
129 <form method="post" action="opac-shelves.pl" class="tag_hides">
130 <input type="hidden" value="1" name="shelves"/>
131 <!-- TMPL_IF NAME="showprivateshelves" --> <input type="hidden" name="display" value="privateshelves" /> <!-- /TMPL_IF -->
132 <input type="hidden" value="1" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->"/>
133 <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));"/>
136 <a href="#" class="send tag_hides" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelfnumber" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100')">Send List</a>
137 <!-- TMPL_IF NAME="RequestOnOpac" -->
138 <a href="#" class="hold tag_hides" onclick="holdSelections();return false;"></a>
141 <a id="tagsel_tag" href="#" onclick="tagSelected(); return false;"></a>
142 <span id="tagsel_form" style="display:none">
143 <label for="tagsel_new" style="display:inline">New Tag:</label>
144 <input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
145 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button"
146 type="submit" value="Add" style="display:inline" />
147 <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
150 <!-- TMPL_IF NAME="manageshelf" -->
151 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
152 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
153 <input type="hidden" name="modifyshelfcontents" value="1" />
155 <!-- TMPL_VAR name='pagination_bar'-->
156 <table id="listcontents">
158 <!-- TMPL_IF NAME="manageshelf" --><th> </th><!-- /TMPL_IF -->
159 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
165 <!-- TMPL_LOOP NAME="itemsloop" -->
166 <!-- TMPL_UNLESS NAME="__odd__" -->
167 <tr class="highlight">
170 <!-- /TMPL_UNLESS -->
171 <!-- TMPL_IF NAME="manageshelf" -->
173 <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
176 <!-- TMPL_UNLESS NAME="item-level_itypes" -->
178 <!-- TMPL_IF NAME="imageurl" --> <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /> <!--/TMPL_IF--> <!-- TMPL_VAR NAME="description" -->
180 <!-- /TMPL_UNLESS -->
181 <td><!-- TMPL_IF NAME="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
183 <!-- TMPL_IF NAME="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
184 <!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
185 <!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a>
186 <!-- COinS / OpenURL --><span class="Z3988" title="<!-- TMPL_VAR NAME="coins" -->"></span>
188 <td><!-- TMPL_VAR NAME="author" --></td>
190 <!-- TMPL_IF NAME="publicationyear" --> <!-- TMPL_VAR NAME="publicationyear" --> <!-- TMPL_ELSE --> <!-- TMPL_VAR NAME="copyrightdate" --> <!-- /TMPL_IF -->
194 </tbody><!-- /itemsloop -->
197 <div class="dialog message">This List is empty. You can add to your lists from the results of any <a href="opac-main.pl">search</a>!</div>
198 <!-- /TMPL_IF --><!-- /itemsloop -->
202 <!-- TMPL_IF NAME="manageshelf" -->
203 <!-- Editing shelf -->
204 <!-- TMPL_IF NAME="itemsloop" -->
205 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
206 <input type="hidden" name="modifyshelfcontents" value="1" />
207 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete(_('Are you sure you want to remove these items from the list?'))" />
209 <form method="post" action="opac-shelves.pl">
210 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
211 <input type="hidden" name="shelves" value="1" />
212 <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(_('Are you sure you want to delete this List?'))" />
217 <!-- TMPL_IF NAME="edit" -->
218 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt=">" border="0" /> <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelfnumber" -->"><em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt=">" border="0" /> Editing</h3>
219 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
220 <input type="hidden" name="op" value="modifsave" />
221 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
222 <fieldset class="rows">
224 <li><label for="shelfname">List Name: </label><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR NAME="shelfname" ESCAPE="html" -->" /></li>
225 <li><label for="sortfield" >Sort this list by: </label>
226 <select name="sortfield">
227 <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
228 <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
229 <!-- TMPL_IF NAME="sort_year" --><option value="year" selected="selected">Year</option><!-- TMPL_ELSE --><option value="year">Year</option><!-- /TMPL_IF -->
231 <li><label for="category">Category: </label>
232 <select name="category" id="category">
233 <option value="1">Private</option>
234 <option value="2">Public</option>
239 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->">Cancel</a></fieldset>
242 <!-- TMPL_UNLESS NAME="edit" --> <!-- TMPL_UNLESS NAME="viewshelf" --> <!-- TMPL_UNLESS NAME="shelves" -->
244 <ul class="link-tabs">
245 <!-- TMPL_IF NAME="showprivateshelves" -->
246 <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
248 <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
250 <!-- TMPL_IF NAME="showpublicshelves" -->
251 <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
253 <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
256 <!-- TMPL_IF NAME="showprivateshelves" -->
257 <div id="privateshelves" class="tab-container" style="display:block;">
259 <div id="privateshelves" class="tab-container" style="display:none;">
262 <!-- TMPL_IF NAME="loggedinusername" -->
263 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a>
264 <!-- TMPL_IF NAME="shelveslooppriv" -->
265 <!-- TMPL_VAR name='pagination_bar'-->
267 <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th> </th></tr>
268 <!-- TMPL_LOOP NAME="shelveslooppriv" -->
269 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
270 <td><a href="opac-shelves.pl?display=privateshelves&viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
271 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
272 <td><!-- TMPL_VAR NAME="sortfield" --></td>
273 <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
274 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
275 <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
278 <!-- TMPL_IF NAME="mine" -->
279 <form action="opac-shelves.pl" method="get">
280 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
281 <input type="hidden" name="display" value="privateshelves" />
282 <input type="hidden" name="op" value="modif" />
283 <input type="submit" class="editshelf" value="Edit" />
285 <form action="opac-shelves.pl" method="post">
286 <input type="hidden" name="shelves" value="1" />
287 <input type="hidden" name="display" value="privateshelves" />
288 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
289 <!-- TMPL_IF NAME="confirm" -->
290 <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
291 <input type="submit" class="confirm" value="Confirm" />
293 <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
296 <!-- /TMPL_IF -->
297 <a href="#" class="send" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelf" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100')">Send List</a>
302 <tr><td colspan="4">No Private Lists.</td></tr>
303 <!-- /TMPL_IF --><!-- /shelveslooppriv -->
305 <!-- TMPL_ELSE --><!-- /loggedinusername -->
306 <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
307 <!-- /TMPL_IF --><!-- /loggedinusername -->
308 </div><!-- /privateshelves -->
310 <!-- TMPL_IF NAME="showpublicshelves" -->
311 <div id="publicshelves" class="tab-container" style="display:block;">
313 <div id="publicshelves" class="tab-container" style="display:none;">
315 <!-- TMPL_IF NAME="shelvesloop" -->
316 <!-- TMPL_VAR name='pagination_bar'-->
318 <tr><th>List Name</th><th>Contents</th><th>Type</th><th> </th></tr>
319 <!-- TMPL_LOOP NAME="shelvesloop" -->
320 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
321 <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
322 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
323 <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
324 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
325 <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
328 <!-- TMPL_IF NAME="mine" -->
329 <form action="opac-shelves.pl" method="get">
330 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
331 <input type="hidden" name="op" value="modif" />
332 <input type="submit" class="editshelf" value="Edit" />
334 <form action="opac-shelves.pl" method="post">
335 <input type="hidden" name="shelves" value="1" />
336 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
337 <!-- TMPL_IF NAME="confirm" -->
338 <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
339 <input type="submit" class="confirm" value="Confirm" />
341 <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
344 <!-- /TMPL_IF -->
345 <a href="#" class="send" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelf" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100')">Send List</a>
351 <!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
352 <!-- /TMPL_IF --><!-- /shelvesloop -->
353 </div><!-- /publicshelves -->
354 <!-- /TMPL_UNLESS --><!-- /viewshelf --><!-- /TMPL_UNLESS --><!-- /edit --><!-- /TMPL_UNLESS --><!-- /shelves -->
356 <!-- TMPL_IF NAME="shelves" -->
357 <div id="addshelf"><form method="post" action="/cgi-bin/koha/opac-shelves.pl">
358 <fieldset class="rows">
359 <legend>Create a New List</legend>
360 <input type="hidden" name="shelves" value="1" />
361 <ol><li><label for="addshelf">List Name:</label>
362 <!-- TMPL_IF NAME="already" -->
363 <input id="addshelf" type="text" name="addshelf" value="<!-- TMPL_VAR NAME="already" -->" size="60" />
365 <input id="addshelf" type="text" name="addshelf" size="60" />
367 <input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /></li>
368 <li><label for="sortfield" >Sort this list by: </label>
369 <select name="sortfield">
370 <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
371 <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
372 <!-- TMPL_IF NAME="sort_year" --><option value="year" selected="selected">Year</option><!-- TMPL_ELSE --><option value="year">Year</option><!-- /TMPL_IF -->
374 <li><label for="category">Category:</label>
375 <select name="category" id="category">
376 <option value="1">Private</option>
377 <option value="2">Public</option>
381 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a></fieldset>
383 <!-- /TMPL_IF --><!-- /showadd -->
387 <!-- TMPL_IF EXPR="OpacNav||loggedinusername" -->
389 <div class="container">
390 <!-- TMPL_INCLUDE NAME="navigation.inc" -->
391 <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
393 </div><!-- /TMPL_IF -->
396 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->