Ticket 1110 : Balance carts and lists
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / addbybiblionumber.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Add to List</title>
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
10 <div id="custom-doc" class="yui-t7">
11    <div id="bd">
12 <!-- TMPL_IF NAME="confirm" -->
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"--></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="CGIvirtualshelves"-->
26                         <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
27                 <fieldset class="rows"><legend>Select a List</legend>
28                         <ol><li>    <label for="shelfnumber">Add to list:</label> <!-- TMPL_VAR NAME="CGIvirtualshelves" --></li></ol>
29                         <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><!-- /TMPL_LOOP -->
30                 <input type="hidden" name="modifyshelfcontents" value="1" />
31                 <input type="hidden" name="confirmed" value="1" /></fieldset>
32                 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
33                         </form>
34                         <p>...or...</p>
35                 <!-- TMPL_ELSE -->
36                         <!-- TMPL_IF NAME="singleshelf" -->
37                                 <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
38                                 <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
39                                 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
40                                 <input type="hidden" name="modifyshelfcontents" value="1" />
41                                 <input type="hidden" name="confirmed" 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                         <!-- /TMPL_IF -->
45                 <!-- /TMPL_IF -->
46 <!-- TMPL_ELSE -->
47
48 <!-- TMPL_UNLESS NAME="biblioloop" -->
49   <h3>Add 
50     <i><!-- TMPL_VAR NAME="title" escape="html" --></i>
51     <!-- TMPL_IF NAME="author" -->
52         by <!-- TMPL_VAR NAME="author" -->
53     <!-- /TMPL_IF --> to a list
54   </h3>
55 <!-- TMPL_ELSE -->
56   <h3>Add to a list:</h3>
57   <h4>
58     <ul>
59       <!-- TMPL_LOOP NAME="biblioloop" -->
60         <li>
61           <i><!-- TMPL_VAR NAME="title" escape="html" --></i>
62              <!-- TMPL_IF NAME="author" -->
63                by <!-- TMPL_VAR NAME="author" -->
64              <!-- /TMPL_IF -->
65         </li>
66       <!-- /TMPL_LOOP -->    
67     </ul>
68   </h4>
69 <!-- /TMPL_UNLESS -->
70
71 <!-- TMPL_IF NAME="CGIvirtualshelves" --><form name="f1" method="post" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl">
72     <!-- TMPL_UNLESS NAME="biblionumbers" -->
73       <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
74     <!-- TMPL_ELSE -->
75       <input type="hidden" name="biblionumbers" value="<!-- TMPL_VAR NAME="biblionumbers" -->" />
76     <!-- /TMPL_UNLESS -->
77     <fieldset class="rows">
78     <legend>Select an existing list</legend>
79     <ol>
80         <li><label>Choose list</label><!-- TMPL_VAR NAME="CGIvirtualshelves" --></li>
81     </ol>
82     <!-- TMPL_UNLESS NAME="biblionumbers" -->
83       <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
84     <!-- TMPL_ELSE -->
85       <input type="hidden" name="biblionumbers" value="<!-- TMPL_VAR NAME="biblionumbers" -->" />
86     <!-- /TMPL_UNLESS -->
87     <fieldset class="action"><input type="submit" value="Save" class="submit" /></fieldset>
88         </fieldset>
89 </form>
90 <h4>...or...</h4><!-- /TMPL_IF -->
91
92 <form name="f2" method="post" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl">
93     <fieldset class="rows"><legend>Add to a new list:</legend>
94         <ol><li>
95             <label for="newvirtualshelf">
96                 List name:
97             </label>
98             <!-- TMPL_UNLESS NAME="biblionumbers" -->
99                           <input type="hidden" name="biblionumber" id="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
100             <!-- TMPL_ELSE -->
101                           <input type="hidden" name="biblionumbers" id="biblionumbers" value="<!-- TMPL_VAR NAME="biblionumbers" -->" />
102             <!-- /TMPL_UNLESS -->
103             <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
104         </li>
105         <li>
106             <label for="category">Category:</label>
107             <select name="category" id="category">
108                 <option value="1">Private</option>
109                 <option value="2">Public</option>
110                                 <option value="3">Free</option>
111             </select>
112         </li></ol>
113     <fieldset class="action"><input type="submit" value="Save" class="submit" /></fieldset> </fieldset>
114 </form>
115 <!-- /TMPL_IF -->
116 </div>
117
118 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->