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" --><!-- 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.pack.js"></script>
3 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pack.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" -->sortList: [[2,0]],<!-- TMPL_ELSE -->sortList: [[1,0]],<!-- /TMPL_IF -->
19 headers: { 0: { sorter: false },<!-- TMPL_IF NAME="manageshelf" -->1: { sorter: false },2: { sorter: 'articles' }<!-- TMPL_ELSE -->1:{sorter: 'articles' }<!-- /TMPL_IF -->
22 $("#CheckAll").click(function(){
23 $(".checkboxed").checkCheckboxes();
26 $("#CheckNone").click(function(){
27 $(".checkboxed").unCheckCheckboxes();
35 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
37 <div id="doc3" class="yui-t1">
42 <!-- TMPL_IF NAME="paramsloop" -->
43 <!-- TMPL_LOOP NAME="paramsloop" -->
45 <div class="yui-u first">
46 <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <b><!-- TMPL_VAR NAME="already" --></b> already exists!</div><!-- /TMPL_IF -->
47 <!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
48 <!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF -->
49 <!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF -->
50 <!-- TMPL_IF NAME="need_confirm" -->
51 <div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
52 <br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
53 <br />Use the "Confirm" button below to confirm deletion.
56 <!-- TMPL_IF NAME="nopermission" -->
57 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
59 <!-- TMPL_IF NAME="failgetitem" -->
60 <div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
62 <!-- TMPL_IF NAME="duplicatebiblio" -->
63 <div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
65 <!-- TMPL_IF NAME="delete_ok" -->
66 <div class="dialog message">List <!-- TMPL_VAR NAME="delete_ok" --> Deleted.</div>
68 <!-- TMPL_IF NAME="delete_fail" -->
69 <div class="dialog message">ERROR: Database error. Delete (list number <!-- TMPL_VAR NAME="delete_fail" -->) failed.</div>
71 <!-- TMPL_IF NAME="unrecognized" -->
72 <div class="dialog message">ERROR: List number <!-- TMPL_VAR NAME="unrecognized" --> unrecognized.</div>
80 <!-- TMPL_IF NAME="viewshelf" -->
81 <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" --></em></h3>
82 <!-- TMPL_IF NAME="itemsloop" -->
83 <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
84 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
85 <input type="hidden" name="modifyshelfcontents" value="1" />
86 <!-- TMPL_IF NAME="manageshelf" --><span class="checkall"></span>
87 <span class="clearall"></span><!-- /TMPL_IF --><table id="listcontents">
89 <!-- TMPL_IF NAME="manageshelf" --><th> </th><!-- /TMPL_IF -->
90 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
95 <tbody><!-- TMPL_LOOP NAME="itemsloop" -->
96 <!-- TMPL_IF NAME="toggle" -->
97 <tr class="highlight">
101 <!-- TMPL_IF NAME="manageshelf" -->
103 <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
106 <!-- TMPL_UNLESS NAME="item-level_itypes" --><td>
107 <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /><!-- TMPL_VAR NAME="description" -->
108 </td> <!-- /TMPL_UNLESS -->
110 <td><!-- TMPL_IF NAME="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><!-- TMPL_IF NAME="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --><!-- /TMPL_IF --></td>
111 <td><!-- TMPL_VAR NAME="author" --></td>
112 <td><!-- TMPL_VAR NAME="copyrightdate" --></td>
114 <!-- /TMPL_LOOP --></tbody><!-- /itemsloop -->
117 <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>
118 <!-- /TMPL_IF --><!-- /itemsloop -->
119 <!-- /TMPL_IF --><!-- /viewshelf -->
121 <!-- TMPL_IF NAME="manageshelf" -->
122 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
123 <!-- TMPL_IF NAME="itemsloop" -->
124 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
125 <input type="hidden" name="modifyshelfcontents" value="1" />
126 <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?')" />
128 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
129 <input type="hidden" name="shelves" value="1" />
130 <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete('Are you sure you want to delete this List?')" />
135 <!-- TMPL_IF NAME="edit" -->
136 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
137 <input type="hidden" name="op" value="modifsave" />
138 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
141 <caption>Edit List <em><!-- TMPL_VAR NAME="shelfname" --></em></caption>
142 <tr><th><label for="shelfname">List Name: </label></th><td><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR NAME="shelfname"-->" /></td></tr>
143 <tr><th><label for="sortfield" >Select sort field for this List: </label></th>
144 <td><select name="sortfield">
145 <option value="title" <!-- TMPL_IF NAME="sort_title" -->selected="1"<!-- /TMPL_IF -->>title</option>
146 <option value="author" <!-- TMPL_IF NAME="sort_author" -->selected="1"<!-- /TMPL_IF -->>author</option>
147 <option value="copyrightdate" <!-- TMPL_IF NAME="sort_copyrightdate" -->selected="1"<!-- /TMPL_IF -->>copyrightdate</option>
150 <p><input type="hidden" name="category" value="1" /><input type="submit" value="Save Changes" class="submit" /></p>
155 <!-- TMPL_UNLESS NAME="viewshelf" -->
157 <ul class="link-tabs">
158 <!-- TMPL_IF NAME="showprivateshelves" -->
159 <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
161 <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
163 <!-- TMPL_IF NAME="showpublicshelves" -->
164 <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
166 <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
169 <!-- TMPL_IF NAME="showprivateshelves" -->
170 <div id="privateshelves" class="tab-container" style="display:block;">
172 <div id="privateshelves" class="tab-container" style="display:none;">
175 <!-- TMPL_IF NAME="loggedinusername" -->
177 <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th> </th></tr>
178 <!-- TMPL_IF NAME="shelveslooppriv" -->
179 <!-- TMPL_LOOP NAME="shelveslooppriv" -->
180 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
181 <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
182 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
183 <td><!-- TMPL_VAR NAME="sortfield" --></td>
184 <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
185 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
186 <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
189 <!-- TMPL_IF NAME="mine" -->
190 <form action="opac-shelves.pl" method="get">
191 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
192 <input type="hidden" name="op" value="modif" />
193 <input type="submit" value="Edit" />
195 <form action="opac-shelves.pl" method="post">
196 <input type="hidden" name="shelves" value="1" />
197 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
198 <!-- TMPL_IF NAME="confirm" -->
199 <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
200 <input type="submit" class="confirm" value="Confirm" />
202 <input type="submit" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
205 <!-- /TMPL_IF -->
210 <tr><td colspan="4">No Private Lists.</td></tr>
211 <!-- /TMPL_IF --><!-- /shelveslooppriv -->
213 <!-- TMPL_ELSE --><!-- /loggedinusername -->
214 <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
215 <!-- /TMPL_IF --><!-- /loggedinusername -->
216 </div><!-- /privateshelves -->
218 <!-- TMPL_IF NAME="showpublicshelves" -->
219 <div id="publicshelves" class="tab-container" style="display:block;">
221 <div id="publicshelves" class="tab-container" style="display:none;">
223 <!-- TMPL_IF NAME="shelvesloop" -->
225 <tr><th>List Name</th><th>Contents</th><th>Type</th></tr>
226 <!-- TMPL_LOOP NAME="shelvesloop" -->
227 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
228 <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
229 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
230 <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
231 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
232 <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
238 <!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
239 <!-- /TMPL_IF --><!-- /shelvesloop -->
240 </div><!-- /publicshelves -->
241 <!-- /TMPL_UNLESS --><!-- /viewshelf -->
243 <!-- TMPL_IF NAME="showadd" -->
244 <div id="addshelf"><form method="post" action="/cgi-bin/koha/opac-shelves.pl">
245 <fieldset class="rows">
246 <legend>Create a New List</legend>
247 <input type="hidden" name="shelves" value="1" />
248 <ol><li><label for="addshelf">List Name:</label>
249 <!-- TMPL_IF NAME="already" -->
250 <input id="addshelf" type="text" name="addshelf" value="<!-- TMPL_VAR NAME="already" -->" size="60" />
252 <input id="addshelf" type="text" name="addshelf" size="60" />
254 <input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /></li>
257 <fieldset class="action"><input type="hidden" name="category" value="1" /><input type="submit" value="Add New List" class="submit" /></fieldset>
259 <!-- /TMPL_IF --><!-- /showadd -->
264 <!-- TMPL_INCLUDE NAME="navigation.inc" -->
265 <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
269 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->