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) /,''); },
14 $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"</a>");
15 $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"</a>");
16 $("#listcontents").tablesorter({
18 <!-- TMPL_IF NAME="manageshelf" -->
20 headers: { 0: { sorter: false },1:{sorter: 'articles'}
23 headers: { 0:{sorter:'articles'}
27 $("#CheckAll").click(function(){
28 $(".checkboxed").checkCheckboxes();
31 $("#CheckNone").click(function(){
32 $(".checkboxed").unCheckCheckboxes();
41 <!-- TMPL_IF NAME="loggedinusername" --><body id="opac-userlists"><!-- TMPL_ELSE --><body id="opac-lists"><!-- /TMPL_IF -->
42 <!-- TMPL_IF EXPR="OpacNav||loggedinusername" --><div id="doc3" class="yui-t1"><!-- TMPL_ELSE --><div id="doc3" class="yui-t7"><!-- /TMPL_IF -->
44 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
48 <div class="container">
49 <!-- TMPL_IF NAME="paramsloop" -->
50 <!-- TMPL_LOOP NAME="paramsloop" -->
52 <div class="yui-u first">
53 <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <b><!-- TMPL_VAR NAME="already" --></b> already exists!</div><!-- /TMPL_IF -->
54 <!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
55 <!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF -->
56 <!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF -->
57 <!-- TMPL_IF NAME="need_confirm" -->
58 <div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
59 <br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
60 <br />Use the "Confirm" button below to confirm deletion.
62 <form action="opac-shelves.pl" method="post">
63 <input type="hidden" name="shelves" value="1" />
64 <input type="hidden" name="display" value="<!--TMPL_VAR Name="shelftype"-->shelves" />
65 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
66 <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
67 <input type="submit" class="confirm" value="Confirm" />
72 <!-- TMPL_IF NAME="nopermission" -->
73 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
75 <!-- TMPL_IF NAME="failgetitem" -->
76 <div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
78 <!-- TMPL_IF NAME="duplicatebiblio" -->
79 <div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
81 <!-- TMPL_IF NAME="delete_ok" -->
82 <div class="dialog message">List <!-- TMPL_VAR NAME="delete_ok" --> Deleted.</div>
84 <!-- TMPL_IF NAME="delete_fail" -->
85 <div class="dialog message">ERROR: Database error. Delete (list number <!-- TMPL_VAR NAME="delete_fail" -->) failed.</div>
87 <!-- TMPL_IF NAME="unrecognized" -->
88 <div class="dialog message">ERROR: List number <!-- TMPL_VAR NAME="unrecognized" --> unrecognized.</div>
96 <!-- TMPL_IF NAME="viewshelf" --><!-- Viewing a particular shelf -->
97 <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>
98 <!-- TMPL_IF NAME="itemsloop" -->
100 <!-- TMPL_IF NAME="manageshelf" -->
101 <span class="checkall"></span>
102 <span class="clearall"></span>
104 <!-- div id="tag_hides" -->
105 <a class="editshelf tag_hides" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&op=modif">Edit List</a>
106 <form method="post" action="opac-shelves.pl" class="tag_hides">
107 <input type="hidden" value="1" name="shelves"/>
108 <!-- TMPL_IF NAME="showprivateshelves" --> <input type="hidden" name="display" value="privateshelves" /> <!-- /TMPL_IF -->
109 <input type="hidden" value="1" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->"/>
110 <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));"/>
114 <!-- TMPL_IF NAME="manageshelf" -->
115 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
116 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
117 <input type="hidden" name="modifyshelfcontents" value="1" />
119 <!-- TMPL_VAR name='pagination_bar'-->
120 <table id="listcontents">
122 <!-- TMPL_IF NAME="manageshelf" --><th> </th><!-- /TMPL_IF -->
123 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
129 <!-- TMPL_LOOP NAME="itemsloop" -->
130 <!-- TMPL_UNLESS NAME="__odd__" -->
131 <tr class="highlight">
134 <!-- /TMPL_UNLESS -->
135 <!-- TMPL_IF NAME="manageshelf" -->
137 <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
140 <!-- TMPL_UNLESS NAME="item-level_itypes" -->
142 <!-- 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" -->
144 <!-- /TMPL_UNLESS -->
145 <td><!-- TMPL_IF NAME="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
147 <!-- TMPL_IF NAME="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
148 <!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
149 <!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a>
150 <!-- COinS / OpenURL --><span class="Z3988" title="<!-- TMPL_VAR NAME="coins" -->"></span>
152 <td><!-- TMPL_VAR NAME="author" --></td>
154 <!-- TMPL_IF NAME="publicationyear" --> <!-- TMPL_VAR NAME="publicationyear" --> <!-- TMPL_ELSE --> <!-- TMPL_VAR NAME="copyrightdate" --> <!-- /TMPL_IF -->
158 </tbody><!-- /itemsloop -->
161 <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>
162 <!-- /TMPL_IF --><!-- /itemsloop -->
166 <!-- TMPL_IF NAME="manageshelf" -->
167 <!-- Editing shelf -->
168 <!-- TMPL_IF NAME="itemsloop" -->
169 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
170 <input type="hidden" name="modifyshelfcontents" value="1" />
171 <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?'))" />
173 <form method="post" action="opac-shelves.pl">
174 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
175 <input type="hidden" name="shelves" value="1" />
176 <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(_('Are you sure you want to delete this List?'))" />
181 <!-- TMPL_IF NAME="edit" -->
182 <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>
183 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
184 <input type="hidden" name="op" value="modifsave" />
185 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
186 <fieldset class="rows">
188 <li><label for="shelfname">List Name: </label><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR NAME="shelfname" ESCAPE="html" -->" /></li>
189 <li><label for="sortfield" >Sort this list by: </label>
190 <select name="sortfield">
191 <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
192 <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
193 <!-- TMPL_IF NAME="sort_year" --><option value="year" selected="selected">Year</option><!-- TMPL_ELSE --><option value="year">Year</option><!-- /TMPL_IF -->
195 <li><label for="category">Category: </label>
196 <select name="category" id="category">
197 <option value="1">Private</option>
198 <option value="2">Public</option>
203 <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>
206 <!-- TMPL_UNLESS NAME="edit" --> <!-- TMPL_UNLESS NAME="viewshelf" --> <!-- TMPL_UNLESS NAME="shelves" -->
208 <ul class="link-tabs">
209 <!-- TMPL_IF NAME="showprivateshelves" -->
210 <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
212 <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
214 <!-- TMPL_IF NAME="showpublicshelves" -->
215 <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
217 <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
220 <!-- TMPL_IF NAME="showprivateshelves" -->
221 <div id="privateshelves" class="tab-container" style="display:block;">
223 <div id="privateshelves" class="tab-container" style="display:none;">
226 <!-- TMPL_IF NAME="loggedinusername" -->
227 <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a>
228 <!-- TMPL_IF NAME="shelveslooppriv" -->
229 <!-- TMPL_VAR name='pagination_bar'-->
231 <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th> </th></tr>
232 <!-- TMPL_LOOP NAME="shelveslooppriv" -->
233 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
234 <td><a href="opac-shelves.pl?display=privateshelves&viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
235 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
236 <td><!-- TMPL_VAR NAME="sortfield" --></td>
237 <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
238 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
239 <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
242 <!-- TMPL_IF NAME="mine" -->
243 <form action="opac-shelves.pl" method="get">
244 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
245 <input type="hidden" name="display" value="privateshelves" />
246 <input type="hidden" name="op" value="modif" />
247 <input type="submit" class="editshelf" value="Edit" />
249 <form action="opac-shelves.pl" method="post">
250 <input type="hidden" name="shelves" value="1" />
251 <input type="hidden" name="display" value="privateshelves" />
252 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
253 <!-- TMPL_IF NAME="confirm" -->
254 <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
255 <input type="submit" class="confirm" value="Confirm" />
257 <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
260 <!-- /TMPL_IF -->
261 <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>
266 <tr><td colspan="4">No Private Lists.</td></tr>
267 <!-- /TMPL_IF --><!-- /shelveslooppriv -->
269 <!-- TMPL_ELSE --><!-- /loggedinusername -->
270 <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
271 <!-- /TMPL_IF --><!-- /loggedinusername -->
272 </div><!-- /privateshelves -->
274 <!-- TMPL_IF NAME="showpublicshelves" -->
275 <div id="publicshelves" class="tab-container" style="display:block;">
277 <div id="publicshelves" class="tab-container" style="display:none;">
279 <!-- TMPL_IF NAME="shelvesloop" -->
280 <!-- TMPL_VAR name='pagination_bar'-->
282 <tr><th>List Name</th><th>Contents</th><th>Type</th><th> </th></tr>
283 <!-- TMPL_LOOP NAME="shelvesloop" -->
284 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
285 <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
286 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
287 <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
288 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
289 <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
292 <!-- TMPL_IF NAME="mine" -->
293 <form action="opac-shelves.pl" method="get">
294 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
295 <input type="hidden" name="op" value="modif" />
296 <input type="submit" class="editshelf" value="Edit" />
298 <form action="opac-shelves.pl" method="post">
299 <input type="hidden" name="shelves" value="1" />
300 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
301 <!-- TMPL_IF NAME="confirm" -->
302 <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
303 <input type="submit" class="confirm" value="Confirm" />
305 <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
308 <!-- /TMPL_IF -->
309 <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>
315 <!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
316 <!-- /TMPL_IF --><!-- /shelvesloop -->
317 </div><!-- /publicshelves -->
318 <!-- /TMPL_UNLESS --><!-- /viewshelf --><!-- /TMPL_UNLESS --><!-- /edit --><!-- /TMPL_UNLESS --><!-- /shelves -->
320 <!-- TMPL_IF NAME="shelves" -->
321 <div id="addshelf"><form method="post" action="/cgi-bin/koha/opac-shelves.pl">
322 <fieldset class="rows">
323 <legend>Create a New List</legend>
324 <input type="hidden" name="shelves" value="1" />
325 <ol><li><label for="addshelf">List Name:</label>
326 <!-- TMPL_IF NAME="already" -->
327 <input id="addshelf" type="text" name="addshelf" value="<!-- TMPL_VAR NAME="already" -->" size="60" />
329 <input id="addshelf" type="text" name="addshelf" size="60" />
331 <input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /></li>
332 <li><label for="sortfield" >Sort this list by: </label>
333 <select name="sortfield">
334 <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
335 <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
336 <!-- TMPL_IF NAME="sort_year" --><option value="year" selected="selected">Year</option><!-- TMPL_ELSE --><option value="year">Year</option><!-- /TMPL_IF -->
338 <li><label for="category">Category:</label>
339 <select name="category" id="category">
340 <option value="1">Private</option>
341 <option value="2">Public</option>
345 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a></fieldset>
347 <!-- /TMPL_IF --><!-- /showadd -->
351 <!-- TMPL_IF EXPR="OpacNav||loggedinusername" -->
353 <div class="container">
354 <!-- TMPL_INCLUDE NAME="navigation.inc" -->
355 <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
357 </div><!-- /TMPL_IF -->
360 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->