synch'ing virtual shelves management in opac with the librarian one, that has more...
[koha.git] / koha-tmpl / opac-tmpl / css / en / opac-shelves.tmpl
1 <!-- TMPL_INCLUDE Name="opac-top.inc" -->
2 <div id="mainbloc">
3 <!-- TMPL_IF Name="viewshelf" -->
4         <form>
5                 <h1><!-- TMPL_VAR NAME="shelfname" --></h1>
6
7                 <div>
8                 <h2>Shelf content</h2>
9                         <table class="small">
10                                 <tr colspan="4">
11                                         <th>delete</th>
12                                         <th>barcode</th>
13                                         <th>title</th>
14                                         <th>Author</th>
15                                 </tr>
16                                 <!-- TMPL_LOOP Name="itemsloop" -->
17                                         <tr>
18                                                 <td bgcolor="<!-- TMPL_VAR NAME="color" -->"><input type="checkbox" name="REM-<!-- TMPL_VAR NAME="itemnumber" -->"></td>
19                                                 <td bgcolor="<!-- TMPL_VAR NAME="color" -->"><!-- TMPL_VAR NAME="barcode" --></td>
20                                                 <td bgcolor="<!-- TMPL_VAR NAME="color" -->"><a href="opac-MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
21                                                 <td bgcolor="<!-- TMPL_VAR NAME="color" -->"><!-- TMPL_VAR NAME="author" --></td>
22                                         </tr>
23                                 <!-- /TMPL_LOOP -->
24                         </table>
25                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
26                         <input type="hidden" name="modifyshelfcontents" value="1">
27                         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
28                         <!-- TMPL_IF name="manageshelf" -->
29                                 <input type="submit" value="Remove Selected Items" class="button">
30                         <!-- /TMPL_IF -->
31                         <a href="opac-shelves.pl" class="button">Shelf list</a>
32                 </div>
33         </form>
34
35         <!-- TMPL_IF name="manageshelf" -->
36         <div id="bloc20">
37                 <form>
38                 <h2>Add a book by barcode</h2>
39                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
40                         <input type="hidden" name="modifyshelfcontents" value="1">
41                         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
42                         <input name="addbarcode">
43                         <input type="hidden" name="modifyshelfcontents" value="1">
44                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
45                         <input type="submit" value="Save" class="button">
46                 </form>
47         </div>
48         <!-- /TMPL_IF -->
49 <!-- TMPL_ELSE -->
50         <!-- TMPL_IF Name="shelves" -->
51                 <h1>Bookshelves</h1>
52                 <!-- TMPL_IF Name="status1" -->
53                         <p class="problem"><!-- TMPL_VAR NAME="string1" --><p>
54                 <!-- /TMPL_IF -->
55                 <!-- TMPL_LOOP Name="paramsloop" -->
56                         <!-- TMPL_IF Name="status" -->
57                                 <p class="problem"><!-- TMPL_VAR NAME="string" --><p>
58                         <!-- /TMPL_IF -->
59                 <!-- /TMPL_LOOP -->
60                 <div id="bloc20">
61                                         <h2>Select Shelves to Delete</h2>
62                                         <form method="post">
63                                         <input type="hidden" name="shelves" value="1">
64                                                 <!-- TMPL_LOOP Name="shelvesloop" -->
65                                                 <!-- TMPL_IF name="canmanage" -->
66                                                 <p>
67                                                         <label>
68                                                                 <input type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->">
69                                                         </label>
70                                                                 <a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR name="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a> (<!-- TMPL_VAR NAME="shelfbookcount" --> item(s))
71                                                 </p>
72                                                 <!-- /TMPL_IF -->
73                                                 <!-- /TMPL_LOOP -->
74                                         <p>
75                                                 <input type="submit" value="Delete Shelves" class="button">
76                                         </p>
77                                         </form>
78                 </div>
79                 <div id="bloc60">
80                         <form method="post">
81                                 <input type="hidden" name="shelves" value="1">
82                                 <h2>Add Shelf</h2>
83                                 <p><label>Name</label><input type="text" name="addshelf" size="25"></p>
84                                 <p><label>Owner</label><input type="hidden" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"><!-- TMPL_VAR NAME="loggedinusername" --></p>
85                                 <p><label>Category</label>
86                                         <select name="category">
87                                                 <option value="1">Private</option>
88                                                 <option value="2">Public</option>
89                                                 <option value="3">Free</option>
90                                         </select>
91                                 </p>
92                                 <ul> <li>a private bookshelf is managed by you &amp; can be seen only by you.</li>
93                                         <li> A public can be seen by everybody, but managed only by you.</li>
94                                         <li> A free can be managed by any user.</li>
95                                 </ul>
96                                 <p>
97                                         <input type="submit" value="Add New Shelf" class="button">
98                                         <a href="opac-shelves.pl" class="button">back to shelf list</a>
99                                 </p>
100
101                         </form>
102                 </div>
103         <!-- TMPL_ELSE -->
104                 <div id="bloc20">
105                         <h2>Shelf list</h2>
106                         <table class="small">
107                                 <tr>
108                                         <th>Shelf name</th>
109                                         <th>Category</th>
110                                         <th>Content size</th>
111                                         <th>Modify</th>
112                                 </tr>
113                                 <!-- TMPL_LOOP Name="shelvesloop" -->
114                                 <tr>
115                                         <td bgcolor="<!-- TMPL_VAR NAME="color" -->">
116                                                 <a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->">
117                                                         <!-- TMPL_VAR NAME="shelfname" -->
118                                                 </a>
119                                         </td>
120                                         <td bgcolor="<!-- TMPL_VAR NAME="color" -->">
121                                                 <!-- TMPL_IF NAME="category1" -->
122                                                         Private
123                                                 <!-- /TMPL_IF -->
124                                                 <!-- TMPL_IF NAME="category2" -->
125                                                         Public
126                                                 <!-- /TMPL_IF -->
127                                                 <!-- TMPL_IF NAME="category3" -->
128                                                         Free
129                                                 <!-- /TMPL_IF -->
130                                         </td>
131                                         <td bgcolor="<!-- TMPL_VAR NAME="color" -->">
132                                                 <!-- TMPL_VAR NAME="shelfbookcount" --> item(s)
133                                         </td>
134                                         <!-- TMPL_IF name="mine" -->
135                                                 <td bgcolor="<!-- TMPL_VAR NAME="color" -->">
136                                                         <a href="opac-shelves.pl?op=modif&shelf=<!-- TMPL_VAR NAME="shelf" -->" class="button">Modify</a>
137                                                         <!-- TMPL_VAR name="surname" --><!-- TMPL_VAR name="firstname" -->
138                                                 </td>
139                                         <!-- /TMPL_IF -->
140                                 </tr>
141                                 <!-- /TMPL_LOOP -->
142                         </table>
143                 </div>
144                 <div id="bloc20">
145                         <a href="opac-shelves.pl?shelves=1" class="button">Add or Remove Book Shelves</a>
146                 </div>
147         <!-- /TMPL_IF -->
148 <!-- /TMPL_IF -->
149
150 <!-- TMPL_IF name="edit" -->
151         <div id="bloc20">
152                 <form method="post">
153                         <input type="hidden" name="op" value="modifsave">
154                         <h2>Modify shelf</h2>
155                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
156                         <p><label>Name</label><input type="text" name="shelfname" size="25" value="<!-- TMPL_VAR name="shelfname"-->"></p>
157                         <p><label>Owner</label><input type="hidden" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"><!-- TMPL_VAR NAME="loggedinusername" --></p>
158                         <p><label>Category</label>
159                                 <select name="category">
160                                         <!-- TMPL_IF name="category1" -->
161                                                 <option value="1" selected>Private</option>
162                                         <!-- TMPL_ELSE -->
163                                                 <option value="1">Private</option>
164                                         <!-- /TMPL_IF -->
165                                         <!-- TMPL_IF name="category2" -->
166                                                 <option value="2" selected>Public</option>
167                                         <!-- TMPL_ELSE -->
168                                                 <option value="2">Public</option>
169                                         <!-- /TMPL_IF -->
170                                         <!-- TMPL_IF name="category3" -->
171                                                 <option value="3" selected>Free</option>
172                                         <!-- TMPL_ELSE -->
173                                                 <option value="3">Free</option>
174                                         <!-- /TMPL_IF -->
175                                 </select>
176                         </p>
177                         <p> <li>a private bookshelf is managed by you &amp; can be seen only by you.</li>
178                                 <li> A public can be seen by everybody, but managed only by you.</li>
179                                 <li> A free can be managed by any user.</li>
180                         </p>
181                         <p>
182                                 <input type="submit" value="Save" class="button">
183                         </p>
184
185                 </form>
186         </div>
187 <!-- /TMPL_IF -->
188 </div>
189 <!-- TMPL_INCLUDE Name="opac-bottom.inc" -->