bug 2991: Request hold on multiple items at one time.
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-shelves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;   <!-- 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.pack.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">
5 //<![CDATA[
6 $.tablesorter.addParser({
7     id: 'articles', 
8     is: function(s) {return false;  }, 
9     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
10     type: 'text' 
11 });
12
13 function holdSelections() {
14     var checkedBoxes = $(":checkbox:checked");
15     if ($(checkedBoxes).size() == 0) {
16         alert(MSG_NO_RECORD_SELECTED);
17     } else {
18         var bibs = "";
19         $(checkedBoxes).each(function(){
20             var name = $(this).attr("name");
21             bib = name.substr(4);
22             bibs += bib + "/";
23         });
24         document.location = "/cgi-bin/koha/opac-reserve.pl?biblionumbers="+bibs;
25     }
26 }
27
28        $(function() {
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({
32                 widgets : ['zebra'],
33                 <!-- TMPL_IF NAME="manageshelf" -->
34                 sortList: [[1,0]],
35                 headers: { 0: { sorter: false },1:{sorter: 'articles'}
36                 <!-- TMPL_ELSE -->
37                 sortList: [[0,0]],
38                 headers: { 0:{sorter:'articles'}
39                 <!-- /TMPL_IF -->
40                 }
41             }); 
42             $("#CheckAll").click(function(){
43                 $(".checkboxed").checkCheckboxes();
44                 return false;
45             });
46             $("#CheckNone").click(function(){
47                 $(".checkboxed").unCheckCheckboxes();
48                 return false;
49             });
50        });
51
52        $(document).ready(function(){
53            $(".hold").html("Place Hold");
54        });
55 //]]>
56 </script>
57 </head>
58 <!-- TMPL_IF NAME="loggedinusername" --><body id="opac-userlists"><!-- TMPL_ELSE --><body id="opac-lists"><!-- /TMPL_IF -->
59     <!-- TMPL_IF EXPR="OpacNav||loggedinusername" --><div id="doc3" class="yui-t1"><!-- TMPL_ELSE --><div id="doc3" class="yui-t7"><!-- /TMPL_IF -->
60  <div id="bd">
61 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
62
63   <div id="yui-main">
64    <div class="yui-b">
65 <div class="container">
66 <!-- TMPL_IF NAME="paramsloop" -->
67 <!-- TMPL_LOOP NAME="paramsloop" -->
68 <div class="yui-ge">
69     <div class="yui-u first">
70         <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <b><!-- TMPL_VAR NAME="already" --></b> already exists!</div><!-- /TMPL_IF -->
71         <!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
72         <!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF -->
73         <!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF -->
74         <!-- TMPL_IF NAME="need_confirm" -->
75         <div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
76             <br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
77             <br />Use the "Confirm" button below to confirm deletion.
78         </div>
79         <!-- /TMPL_IF -->
80         <!-- TMPL_IF NAME="nopermission" -->
81         <div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
82         <!-- /TMPL_IF -->
83         <!-- TMPL_IF NAME="failgetitem" -->
84         <div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
85         <!-- /TMPL_IF -->
86         <!-- TMPL_IF NAME="duplicatebiblio" -->
87         <div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
88         <!-- /TMPL_IF -->
89         <!-- TMPL_IF NAME="delete_ok" -->
90             <div class="dialog message">List <!-- TMPL_VAR NAME="delete_ok" --> Deleted.</div>
91         <!-- /TMPL_IF -->
92         <!-- TMPL_IF NAME="delete_fail" -->
93             <div class="dialog message">ERROR: Database error. Delete (list number <!-- TMPL_VAR NAME="delete_fail" -->) failed.</div>
94         <!-- /TMPL_IF -->
95         <!-- TMPL_IF NAME="unrecognized" -->
96             <div class="dialog message">ERROR: List number <!-- TMPL_VAR NAME="unrecognized" --> unrecognized.</div>
97         <!-- /TMPL_IF -->
98     </div>
99 </div>
100 <!-- /TMPL_LOOP -->
101 <!-- /TMPL_IF --> 
102
103     <div class="yui-g">
104     
105     
106     <!-- TMPL_IF NAME="viewshelf" -->
107     <!--  Viewing a particular shelf -->
108     <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="&gt;" border="0" /> <em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></h3>
109         <!-- TMPL_IF NAME="itemsloop" -->
110         <!-- TMPL_IF NAME="manageshelf" --><div><span class="checkall"></span>
111         <span class="clearall"></span> | <a class="editshelf" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&amp;op=modif">Edit List</a> <form method="post" action="opac-shelves.pl">
112 <input type="hidden" value="1" name="shelves"/>
113 <!-- TMPL_IF NAME="showprivateshelves" -->
114 <input type="hidden" name="display" value="privateshelves" />
115 <!-- /TMPL_IF -->
116 <input type="hidden" value="1" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->"/>
117 <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));"/></form>
118 <a href="#" class="send" 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>
119 <a href="#" class="hold" onClick="holdSelections();return false;"></a>
120 </div><!-- /TMPL_IF -->
121     <!-- TMPL_IF NAME="manageshelf" --><form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
122         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
123         <input type="hidden" name="modifyshelfcontents" value="1" /><!-- /TMPL_IF -->
124         <!-- TMPL_VAR name='pagination_bar'-->
125 <table id="listcontents">
126         <thead><tr>
127             <!-- TMPL_IF NAME="manageshelf" --><th>&nbsp;</th><!-- /TMPL_IF -->
128             <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
129             <th>Title</th>
130             <th>Author</th>
131             <th>Copyright</th>
132         </tr></thead>
133             <tbody><!-- TMPL_LOOP NAME="itemsloop" -->
134                 <!-- TMPL_IF NAME="toggle" -->
135         <tr class="highlight">
136                 <!-- TMPL_ELSE -->
137         <tr>
138                 <!-- /TMPL_IF -->
139                 <!-- TMPL_IF NAME="manageshelf" -->
140             <td>
141                 <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
142             </td>
143                 <!-- /TMPL_IF -->
144             <!-- TMPL_UNLESS NAME="item-level_itypes" --><td>
145                 <!-- TMPL_IF NAME="imageurl" -->
146                     <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" />
147                 </TMPL_IF>
148                 <!-- TMPL_VAR NAME="description" -->
149             </td> <!-- /TMPL_UNLESS -->
150
151             <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" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a>
152               <!-- TMPL_ELSE -->
153               <!-- 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" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a>
154               <!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a>
155               <!-- /TMPL_IF --><!-- /TMPL_IF -->
156               <!-- COinS / OpenURL --><span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=<!-- TMPL_VAR NAME="author" -->&amp;rft.btitle=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&amp;rft.date=<!-- TMPL_VAR NAME="publicationyear" -->&amp;rft.tpages=<!-- TMPL_VAR NAME="size" -->&amp;rft.isbn=<!-- TMPL_VAR NAME="isbn"  ESCAPE="url" -->&amp;rft.aucorp=&amp;rft.place=<!-- TMPL_VAR NAME="place" -->&amp;rft.pub=<!-- TMPL_VAR NAME="publisher" ESCAPE="url" -->&amp;rft.edition=<!-- TMPL_VAR NAME="edition" -->&amp;rft.series=<!-- TMPL_VAR NAME="series" -->&amp;rft.genre="></span>
157             </td>
158             <td><!-- TMPL_VAR NAME="author" --></td>
159             <td><!-- TMPL_VAR NAME="copyrightdate" --></td>
160         </tr>
161                 <!-- /TMPL_LOOP --></tbody><!-- /itemsloop -->
162     </table>
163             <!-- TMPL_ELSE -->
164         <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>
165             <!-- /TMPL_IF --><!-- /itemsloop -->
166     <!-- /TMPL_IF -->
167     <!-- /viewshelf -->
168
169     <!-- TMPL_IF NAME="manageshelf" -->
170     <!-- Editing shelf -->
171         <!-- TMPL_IF NAME="itemsloop" -->
172             <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
173             <input type="hidden" name="modifyshelfcontents" value="1" />
174             <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?'))" />
175         <!-- TMPL_ELSE -->
176 <form method="post" action="opac-shelves.pl">
177             <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
178             <input type="hidden" name="shelves" value="1" />
179             <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(_('Are you sure you want to delete this List?'))" />
180         <!-- /TMPL_IF -->
181         </form>
182     <!-- /TMPL_IF -->
183
184     <!-- TMPL_IF NAME="edit" -->
185     <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="&gt;" 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="&gt;" border="0" /> Editing</h3>
186         <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
187             <input type="hidden" name="op" value="modifsave" />
188             <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
189             <fieldset class="rows">
190             <ol>
191             <li><label for="shelfname">List Name: </label><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR NAME="shelfname" ESCAPE="html" -->" /></li>
192             <li><label for="sortfield" >Sort this list by: </label>
193             <select name="sortfield">
194             <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
195             <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
196             <!-- TMPL_IF NAME="sort_copyrightdate" --><option value="copyrightdate" selected="selected">Copyrightdate</option><!-- TMPL_ELSE --><option value="copyrightdate">Copyrightdate</option><!-- /TMPL_IF -->
197             </select></li>
198             <li><label for="category">Category: </label>
199                 <select name="category" id="category">
200                       <option value="1">Private</option>
201                       <option value="2">Public</option>
202                 </select>
203             </li>
204             </ol>
205             </fieldset>
206             <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>
207         </form>
208     <!-- /TMPL_IF -->
209
210    <!-- TMPL_UNLESS NAME="edit" --> <!-- TMPL_UNLESS NAME="viewshelf" --> <!-- TMPL_UNLESS NAME="shelves" -->
211         <h2>Lists</h2>
212         <ul class="link-tabs">
213         <!-- TMPL_IF NAME="showprivateshelves" -->
214             <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
215         <!-- TMPL_ELSE -->
216             <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
217         <!-- /TMPL_IF -->
218         <!-- TMPL_IF NAME="showpublicshelves" -->
219             <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
220         <!-- TMPL_ELSE -->
221             <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
222         <!-- /TMPL_IF -->
223         </ul>
224         <!-- TMPL_IF NAME="showprivateshelves" -->
225         <div id="privateshelves" class="tab-container" style="display:block;">
226         <!-- TMPL_ELSE -->
227         <div id="privateshelves" class="tab-container" style="display:none;">
228         <!-- /TMPL_IF -->
229         
230                 <!-- TMPL_IF NAME="loggedinusername" -->
231     <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a>
232             <!-- TMPL_IF NAME="shelveslooppriv" -->
233             <!-- TMPL_VAR name='pagination_bar'-->
234                 <table>
235                 <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>&nbsp;</th></tr>
236                 <!-- TMPL_LOOP NAME="shelveslooppriv" -->
237                     <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
238         <td><a href="opac-shelves.pl?display=privateshelves&viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"  --></a></td>
239         <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
240         <td><!-- TMPL_VAR NAME="sortfield" --></td>
241         <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
242             <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
243             <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
244         </td>
245         <td>
246             <!-- TMPL_IF NAME="mine" -->
247                 <form action="opac-shelves.pl" method="get">
248                     <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
249                     <input type="hidden" name="display" value="privateshelves" />
250                     <input type="hidden" name="op" value="modif" />
251                     <input type="submit" class="editshelf" value="Edit" />
252                 </form>
253                 <form action="opac-shelves.pl" method="post">
254                     <input type="hidden" name="shelves" value="1" />
255                     <input type="hidden" name="display" value="privateshelves" />
256                     <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
257                     <!-- TMPL_IF NAME="confirm" -->
258                     <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
259                     <input type="submit" class="confirm" value="Confirm" />
260                     <!-- TMPL_ELSE -->
261                     <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
262                     <!-- /TMPL_IF -->
263                 </form>
264             <!-- /TMPL_IF -->&nbsp;
265             <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         </td>
267         </tr>
268                 <!-- /TMPL_LOOP -->
269             <!-- TMPL_ELSE -->
270             <tr><td colspan="4">No Private Lists.</td></tr>
271             <!-- /TMPL_IF --><!-- /shelveslooppriv -->
272         </table>
273         <!-- TMPL_ELSE --><!-- /loggedinusername -->
274           <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
275         <!-- /TMPL_IF --><!-- /loggedinusername -->
276                 </div><!-- /privateshelves -->
277
278         <!-- TMPL_IF NAME="showpublicshelves" -->
279         <div id="publicshelves" class="tab-container" style="display:block;">
280         <!-- TMPL_ELSE -->
281         <div id="publicshelves" class="tab-container" style="display:none;">
282         <!-- /TMPL_IF -->
283         <!-- TMPL_IF NAME="shelvesloop" -->
284         <!-- TMPL_VAR name='pagination_bar'-->
285         <table>
286         <tr><th>List Name</th><th>Contents</th><th>Type</th><th>&nbsp;</th></tr>
287             <!-- TMPL_LOOP NAME="shelvesloop" -->
288                 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
289         <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"  --></a></td>
290         <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
291         <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
292             <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
293             <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
294         </td>
295     <td>
296             <!-- TMPL_IF NAME="mine" -->
297         <form action="opac-shelves.pl" method="get">
298           <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
299           <input type="hidden" name="op" value="modif" />
300           <input type="submit" class="editshelf" value="Edit" />
301         </form>
302         <form action="opac-shelves.pl" method="post">
303           <input type="hidden" name="shelves" value="1" />
304           <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
305           <!-- TMPL_IF NAME="confirm" -->
306           <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
307           <input type="submit" class="confirm" value="Confirm" />
308           <!-- TMPL_ELSE -->
309           <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
310           <!-- /TMPL_IF -->
311         </form>
312       <!-- /TMPL_IF -->&nbsp;
313       <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>
314     </td>
315                 </tr>
316             <!-- /TMPL_LOOP -->
317         </table>
318         <!-- TMPL_ELSE -->
319             <!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
320         <!-- /TMPL_IF --><!-- /shelvesloop -->
321         </div><!-- /publicshelves -->
322     <!-- /TMPL_UNLESS --><!-- /viewshelf --><!-- /TMPL_UNLESS --><!-- /edit --><!-- /TMPL_UNLESS --><!-- /shelves -->
323
324         <!-- TMPL_IF NAME="shelves" -->
325         <div id="addshelf"><form method="post" action="/cgi-bin/koha/opac-shelves.pl">
326         <fieldset class="rows">
327         <legend>Create a New List</legend>
328             <input type="hidden" name="shelves" value="1" />
329             <ol><li><label for="addshelf">List Name:</label>
330                 <!-- TMPL_IF NAME="already" -->
331                 <input id="addshelf" type="text" name="addshelf" value="<!-- TMPL_VAR NAME="already" -->" size="60" />
332                 <!-- TMPL_ELSE -->
333                 <input id="addshelf" type="text" name="addshelf" size="60" />
334                 <!-- /TMPL_IF -->
335                 <input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /></li>
336                 <li><label for="sortfield" >Sort this list by: </label>
337                 <select name="sortfield">
338                 <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
339                 <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
340                 <!-- TMPL_IF NAME="sort_copyrightdate" --><option value="copyrightdate" selected="selected">Copyrightdate</option><!-- TMPL_ELSE --><option value="copyrightdate">Copyrightdate</option><!-- /TMPL_IF -->
341                 </select></li>
342                 <li><label for="category">Category:</label>
343                 <select name="category" id="category">
344                     <option value="1">Private</option>
345                     <option value="2">Public</option>
346                 </select></li>
347 </ol>
348         </fieldset>
349             <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a></fieldset>
350         </form>    </div>
351     <!-- /TMPL_IF --><!-- /showadd -->
352     </div></div>
353    </div>
354   </div>
355 <!-- TMPL_IF EXPR="OpacNav||loggedinusername" -->
356   <div class="yui-b">
357   <div class="container">
358     <!-- TMPL_INCLUDE NAME="navigation.inc" -->
359     <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
360   </div>
361   </div><!-- /TMPL_IF -->
362  </div>
363 <!-- </div> -->
364
365 <!-- DEBUG -->
366 <div id="debug"></div>
367
368 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->