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