1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Virtual Shelves</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 function confirmDelete(s){
11 * this function checks all checkbox
12 * or uncheck all if there are already checked.
15 var checkboxes = document.getElementsByTagName('input');
16 var nbCheckbox = checkboxes.length;
17 var check = areAllChecked();
19 for(var i=0;i<nbCheckbox;i++){
20 if(checkboxes[i].getAttribute('type') == "checkbox" ){
21 checkboxes[i].checked = check;
26 * this function return true if all checkbox are checked
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){
44 <!-- TMPL_INCLUDE NAME="header.inc" -->
45 <!-- TMPL_INCLUDE NAME="menu-virtualshelves.inc" -->
47 <div id="doc3" class="yui-t2">
51 <div class="yui-b"><div class="yui-g">
53 <!-- TMPL_IF NAME="viewshelf" -->
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&shelf=<!-- TMPL_VAR NAME="shelfnumber" -->">Edit this shelf</a></li>
58 <!-- /TMPL_IF --></ul>
61 <h3>Contents of <!-- TMPL_VAR NAME="shelfname" --></h3>
63 <form class="inline" action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post" name="mainform">
64 <!-- TMPL_IF NAME="itemsloop" -->
66 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
67 <input type="hidden" name="modifyshelfcontents" value="1" />
70 <a href="javascript:CheckAll();">
71 <small>(Un)Check All</small>
79 <!-- TMPL_LOOP NAME="itemsloop" -->
80 <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
82 <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
85 <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
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" -->
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" -->
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" -->
104 <td><!-- TMPL_VAR NAME="author" --></td>
105 <td><!-- TMPL_VAR NAME="classification" --></td>
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 -->
120 <!-- TMPL_IF name="manageshelf" -->
121 <!-- TMPL_IF NAME="itemsloop" -->
122 <b>With selected items :</b>
123 <input type="submit" "Remove"
125 onclick="return confirmDelete('Are you sure you want to remove these items from the shelf?')"
126 style="display:inline;"
131 <!-- TMPL_IF name="manageshelf" -->
133 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
135 <tr><th colspan="2">Add an item to this shelf by barcode</th></tr>
138 <label for="addbarcode">Barcode:</label>
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" />
151 <!-- TMPL_IF NAME="shelves" -->
152 <!-- TMPL_IF NAME="status1" -->
153 <p class="error"><!-- TMPL_VAR NAME="string1" --></p>
155 <!-- TMPL_LOOP NAME="paramsloop" -->
156 <!-- TMPL_IF NAME="status" -->
157 <p class="error"><!-- TMPL_VAR NAME="string" --></p>
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>
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>
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>
176 <p><input type="submit" value="Add a new shelf"></p>
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>
185 <tr><th> </th><th>Shelf name</th><th>Contents</th></tr>
186 <!-- TMPL_LOOP NAME="shelvesloop" -->
187 <!-- TMPL_IF name="canmanage" -->
190 <input type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" />
193 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a>
196 <!-- TMPL_VAR NAME="shelfvirtualcount" --> item(s)
202 <input type="submit" value="Delete shelves" /></form>
206 <p><form class="inline" action="/cgi-bin/koha/virtualshelves/shelves.pl" method="get"><input type="submit" value="Back to virtual shelves" /></form></p>
209 <!-- TMPL_IF name="edit" -->
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>
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>
221 <option value="1">Private</option>
223 <!-- TMPL_IF name="category2" -->
224 <option value="2" selected="selected">Public</option>
226 <option value="2">Public</option>
227 <!-- TMPL_IF NAME="category3" -->
228 <option value="3" selected="selected">Free</option>
230 <option value="3">Free</option>
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>
238 <p><input type="submit" value="Save changes"></p>
243 <h3>Virtual shelves</h3>
246 <tr><th>Shelf name</th><th>Category</th><th>Items</th><th> </th></tr>
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>
252 <!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
253 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
254 <!-- TMPL_IF NAME="viewcategory3" -->Free<!-- /TMPL_IF -->
256 <td><!-- TMPL_VAR NAME="shelfvirtualcount" --> </td>
257 <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>
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>
269 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
270 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->