Fix for Bug 3523 - Menu of existing lists limited to 10
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-addbybiblionumber.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Add to Your List
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <style type="text/css">
5    #custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; }
6    </style>
7 </head>
8 <body id="addtolist">
9 <div id="custom-doc" class="yui-t7">
10 <div id="useraddbybiblionumber" class="container">
11 <!-- TMPL_IF NAME="authorized" -->
12         <!-- TMPL_UNLESS NAME="newshelf" -->
13                 <!-- TMPL_IF NAME="multiple"-->
14                 <h1>Add <!-- TMPL_VAR NAME="total"--> items to <!-- TMPL_IF NAME="singleshelf" --><em><!-- TMPL_VAR NAME="shelfname" --></em>: <!-- TMPL_ELSE -->a list:<!-- /TMPL_IF --></h1>
15                 <!-- TMPL_ELSE -->
16                         <h1>Add to <!-- TMPL_IF NAME="singleshelf" --><em><!-- TMPL_VAR NAME="shelfname" --></em><!-- TMPL_ELSE -->a list:<!-- /TMPL_IF --></h1>
17                 <!-- /TMPL_IF -->
18         <ul>
19                 <!-- TMPL_LOOP NAME="biblios"-->
20                 <li> <span class="title"><!-- TMPL_VAR NAME="title" ESCAPE="html"--></span>
21                 <!-- TMPL_IF NAME="author"--><span class="author"> <!-- TMPL_VAR NAME="author"--> </span><!-- /TMPL_IF -->
22                 </li>
23         <!-- /TMPL_LOOP -->
24                 </ul>
25                 <!-- TMPL_IF NAME="existingshelves" -->
26                         <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
27                 <fieldset class="rows"><legend>Select a List</legend>
28                         <ol><li>    <label for="shelfnumber">Add to list:</label> <select name="shelfnumber" id="shelfnumber">
29                                 <!-- TMPL_IF NAME="privatevirtualshelves" --><optgroup label="Private Lists">
30                                         <!-- TMPL_LOOP NAME="privatevirtualshelves" -->
31                                         <option value="<!-- TMPL_VAR NAME="shelfnumber" -->"><!-- TMPL_VAR NAME="shelfname" --></option>
32                                         <!-- /TMPL_LOOP -->
33                                 </optgroup><!-- /TMPL_IF -->
34                                 <!-- TMPL_IF NAME="publicvirtualshelves" --><optgroup label="Public Lists">
35                                         <!-- TMPL_LOOP NAME="publicvirtualshelves" -->
36                                         <option value="<!-- TMPL_VAR NAME="shelfnumber" -->"><!-- TMPL_VAR NAME="shelfname" --></option>
37                                         <!-- /TMPL_LOOP -->
38                                 </optgroup><!-- /TMPL_IF -->
39                         </select></li></ol>
40                         <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><!-- /TMPL_LOOP -->
41                 <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
42                 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
43                         </form>
44                         <p>...or...</p>
45                 <!-- TMPL_ELSE -->
46                         <!-- TMPL_IF NAME="singleshelf" -->
47                                 <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
48                                 <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
49                                 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
50                                 <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
51                                 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
52                                 </form>
53                         <!-- /TMPL_IF -->
54                 <!-- /TMPL_IF -->
55         <!-- /TMPL_UNLESS -->
56         <!-- TMPL_UNLESS NAME="singleshelf" --><form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
57                 <fieldset class="rows">    <legend>Add to a New List:</legend>
58                 <ol><li>
59                 <label for="newvirtualshelf">
60                 List Name:
61                 </label>
62                 <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
63                 </li>
64                 <li><label for="category">Category:</label>
65                 <select name="category" id="category">
66                 <option value="1">Private</option>
67                 <option value="2">Public</option>
68                 </select></li></ol></fieldset>
69                 <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><!-- /TMPL_LOOP -->
70                 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
71                 </form>
72         <!-- /TMPL_UNLESS -->
73 <!-- TMPL_ELSE -->
74         <p align="center">
75                 This is not an open list.
76                 Items cannot be added to it.
77         </p>
78 <!-- /TMPL_IF -->
79 <p align="center">
80     <a href="#" class="close">Close this window.</a>
81 </p>
82 </div></div>
83 </body>
84 </html>