New programmer templates for the OPAC. Markup has been pared down, but structure...
[koha.git] / koha-tmpl / opac-tmpl / prog / 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
7 <ul><li>         <a href="/cgi-bin/koha/opac-account.pl">my fines</a> </li> <li> 
8         <a href="/cgi-bin/koha/opac-userdetails.pl">my personal details</a>             <!-- TMPL_IF name="OpacPasswordChange" --> </li> <li> <a href="/cgi-bin/koha/opac-passwd.pl">change my password</a> <!-- /TMPL_IF --><!-- TMPL_IF NAME="opacreadinghistory" --></li> <li> <a href="/cgi-bin/koha/opac-readingrecord.pl">my reading history</a><!-- /TMPL_IF --> <!-- TMPL_IF name="virtualshelves" --> </li> <li> <a href="/cgi-bin/koha/opac-shelves.pl" class="button">my book lists</a> <!-- /TMPL_IF --><!-- TMPL_IF name="suggestion" --></li> <li> <a href="/cgi-bin/koha/opac-suggestions.pl">purchase suggestions</a><!-- /TMPL_IF --></li></ul>
9
10 <!-- TMPL_IF Name="viewshelf" -->
11
12 <h3>Contents of <!-- TMPL_VAR Name="shelfname" --></h3>
13
14 <form class="inline" action="/cgi-bin/koha/opac-shelves.pl" method="post" name="mainform">
15     <table>
16                 <tr>
17                         <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><!-- TMPL_UNLESS NAME="itemsloop" --><th>&nbsp;</th><!-- /TMPL_UNLESS -->
18                 </tr>
19                 <!-- TMPL_IF NAME="itemsloop" -->
20                 <!-- TMPL_LOOP Name="itemsloop" -->
21                         <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
22                                         <td><input type="checkbox" name="REM-<!-- TMPL_VAR Name="itemnumber" -->" /><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
23         <input type="hidden" name="modifyshelfcontents" value="1" />
24         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR Name="shelfnumber" -->" /></td>
25                                         <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" /></td>
26                                         <td><a href="opac-detail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR Name="title" --></a></td>
27                                         <td><!-- TMPL_VAR Name="author" --></td>
28                                         <td><!-- TMPL_VAR NAME="classification" --></td>
29                 </tr><!-- /TMPL_LOOP --><!-- TMPL_ELSE -->
30                 <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>
31                 <!-- /TMPL_IF -->
32         </table>
33         <!-- 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>
34 <br /><br />
35 <form action="/cgi-bin/koha/opac-shelves.pl" method="post">
36         <table>
37                 <tr><th colspan="2">Add an Item to this Shelf by Barcode</th></tr>
38                 <tr>
39                         <td><label for="addbarcode">Barcode:</label></td>
40                         <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" /></td>
41                 </tr>
42         </table>
43 </form>
44 <!-- /TMPL_IF -->
45 <form class="inline" method="get" action="opac-shelves.pl"><input type="submit" value="Back to Virtual Shelves" /></form>
46 <!-- TMPL_ELSE -->
47         <!-- TMPL_IF Name="shelves" -->
48                 <!-- TMPL_IF Name="status1" -->
49                         <p class="error"><!-- TMPL_VAR Name="string1" --></p>
50                 <!-- /TMPL_IF -->
51                 <!-- TMPL_LOOP Name="paramsloop" -->
52                         <!-- TMPL_IF Name="status" -->
53                                 <p class="error"><!-- TMPL_VAR Name="string" --></p>
54                         <!-- /TMPL_IF -->
55                 <!-- /TMPL_LOOP -->
56 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
57                 <input type="hidden" name="shelves" value="1">
58                 <h3>Create a New a Virtual Shelf</h3>
59                 <table>
60                 <tr><th scope="row"><label for="addshelf">Shelf Name:</label> </th><td> <input id="addshelf" type="text" name="addshelf" size="25"></td></tr>
61                 <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>
62                 <tr><th scope="row"><label for="category">Category:</label> </th><td><select name="category" id="category">
63                                                                         <option value="1">Private</option>
64                                                                         <option value="2">Public</option>
65                                                                         <option value="3">Free</option>
66                                                                         </select></td></tr></table>
67                 <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>
68                         <li> A <strong>free</strong> virtual shelf can be added to and changed by any user.</li></ul>
69                                                                 <p><input type="submit" value="Add New Shelf"></p>
70                                         </form> 
71                 
72                 <!-- TMPL_IF NAME="shelvesloop" -->
73                 <form method="post" action="/cgi-bin/koha/opac-shelves.pl" name="mainform">
74                                         <input type="hidden" name="shelves" value="1" />
75                                         <h3>Delete Virtual Shelves</h3>
76                                         <table>
77                                                 <tr><th>&nbsp;</th><th>Shelf Name</th><th>Contents</th></tr>
78                                                 <!-- TMPL_LOOP Name="shelvesloop" -->
79                                                 <!-- TMPL_IF name="canmanage" -->
80                                                 <tr>
81                                                         <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                                                 <!-- /TMPL_IF -->
83                                                 <!-- /TMPL_LOOP -->
84                                         </table>
85                 <input type="submit" value="Delete Shelves" /></form>
86                 <!-- /TMPL_IF -->
87                 <p><form class="inline" action="opac-shelves.pl" method="get"><input type="submit" value="Back to Virtual Shelves" /></form></p>
88
89         <!-- TMPL_ELSE -->
90         <!-- TMPL_IF name="edit" -->
91                 <form method="post">
92                         <input type="hidden" name="op" value="modifsave">
93                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
94 <h3>Modify Virtual Shelf <!-- TMPL_VAR name="shelfname"--></h3>
95                         <table>
96                         <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>
97                         <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>
98                         <tr><td><label for="category">Category: </label></td><td><select id="category" name="category">
99                                         <!-- TMPL_IF name="category1" -->
100                                                 <option value="1" selected>Private</option>
101                                         <!-- TMPL_ELSE -->
102                                                 <option value="1">Private</option>
103                                         <!-- /TMPL_IF -->
104                                         <!-- TMPL_IF name="category2" -->
105                                                 <option value="2" selected>Public</option>
106                                         <!-- TMPL_ELSE -->
107                                                 <option value="2">Public</option>
108                                         <!-- /TMPL_IF -->
109                                         <!-- TMPL_IF name="category3" -->
110                                                 <option value="3" selected>Free</option>
111                                         <!-- TMPL_ELSE -->
112                                                 <option value="3">Free</option>
113                                         <!-- /TMPL_IF -->
114                                 </select></td></tr>
115                         </table>
116                         <ul><li>A <strong>private</strong> virtual shelf is managed by you and can be seen <strong>only</strong> by you.</li>
117                                 <li> A <strong>public</strong> virtual shelf can be seen by <strong>everybody</strong>, but managed only by you.</li>
118                                 <li>A <strong>free</strong> virtual shelf can be added to or changed by <strong>any</strong> user.</li></ul>
119                         <p><input type="submit" value="Save Changes"></p>
120
121                 </form>
122 <!-- /TMPL_IF -->
123 <h3>Virtual Shelves</h3>
124
125 <table>
126 <tr><th>Shelf Name</th><th>Category</th><th>Content Size</th><th>&nbsp;</th></tr>
127 <!-- TMPL_LOOP Name="shelvesloop" -->
128 <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>
129                         <!-- /TMPL_LOOP -->
130                 </table>
131                 <p><form action="opac-shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or Remove Book Shelves" /></form></p>
132         <!-- /TMPL_IF -->
133 <!-- /TMPL_IF -->
134
135 <br clear="both" />
136 </div>
137 </body>
138 </html>
139