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