Removing hardcoded default template image link
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / bookshelves / shelves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Virtual Shelves<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
3 <script type="text/javascript">
4         function CheckAll() { 
5         count = document.mainform.elements.length;
6     for (i=0; i < count; i++){
7             if(document.mainform.elements[i].checked == 1){
8                         document.mainform.elements[i].checked = 0;
9                 } else {
10                         document.mainform.elements[i].checked = 1;
11                 }
12         }
13 }
14 </script>
15
16 <!-- TMPL_IF name="edit" -->
17                 <form method="post" action="<!-- TMPL_VAR NAME="script_name" -->">
18                         <input type="hidden" name="op" value="modifsave" />
19                         <table>
20                         <caption>Editing Shelf <!-- TMPL_VAR name="shelfname"--></caption>
21                         <tr><td><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->" /><label for="shelfname">Name:</label></td><td><input id="shelfname" type="text" name="shelfname" size="25" value="<!-- TMPL_VAR name="shelfname"-->" /></td></tr>
22                         <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>
23                         <tr><td><label for="category">Category:</label></td><td><select id="category" name="category">
24                                         <!-- TMPL_IF name="category1" -->
25                                                 <option value="1" selected>Private</option>
26                                         <!-- TMPL_ELSE -->
27                                                 <option value="1">Private</option>
28                                         <!-- /TMPL_IF -->
29                                         <!-- TMPL_IF name="category2" -->
30                                                 <option value="2" selected>Public</option>
31                                         <!-- TMPL_ELSE -->
32                                                 <option value="2">Public</option>
33                                         <!-- /TMPL_IF -->
34                                         <!-- TMPL_IF name="category3" -->
35                                                 <option value="3" selected>Free</option>
36                                         <!-- TMPL_ELSE -->
37                                                 <option value="3">Free</option>
38                                         <!-- /TMPL_IF -->
39                                 </select></td></tr>
40                         </table>
41                         <ul><li>a private bookshelf is managed by you and can be seen only by you.</li>
42                                 <li> A public can be seen by everybody, but managed only by you.</li>
43                                 <li> A free can be managed by any user.</li></ul>
44                         <input type="submit" value="Save Changes" /></p>
45                 </form>
46 <!-- /TMPL_IF -->
47
48 <!-- TMPL_IF Name="viewshelf" -->
49         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post" name="mainform">
50                         <table>
51                         <caption>Contents of <!-- TMPL_VAR NAME="shelfname" --></caption>
52                         <tr>
53                                         <!-- TMPL_IF name="manageshelf" --><th><a href="/cgi-bin/koha/shelves.pl" onclick="CheckAll(); return false;">Check All</a></th><!-- /TMPL_IF -->
54                                         <th>Title</th>
55                                         <th>Author</th>
56                                         <th>Item Type</th>
57                                         <th>&copy;</th>
58                                         <th>&nbsp;</th>
59                                 </tr><!-- TMPL_LOOP Name="itemsloop" --><!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF --><!-- TMPL_IF name="manageshelf" --><td><input type="checkbox" name="REM-<!-- TMPL_VAR NAME="itemnumber" -->" /></td><!-- /TMPL_IF -->
60                                                 <td><a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
61                                                 <td><!-- TMPL_VAR NAME="author" --></td> 
62                                                 <td><!-- TMPL_VAR NAME="itemtype" --></td>
63                                                 <td><!-- TMPL_VAR NAME="publicationyear" --></td>
64                                                 <td><a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->">Reserves</a></td>
65                                         </tr>
66                                 <!-- /TMPL_LOOP -->
67                         </table>
68                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
69                         <input type="hidden" name="modifyshelfcontents" value="1" />
70                         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
71                         <!-- TMPL_IF name="manageshelf" -->
72                                 <input type="submit" value="Remove Selected Items" />
73                         <!-- /TMPL_IF --></form><br>
74
75         <!-- TMPL_IF name="manageshelf" -->
76                 <form>
77 <table>
78                 <caption>Add an item by barcode</caption>
79                 <tr><th><label for="barcode">Barcode:</label></th><td><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
80                         <input type="hidden" name="modifyshelfcontents" value="1" />
81                         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
82                         <input type="text" size="14" maxlength="14" id="barcode" name="addbarcode" />
83                         <input type="hidden" name="modifyshelfcontents" value="1" />
84                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Save" /></td></tr></table>
85                 </form>
86         <!-- /TMPL_IF -->
87                 <form action="/cgi-bin/koha/bookshelves/shelves.pl" method="get"><input type="submit" value="Return to Virtual Shelves" /></form>
88                                 
89 <!-- TMPL_ELSE -->
90         <!-- TMPL_IF Name="shelves" -->
91                 <!-- TMPL_IF Name="status1" -->
92                         <!-- TMPL_VAR NAME="string1" -->
93                 <!-- /TMPL_IF -->
94                 <!-- TMPL_LOOP Name="paramsloop" -->
95                         <!-- TMPL_IF Name="status" -->
96                                 <!-- TMPL_VAR NAME="string" -->
97                         <!-- /TMPL_IF -->
98                 <!-- /TMPL_LOOP -->
99                                         <form method="post" action="<!-- TMPL_VAR NAME="script_name" -->">                                                              
100                                         <input type="hidden" name="shelves" value="1" /><table>
101                                                 <caption>Bookshelves</caption>
102                                                 <th>&nbsp;</th><th>Title</th><th>Item Count</th>
103                                         <!-- TMPL_LOOP Name="shelvesloop" -->
104                                                 <!-- TMPL_IF name="canmanage" -->
105
106                                                 <!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF --><td><!-- TMPL_IF NAME="shelfbookcount" --><input type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" disabled="disabled" readonly="readonly" /><!-- TMPL_ELSE --><input type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" /><!-- /TMPL_IF --></td><td><a href="shelves.pl?viewshelf=<!-- TMPL_VAR name="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td><td><!-- TMPL_IF NAME="shelfbookcount" --><!-- TMPL_VAR NAME="shelfbookcount" --> item(s)*<!-- TMPL_ELSE -->Empty<!-- /TMPL_IF --></td></tr>
107                                                 <!-- /TMPL_IF -->
108                                                 <!-- /TMPL_LOOP --></table>
109                                         
110                                                 <input type="submit" value="Delete Selected Shelves" /> <sup>*</sup>Shelves must be empty before they can be deleted.
111                                         </p>
112                                         </form>
113
114                         <form method="post" action="<!-- TMPL_VAR NAME="script_name" -->">
115                                 <input type="hidden" name="shelves" value="1" />
116                                 <table>
117                                 <caption>Add Shelf</caption>
118                                 <tr><th><label>Name</label></th><td><input type="text" name="addshelf" size="25" /></td></tr>
119                                 <tr><th><label>Owner</label></th><td><input type="hidden" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /><!-- TMPL_VAR NAME="loggedinusername" --></td></tr>
120                                 <tr><th><label>Category</label></th>
121                                         <td><select name="category">
122                                                 <option value="1">Private</option>
123                                                 <option value="2">Public</option>
124                                         </select></td></tr>
125 </table>
126 <ul><li>A private bookshelf is managed by you and can be seen only by you.</li>
127                                         <li> A public shelf can be seen by everybody, but managed only by you.</li></ul>
128                                         <input type="submit" value="Add New Shelf" /></form>
129                                         <form action="shelves.pl" method="get"><input type="submit" value="Back to Shelf List" /></form>
130         <!-- TMPL_ELSE -->
131                         <table>
132                         <caption>Virtual Shelves</caption>
133                                 <tr>
134                                         <th>Shelf Name</th>
135                                         <th>Category</th>
136                                         <th>Content size</th>
137                                         <th>&nbsp;</th>
138                                 </tr>
139                                 <!-- TMPL_LOOP Name="shelvesloop" -->
140                                 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
141                                         <td>
142                                                 <a href="shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->">
143                                                         <!-- TMPL_VAR NAME="shelfname" -->
144                                                 </a>
145                                         </td>
146                                         <td>
147                                                 <!-- TMPL_IF NAME="category1" -->
148                                                         Private
149                                                 <!-- /TMPL_IF -->
150                                                 <!-- TMPL_IF NAME="category2" -->
151                                                         Public
152                                                 <!-- /TMPL_IF -->
153                                                 <!-- TMPL_IF NAME="category3" -->
154                                                         Free
155                                                 <!-- /TMPL_IF -->
156                                         </td>
157                                         <td>
158                                                 <!-- TMPL_VAR NAME="shelfbookcount" --> item(s)
159                                         </td>
160                                         <td><!-- TMPL_IF name="mine" --><a href="shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a><!-- TMPL_VAR name="surname" --><!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td>
161                                 </tr>
162                                 <!-- /TMPL_LOOP -->
163                         </table>
164                 <form action="shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or Remove Book Shelves" />                               
165         <!-- /TMPL_IF -->
166 <!-- /TMPL_IF -->
167
168
169 <!-- TMPL_INCLUDE Name="intranet-bottom.inc" -->