1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Virtual Shelves</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!-- TMPL_INCLUDE NAME="menu-virtualshelves.inc" -->
8 <!-- TMPL_IF NAME="viewshelf" -->
10 <a class="button" href="/cgi-bin/koha/virtualshelves/shelves.pl">Back to virtual Shelves</a>
11 <!-- TMPL_IF name="manageshelf" -->
12 <a class="button" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&shelf=<!-- TMPL_VAR NAME="shelfnumber" -->">
17 <h3>Contents of <!-- TMPL_VAR NAME="shelfname" --></h3>
19 <form class="inline" action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post" name="mainform">
20 <!-- TMPL_IF NAME="itemsloop" -->
22 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
23 <input type="hidden" name="modifyshelfcontents" value="1" />
26 <a href="javascript:CheckAll();">
27 <small>(Un)Check All</small>
35 <!-- TMPL_LOOP NAME="itemsloop" -->
36 <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
38 <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
41 <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
44 <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
45 <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
46 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
49 <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
50 <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
51 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
54 <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
55 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
60 <td><!-- TMPL_VAR NAME="author" --></td>
61 <td><!-- TMPL_VAR NAME="classification" --></td>
67 <b>This shelf is empty.</b>
68 <!-- TMPL_UNLESS NAME="itemsloop" -->
69 <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" />
70 <input type="hidden" name="shelves" value="1" />
71 <input type="submit" class="icon delete"
72 value="Delete this shelf"
73 onclick="return confirmDelete('Are you sure you want to delete this shelf?')" />
76 <!-- TMPL_IF name="manageshelf" -->
77 <!-- TMPL_IF NAME="itemsloop" -->
78 <b>With selected items :</b>
82 onclick="return confirmDelete('Are you sure you want to remove these items from the shelf?')"
83 style="display:inline;"
88 <!-- TMPL_IF name="manageshelf" -->
91 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
93 <tr><th colspan="2">Add an item to this shelf by barcode</th></tr>
96 <label for="addbarcode">Barcode:</label>
99 <input name="addbarcode" type="text" id="addbarcode" size="14" maxlength="14" />
100 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
101 <input type="hidden" name="modifyshelfcontents" value="1" />
102 <input type="submit" value="Save" />
109 <!-- TMPL_IF NAME="shelves" -->
110 <!-- TMPL_IF NAME="status1" -->
111 <p class="error"><!-- TMPL_VAR NAME="string1" --></p>
113 <!-- TMPL_LOOP NAME="paramsloop" -->
114 <!-- TMPL_IF NAME="status" -->
115 <p class="error"><!-- TMPL_VAR NAME="string" --></p>
118 <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
119 <input type="hidden" name="shelves" value="1">
120 <h3>Create a new virtual shelf</h3>
122 <tr><th scope="row"><label for="addshelf">Shelf name:</label> </th><td> <input id="addshelf" type="text" name="addshelf" size="25"></td></tr>
123 <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>
124 <tr><th scope="row"><label for="category">Category:</label> </th><td><select name="category" id="category">
125 <option value="1">Private</option>
126 <option value="2">Public</option>
127 <option value="3">Free</option>
128 </select></td></tr></table>
130 <li>A <b>private</b> virtual shelf is managed by you and can be seen only by you.</li>
131 <li> A <b>public</b> virtual shelf can be seen by everybody, but managed only by you.</li>
132 <li> An <b>open</b> virtual shelf can be seen and managed by everybody.</li>
134 <p><input type="submit" value="Add a new shelf"></p>
137 <!-- TMPL_IF NAME="numberCanManage" -->
138 <!-- TMPL_IF NAME="shelvesloop" -->
139 <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl" name="mainform">
140 <input type="hidden" name="shelves" value="1" />
141 <h3>Delete virtual shelves</h3>
143 <tr><th> </th><th>Shelf name</th><th>Contents</th></tr>
144 <!-- TMPL_LOOP NAME="shelvesloop" -->
145 <!-- TMPL_IF name="canmanage" -->
148 <input type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" />
151 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a>
154 <!-- TMPL_VAR NAME="shelfvirtualcount" --> item(s)
160 <input type="submit" value="Delete shelves" /></form>
164 <p><form class="inline" action="/cgi-bin/koha/virtualshelves/shelves.pl" method="get"><input type="submit" value="Back to virtual shelves" /></form></p>
167 <!-- TMPL_IF name="edit" -->
169 <input type="hidden" name="op" value="modifsave">
170 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
171 <h3>Edit virtual shelf '<!-- TMPL_VAR name="shelfname"-->'</h3>
173 <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>
174 <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>
175 <tr><td><label for="category">Category: </label></td><td><select id="category" name="category">
176 <!-- TMPL_IF name="category1" -->
177 <option value="1" selected>Private</option>
179 <option value="1">Private</option>
181 <!-- TMPL_IF name="category2" -->
182 <option value="2" selected>Public</option>
184 <option value="2">Public</option>
185 <!-- TMPL_IF NAME="category3" -->
186 <option value="3" selected>Free</option>
188 <option value="3">Free</option>
192 <ul><li>A <strong>private</strong> virtual shelf is managed by you and can be seen <strong>only</strong> by you.</li>
193 <li> A <strong>public</strong> virtual shelf can be seen by <strong>everybody</strong>, but managed only by you.</li>
194 <li> A <b>free</b> virtual shelf can be seen and managed by everybody.</li>
196 <p><input type="submit" value="Save changes"></p>
201 <h3>Virtual shelves</h3>
204 <tr><th>Shelf name</th><th>Category</th><th>Items</th><th> </th></tr>
206 <!-- TMPL_LOOP NAME="shelvesloop" -->
207 <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
208 <td><a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
210 <!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
211 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
212 <!-- TMPL_IF NAME="viewcategory3" -->Free<!-- /TMPL_IF -->
214 <td><!-- TMPL_VAR NAME="shelfvirtualcount" --> </td>
215 <td><!-- TMPL_IF name="mine" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a><!-- TMPL_ELSE --> <!-- /TMPL_IF --></td></tr>
219 <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>
225 <script type="text/javascript">
226 function confirmDelete(s){
227 if (window.confirm(s))
232 * this function checks all checkbox
233 * or uncheck all if there are already checked.
236 var checkboxes = document.getElementsByTagName('input');
237 var nbCheckbox = checkboxes.length;
238 var check = areAllChecked();
240 for(var i=0;i<nbCheckbox;i++){
241 if(checkboxes[i].getAttribute('type') == "checkbox" ){
242 checkboxes[i].checked = check;
247 * this function return true if all checkbox are checked
249 function areAllChecked(){
250 var checkboxes = document.getElementsByTagName('input');
251 var nbCheckbox = checkboxes.length;
252 for(var i=0;i<nbCheckbox;i++){
253 if(checkboxes[i].getAttribute('type') == "checkbox" ){
254 if(checkboxes[i].checked == 0){
264 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->