Continuing addition of resident search form, other markup corrections.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / shelves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; <!-- TMPL_IF NAME="viewshelf" -->Virtual Shelves &rsaquo; Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Virtual Shelves<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5         function confirmDelete(s){
6                 if (window.confirm(s))
7                         return true;
8                 return false;
9         }
10         /**
11          * this function checks all checkbox 
12          * or uncheck all if there are already checked.
13          */
14         function CheckAll(){
15                 var checkboxes = document.getElementsByTagName('input');
16                 var nbCheckbox = checkboxes.length;
17                 var check = areAllChecked();
18                 check = !check;
19                 for(var i=0;i<nbCheckbox;i++){
20                         if(checkboxes[i].getAttribute('type') == "checkbox" ){
21                                 checkboxes[i].checked = check;
22                         }
23                 }
24         }
25         /**
26          * this function return true if all checkbox are checked
27          */
28         function areAllChecked(){
29                 var checkboxes = document.getElementsByTagName('input');
30                 var nbCheckbox = checkboxes.length;
31                 for(var i=0;i<nbCheckbox;i++){
32                         if(checkboxes[i].getAttribute('type') == "checkbox" ){
33                                 if(checkboxes[i].checked == 0){
34                                         return false;
35                                 }
36                         }
37                 }
38                 return true;
39         }
40         
41 </script>
42 </head>
43 <body>
44 <!-- TMPL_INCLUDE NAME="header.inc" -->
45 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
46
47 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalogue</a>  &rsaquo; <!-- TMPL_IF NAME="viewshelf" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a> &rsaquo; Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i><!-- TMPL_ELSE -->Virtual Shelves<!-- /TMPL_IF --></div>
48
49 <div id="doc3" class="yui-t2">
50    
51    <div id="bd">
52         <div id="yui-main">
53         <div class="yui-b">
54
55 <!-- TMPL_IF NAME="viewshelf" -->
56 <div id="action">
57 <ul>    <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Back to virtual Shelves</a></li>
58     <!-- TMPL_IF name="manageshelf" -->
59     <li><a  href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelfnumber" -->">Edit this shelf</a></li>
60     <!-- /TMPL_IF --></ul>
61 </div>
62
63 <h3>Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i></h3>
64
65 <form class="inline" action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post" name="mainform">
66     <!-- TMPL_IF NAME="itemsloop" -->
67     <table>
68         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
69         <input type="hidden" name="modifyshelfcontents" value="1" />
70             <tr>
71                 <th>
72                     <a href="javascript:CheckAll();">
73                         <small>(Un)Check All</small>
74                     </a>
75                 </th>
76                 <th>&nbsp;</th>
77                 <th>Title</th>
78                 <th>Author</th>
79                 <th>Call No.</th>
80             </tr>
81         <!-- TMPL_LOOP NAME="itemsloop" -->
82             <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
83                     <td>
84                         <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
85                     </td>
86                     <td>
87                         <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
88                     </td>
89                     <td>
90                 <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
91                             <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
92                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
93                             </a>
94                         <!-- TMPL_ELSE -->
95                             <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
96                                 <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
97                                     <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
98                                 </a>
99                             <!-- TMPL_ELSE -->
100                                 <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
101                                     <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
102                                 </a>
103                             <!-- /TMPL_IF -->
104                         <!-- /TMPL_IF -->
105                     </td>
106                     <td><!-- TMPL_VAR NAME="author" --></td>
107                     <td><!-- TMPL_VAR NAME="classification" --></td>
108         </tr>
109         <!-- /TMPL_LOOP -->
110     </table>
111     <!-- TMPL_ELSE -->
112
113     <p><b>This shelf is empty.</b></p>
114     <!-- TMPL_UNLESS NAME="itemsloop" -->
115         <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" />
116         <input type="hidden" name="shelves" value="1" />
117         <input type="submit" class="icon delete"
118                value="Delete this shelf"
119                onclick="return confirmDelete('Are you sure you want to delete this shelf?')" />
120         <!-- /TMPL_UNLESS -->
121         <!-- /TMPL_IF -->
122     <!-- TMPL_IF name="manageshelf" -->
123         <!-- TMPL_IF NAME="itemsloop" -->
124             <b>With selected items :</b>
125             <input type="submit" "Remove"
126                    class="icon delete"
127                    onclick="return confirmDelete('Are you sure you want to remove these items from the shelf?')"
128                    style="display:inline;"
129                    />
130         <!-- /TMPL_IF -->
131         <!-- /TMPL_IF -->
132 </form>
133     <!-- TMPL_IF name="manageshelf" -->
134     
135 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
136     <table>
137         <tr><th colspan="2">Add an item to this shelf by barcode</th></tr>
138         <tr>
139             <td>
140                 <label for="addbarcode">Barcode:</label>
141             </td>
142             <td>
143                 <input name="addbarcode" type="text" id="addbarcode" size="14" maxlength="14" />
144                 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
145                 <input type="hidden" name="modifyshelfcontents" value="1" />
146                 <input type="submit" value="Save" />
147             </td>
148         </tr>
149     </table>
150 </form>
151 <!-- /TMPL_IF -->
152 <!-- TMPL_ELSE -->
153     <!-- TMPL_IF NAME="shelves" -->
154         <!-- TMPL_IF NAME="status1" -->
155             <p class="error"><!-- TMPL_VAR NAME="string1" --></p>
156         <!-- /TMPL_IF -->
157         <!-- TMPL_LOOP NAME="paramsloop" -->
158             <!-- TMPL_IF NAME="status" -->
159                 <p class="error"><!-- TMPL_VAR NAME="string" --></p>
160             <!-- /TMPL_IF -->
161         <!-- /TMPL_LOOP -->
162     <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
163         <input type="hidden" name="shelves" value="1">
164         <h3>Create a new virtual shelf</h3>
165         <table>
166         <tr><th scope="row"><label for="addshelf">Shelf name:</label> </th><td> <input id="addshelf" type="text" name="addshelf" size="25"></td></tr>
167         <tr><th scope="row"><label for="owner">Owner:</label> </th><td><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->"><!-- TMPL_VAR name="loggedinusername" --></td></tr>
168         <tr><th scope="row"><label for="category">Category:</label> </th><td><select name="category" id="category">
169                                     <option value="1">Private</option>
170                                     <option value="2">Public</option>
171                                                                         <option value="3">Free</option>
172                                     </select></td></tr></table>
173         <ul>
174             <li>A <b>private</b> virtual shelf is managed by you and can be seen only by you.</li>
175             <li> A <b>public</b> virtual shelf can be seen by everybody, but managed only by you.</li>
176                         <li> An <b>open</b> virtual shelf can be seen and managed by everybody.</li>
177         </ul>
178                                 <p><input type="submit" value="Add a new shelf"></p>
179                     </form>
180         
181         <!-- TMPL_IF NAME="numberCanManage" -->
182         <!-- TMPL_IF NAME="shelvesloop" -->
183         <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl" name="mainform">
184                     <input type="hidden" name="shelves" value="1" />
185                     <h3>Delete virtual shelves</h3>
186                     <table>
187                         <tr><th>&nbsp;</th><th>Shelf name</th><th>Contents</th></tr>
188                         <!-- TMPL_LOOP NAME="shelvesloop" -->
189                         <!-- TMPL_IF name="canmanage" -->
190                         <tr>
191                             <td>
192                                 <input type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" />
193                             </td>
194                             <td>
195                                 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a>
196                             </td>
197                             <td>
198                                 <!-- TMPL_VAR NAME="shelfvirtualcount" --> item(s)
199                             </td>
200                         </tr>
201                         <!-- /TMPL_IF -->
202                         <!-- /TMPL_LOOP -->
203                     </table>
204         <input type="submit" value="Delete shelves" /></form>
205         <!-- /TMPL_IF -->
206         <!-- /TMPL_IF -->
207
208         <p><form class="inline" action="/cgi-bin/koha/virtualshelves/shelves.pl" method="get"><input type="submit" value="Back to virtual shelves" /></form></p>
209
210     <!-- TMPL_ELSE -->
211     <!-- TMPL_IF name="edit" -->
212         <form method="post">
213             <input type="hidden" name="op" value="modifsave">
214             <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
215 <h3>Edit virtual shelf '<!-- TMPL_VAR name="shelfname"-->'</h3>
216             <table>
217             <tr><td><label for="shelfname">Shelf name: </label></td><td><input type="text" id="shelfname" name="shelfname" size="25" value="<!-- TMPL_VAR name="shelfname"-->" /></td></tr>
218             <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>
219             <tr><td><label for="category">Category: </label></td><td><select id="category" name="category">
220                     <!-- TMPL_IF name="category1" -->
221                         <option value="1" selected="selected">Private</option>
222                     <!-- TMPL_ELSE -->
223                         <option value="1">Private</option>
224                     <!-- /TMPL_IF -->
225                     <!-- TMPL_IF name="category2" -->
226                         <option value="2" selected="selected">Public</option>
227                     <!-- TMPL_ELSE -->
228                         <option value="2">Public</option>
229                                         <!-- TMPL_IF NAME="category3" -->
230                                                 <option value="3" selected="selected">Free</option>
231                                         <!-- TMPL_ELSE -->
232                                                 <option value="3">Free</option>
233                     <!-- /TMPL_IF -->
234                 </select></td></tr>
235             </table>
236             <ul><li>A <strong>private</strong> virtual shelf is managed by you and can be seen <strong>only</strong> by you.</li>
237                 <li> A <strong>public</strong> virtual shelf can be seen by <strong>everybody</strong>, but managed only by you.</li>
238                                  <li> A <b>free</b> virtual shelf can be seen and managed by everybody.</li>
239             </ul>
240             <p><input type="submit" value="Save changes"></p>
241
242         </form>
243 <!-- /TMPL_IF -->
244 <!-- /TMPL_IF -->
245 <h3>Virtual shelves</h3>
246
247 <table>
248 <tr><th>Shelf name</th><th>Category</th><th>Items</th><th>&nbsp;</th></tr>
249
250 <!-- TMPL_LOOP NAME="shelvesloop" -->
251 <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
252 <td><a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
253 <td>
254 <!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
255 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
256 <!-- TMPL_IF NAME="viewcategory3" -->Free<!-- /TMPL_IF -->
257 </td>
258 <td><!-- TMPL_VAR NAME="shelfvirtualcount" --> </td>
259 <td><!-- TMPL_IF name="mine" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
260
261 <!-- /TMPL_LOOP -->
262 </table>
263         <p><form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or remove virtual shelves" /></form></p>
264     <!-- /TMPL_IF -->
265
266 </div>
267 </div>
268 <div class="yui-b">
269 <!-- TMPL_INCLUDE NAME="cat-menu.inc" -->
270 </div>
271 </div>
272 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->