1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> Catalog -- <!-- TMPL_IF Name="viewshelf" -->Contents of <!-- TMPL_VAR Name="shelfname" --><!-- TMPL_ELSE -->List of Virtual Shelves<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2 <!--TMPL_INCLUDE NAME="masthead.inc" -->
3 <!--TMPL_INCLUDE NAME="navigation.inc" -->
6 <!-- TMPL_IF Name="viewshelf" -->
7 <form class="inline" action="/cgi-bin/koha/opac-shelves.pl" method="post" name="mainform">
9 <caption>Contents of <em><!-- TMPL_VAR Name="shelfname" --></em></caption>
11 <th><a href="/cgi-bin/koha/opac-shelves.pl" onclick="CheckAll(); return false;"><img src="<!-- TMPL_VAR NAME="themelang" -->/images/checkall.gif" height="18" width="18" alt="Check All" title="Check All" border="0" /></a></th><th> </th><th>Title</th><th>Author</th><th>Call No.</th><th>Barcode</th><!-- TMPL_UNLESS NAME="itemsloop" --><th> </th><!-- /TMPL_UNLESS -->
13 <!-- TMPL_IF NAME="itemsloop" -->
14 <!-- TMPL_LOOP Name="itemsloop" -->
15 <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
16 <td><input type="checkbox" name="REM-<!-- TMPL_VAR Name="itemnumber" -->" /><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
17 <input type="hidden" name="modifyshelfcontents" value="1" />
18 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR Name="shelfnumber" -->" /></td>
19 <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" /></td>
20 <td><a href="opac-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="classification" --></td>
23 <td><!-- TMPL_VAR Name="barcode" --></td>
24 </tr><!-- /TMPL_LOOP --><!-- TMPL_ELSE -->
25 <tr><td colspan="6">This shelf is empty.</td><!-- TMPL_UNLESS NAME="itemsloop" --><td><input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="hidden" name="shelves" value="1" /><input type="submit" class="icon delete" value="Delete this Shelf" onclick="return confirmDelete('Are you sure you want to delete this shelf?')" /></td><!-- /TMPL_UNLESS --></tr>
28 <!-- TMPL_IF name="manageshelf" --><!-- TMPL_IF NAME="itemsloop" --><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete('Are you sure you want to remove these items from the shelf?')" /><!-- /TMPL_IF --><!-- /TMPL_IF --></form><!-- TMPL_IF name="manageshelf" --> <form class="inline" method="get" action="/cgi-bin/koha/opac-shelves.pl"><input type="hidden" name="op" value="modif" /><input type="hidden" value="<!-- TMPL_VAR Name="shelfnumber" -->" name="shelf" /><input type="submit" value="Modify this Shelf" class="icon edit" /></form>
30 <form action="/cgi-bin/koha/opac-shelves.pl" method="post">
32 <tr><th colspan="2">Add an Item to this Shelf by Barcode</th></tr>
34 <td><label for="addbarcode">Barcode:</label></td>
35 <td><input name="addbarcode" type="text" id="addbarcode" size="14" maxlength="14" /><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR Name="shelfnumber" -->" /><input type="hidden" name="viewshelf" value="<!-- TMPL_VAR Name="shelfnumber" -->" /><input type="hidden" name="modifyshelfcontents" value="1" /><input type="submit" value="Save" class="submit" /></td>
40 <form class="inline" method="get" action="opac-shelves.pl"><input type="submit" class="submit" value="Back to Virtual Shelves" /></form>
42 <!-- TMPL_IF Name="shelves" -->
43 <!-- TMPL_IF Name="status1" -->
44 <p class="error"><!-- TMPL_VAR Name="string1" --></p>
46 <!-- TMPL_LOOP Name="paramsloop" -->
47 <!-- TMPL_IF Name="status" -->
48 <p class="error"><!-- TMPL_VAR Name="string" --></p>
52 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
53 <input type="hidden" name="shelves" value="1">
55 <caption>Create a New a Virtual Shelf</caption>
56 <tr><td><label for="addshelf">Shelf Name:</label> </td><td> <input id="addshelf" type="text" name="addshelf" size="25"></td></tr>
57 <tr><td><label for="owner">Owner:</label> </td><td><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->"><!-- TMPL_VAR name="loggedinusername" --></td></tr>
58 <tr><td><label for="category">Category:</label> </td><td><select name="category" id="category">
59 <option value="1">Private</option>
60 <option value="2">Public</option>
61 <option value="3">Free</option>
62 </select></td></tr></table>
63 <ul><li>A <strong>private</strong> virtual shelf is managed by you and can be seen only by you.</li><li> A <strong>public</strong> virtual shelf can be seen by everybody, but managed only by you.</li>
64 <li> A <strong>free</strong> virtual shelf can be added to and changed by any user.</li></ul>
65 <p><input type="submit" value="Add New Shelf" class="submit"></p>
69 <div id="right"><!-- TMPL_IF NAME="shelvesloop" -->
70 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" name="mainform">
71 <input type="hidden" name="shelves" value="1" />
73 <caption>Delete Virtual Shelves</caption>
74 <tr><th> </th><th>Shelf Name</th><th>Contents</th></tr>
75 <!-- TMPL_LOOP Name="shelvesloop" -->
76 <!-- TMPL_IF name="canmanage" -->
78 <td><input type="checkbox" name="DEL-<!-- TMPL_VAR Name="shelf" -->" /></td><td><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)</td></tr>
82 <input type="submit" value="Delete Shelves" class="submit" /></form>
84 <p><form class="inline" action="opac-shelves.pl" method="get"><input type="submit" class="submit" value="Back to Virtual Shelves" /></form></p>
87 <!-- TMPL_IF name="edit" -->
89 <input type="hidden" name="op" value="modifsave">
90 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
92 <caption>Modify Virtual Shelf <em><!-- TMPL_VAR name="shelfname"--></em></caption>
93 <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>
94 <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>
95 <tr><td><label for="category">Category: </label></td><td><select id="category" name="category">
96 <!-- TMPL_IF name="category1" -->
97 <option value="1" selected>Private</option>
99 <option value="1">Private</option>
101 <!-- TMPL_IF name="category2" -->
102 <option value="2" selected>Public</option>
104 <option value="2">Public</option>
106 <!-- TMPL_IF name="category3" -->
107 <option value="3" selected>Free</option>
109 <option value="3">Free</option>
113 <ul><li>A <strong>private</strong> virtual shelf is managed by you and can be seen <strong>only</strong> by you.</li>
114 <li> A <strong>public</strong> virtual shelf can be seen by <strong>everybody</strong>, but managed only by you.</li>
115 <li>A <strong>free</strong> virtual shelf can be added to or changed by <strong>any</strong> user.</li></ul>
116 <p><input type="submit" value="Save Changes" class="submit"></p>
121 <caption>Virtual Shelves</caption>
122 <tr><th>Shelf Name</th><th>Category</th><th>Content Size</th><th> </th></tr>
123 <!-- TMPL_LOOP Name="shelvesloop" -->
124 <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->><td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_IF NAME="category1" -->Private<!-- /TMPL_IF --><!-- TMPL_IF NAME="category2" -->Public<!-- /TMPL_IF --><!-- TMPL_IF NAME="category3" -->Free<!-- /TMPL_IF --></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)</td><td><!-- TMPL_IF name="mine" --><a href="opac-shelves.pl?op=modif&shelf=<!-- TMPL_VAR NAME="shelf" -->">Modify</a><!-- TMPL_ELSE --> <!-- /TMPL_IF --></td></tr>
127 <p><form action="opac-shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or Remove Book Shelves" class="submit" /></form></p>