Add multiple items to virt shelf, and bugvix virtual shelf adds.
[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 My Virtual Shelf
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>
9 <div id="custom-doc" class="yui-t7">
10
11 <!-- TMPL_IF NAME="multiple"-->
12     <h1>Add <!-- TMPL_VAR NAME="total"--> items to a book list:</h1>
13 <!-- TMPL_ELSE -->
14         <h1>Add to a book list:</h1>
15 <!-- /TMPL_IF -->
16      <ul> <!-- TMPL_LOOP NAME="biblios"-->
17            <li> <span class="title"><!-- TMPL_VAR NAME="title"--></span> 
18             <!-- TMPL_IF NAME="author"--><span class="author"> <!-- TMPL_VAR NAME="author"--> </span><!-- /TMPL_IF -->
19             </li>
20         <!-- /TMPL_LOOP -->
21 </ul>
22 <!-- TMPL_IF NAME="CGIvirtualshelves"-->
23 <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
24     <fieldset class="rows"><legend>Select an Existing List</legend>
25 <ol><li>    <label for="shelfnumber">Add to list:</label> <!-- TMPL_VAR NAME="CGIvirtualshelves" --></li></ol>
26  <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
27     <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
28     <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="#" onclick="closePopup();">Cancel</a></fieldset>
29 </form>
30 <p>...or...</p>
31 <!-- /TMPL_IF -->
32
33 <form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
34 <fieldset class="rows">    <legend>Add to a New List:</legend>
35         <ol><li>
36             <label for="newvirtualshelf">
37                 Shelf Name:
38             </label>
39             <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
40         </li>
41          <li><label for="category">Category:</label>
42             <select name="category" id="category">
43                 <option value="1">Private</option>
44                 <option value="2">Public</option>
45             </select></li></ol></fieldset>
46  <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
47     <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="#" onclick="closePopup();">Cancel</a></fieldset>
48 </form>
49
50 <p align="center">
51     <br /><br />
52     <a href="javascript:closePopup();">close this window.</a>
53 </p>
54
55 <script type="text/javascript" language="javascript">
56     function closePopup () {
57         window.close();
58     }
59 </script>
60
61 </body>
62 </html>