merging 2.2 branch with head. Sorry for not making it before, many many commits done...
[koha.git] / koha-tmpl / opac-tmpl / npl / en / opac-shelves.tmpl
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" -->
4
5 <div id="main">
6 <!-- TMPL_IF Name="viewshelf" -->
7 <form class="inline" action="/cgi-bin/koha/opac-shelves.pl" method="post" name="mainform">
8     <table>
9         <caption>Contents of <em><!-- TMPL_VAR Name="shelfname" --></em></caption>
10                 <tr>
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>&nbsp;</th><th>Title</th><th>Author</th><th>Call No.</th><th>Barcode</th><!-- TMPL_UNLESS NAME="itemsloop" --><th>&nbsp;</th><!-- /TMPL_UNLESS -->
12                 </tr>
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>
26                 <!-- /TMPL_IF -->
27         </table>
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>
29 <br /><br />
30 <form action="/cgi-bin/koha/opac-shelves.pl" method="post">
31         <table>
32                 <tr><th colspan="2">Add an Item to this Shelf by Barcode</th></tr>
33                 <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>
36                 </tr>
37         </table>
38 </form>
39 <!-- /TMPL_IF -->
40 <form class="inline" method="get" action="opac-shelves.pl"><input type="submit" class="submit" value="Back to Virtual Shelves" /></form>
41 <!-- TMPL_ELSE -->
42         <!-- TMPL_IF Name="shelves" -->
43                 <!-- TMPL_IF Name="status1" -->
44                         <p class="error"><!-- TMPL_VAR Name="string1" --></p>
45                 <!-- /TMPL_IF -->
46                 <!-- TMPL_LOOP Name="paramsloop" -->
47                         <!-- TMPL_IF Name="status" -->
48                                 <p class="error"><!-- TMPL_VAR Name="string" --></p>
49                         <!-- /TMPL_IF -->
50                 <!-- /TMPL_LOOP -->
51 <div id="center">
52 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
53                 <input type="hidden" name="shelves" value="1">
54                 <table>
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>
66                                         </form>
67                                 </div>          
68                 
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" />
72                                         <table>
73                                         <caption>Delete Virtual Shelves</caption>
74                                                 <tr><th>&nbsp;</th><th>Shelf Name</th><th>Contents</th></tr>
75                                                 <!-- TMPL_LOOP Name="shelvesloop" -->
76                                                 <!-- TMPL_IF name="canmanage" -->
77                                                 <tr>
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>
79                                                 <!-- /TMPL_IF -->
80                                                 <!-- /TMPL_LOOP -->
81                                         </table>
82                 <input type="submit" value="Delete Shelves" class="submit" /></form>
83                 <!-- /TMPL_IF -->
84                 <p><form class="inline" action="opac-shelves.pl" method="get"><input type="submit" class="submit" value="Back to Virtual Shelves" /></form></p>
85 </div>
86         <!-- TMPL_ELSE -->
87         <!-- TMPL_IF name="edit" -->
88                 <form method="post">
89                         <input type="hidden" name="op" value="modifsave">
90                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
91                         <table>
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>
98                                         <!-- TMPL_ELSE -->
99                                                 <option value="1">Private</option>
100                                         <!-- /TMPL_IF -->
101                                         <!-- TMPL_IF name="category2" -->
102                                                 <option value="2" selected>Public</option>
103                                         <!-- TMPL_ELSE -->
104                                                 <option value="2">Public</option>
105                                         <!-- /TMPL_IF -->
106                                         <!-- TMPL_IF name="category3" -->
107                                                 <option value="3" selected>Free</option>
108                                         <!-- TMPL_ELSE -->
109                                                 <option value="3">Free</option>
110                                         <!-- /TMPL_IF -->
111                                 </select></td></tr>
112                         </table>
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>
117
118                 </form>
119 <!-- /TMPL_IF -->
120 <table>
121 <caption>Virtual Shelves</caption>
122 <tr><th>Shelf Name</th><th>Category</th><th>Content Size</th><th>&nbsp;</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&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Modify</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
125                         <!-- /TMPL_LOOP -->
126                 </table>
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>
128         <!-- /TMPL_IF -->
129 <!-- /TMPL_IF -->
130
131 <br clear="both" />
132 </div>
133 </body>
134 </html>
135