new virtual shelves changes, keyed by biblionumber
[koha_fer] / 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 -->My Virtual Shelves<!-- /TMPL_IF --><!-- TMPL_INCLUDE name="doc-head-close.inc" -->
2 <!-- TMPL_IF NAME="OpacNav" --> <body id="withnav">
3 <!--TMPL_ELSE-->
4 <body>
5 <!-- /TMPL_IF -->
6 <!-- TMPL_INCLUDE name="masthead.inc" -->
7 <!-- TMPL_INCLUDE name="usermenu.inc" -->
8 <!-- TMPL_INCLUDE name="navigation.inc" -->
9 <div id="main_wrapper">
10 <div id="main" class="searchresults">
11 <div class="content-block">
12 <!-- TMPL_IF Name="viewshelf" -->
13 <h3><a href="/cgi-bin/koha/opac-shelves.pl">Virtual Shelves</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <!-- TMPL_IF NAME="itemsloop" --><em><!-- TMPL_VAR Name="shelfname" --></em><!-- TMPL_ELSE -->The Virtual Shelf <em><!-- TMPL_VAR Name="shelfname" --></em> is empty<!-- /TMPL_IF --></h3>
14 <form class="inline" action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform">
15     <table>
16         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
17         <input type="hidden" name="modifyshelfcontents" value="1" />
18             <tr>
19                 <th>
20                     <a style="color:white;" href="/cgi-bin/koha/opac-shelves.pl" onclick="CheckAll(); return false;">Check All</a>
21                 </th>
22                 <th>&nbsp;</th>
23                 <th>Title</th>
24                 <th>Author</th>
25                 <th>Call No.</th>
26             </tr>
27         <!-- TMPL_LOOP Name="itemsloop" -->
28             <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
29                     <td>
30                         <input type="checkbox" name="MOD-<!-- TMPL_VAR Name="biblionumber" -->" />
31                         <input type="hidden" name="ModBiblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
32                     </td>
33                     <td>
34                         <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
35                     </td>
36                     <td>
37                          <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
38                                         <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
39                                             <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
40                                         </a>
41                                     <!-- TMPL_ELSE -->
42                                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
43                                             <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
44                                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
45                                             </a>
46                                         <!-- TMPL_ELSE -->
47                                             <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
48                                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
49                                             </a>
50                                         <!-- /TMPL_IF -->
51                                     <!-- /TMPL_IF -->
52                         </a>
53                     </td>
54                     <td><!-- TMPL_VAR Name="author" --></td>
55                     <td><!-- TMPL_VAR NAME="classification" --></td>
56         </tr>
57         <!-- /TMPL_LOOP -->
58     </table>
59     <!-- TMPL_ELSE -->
60     <tr><td colspan="5">This Virtual Shelf is empty.</td></tr>
61     <!-- /TMPL_IF -->
62   </table>
63   <!-- TMPL_IF name="manageshelf" --><!-- TMPL_IF NAME="itemsloop" --><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><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
64   <input type="hidden" name="modifyshelfcontents" value="1" />
65   <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete('Are you sure you want to remove these items from the list?')" /><!-- /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="Rename this Shelf" class="icon edit" /></form> <!-- TMPL_UNLESS NAME="itemsloop" --><form class="inline" method="get" action="/cgi-bin/koha/opac-shelves.pl"><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 Virtual Shelf" onclick="return confirmDelete('Are you sure you want to delete this Virtual Shelf?')" /></form><!-- /TMPL_UNLESS -->
66 <br /><br /><!-- TMPL_IF name="manageshelf" -->
67 <form action="/cgi-bin/koha/opac-shelves.pl" method="post">
68   <table>
69     <tr><th colspan="2">Add an Item to this Virtual Shelf by Barcode</th></tr>
70     <tr>
71       <td><label for="addbarcode">Barcode:</label></td>
72       <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>
73     </tr>
74   </table>
75 </form><!-- /TMPL_IF -->
76 <!-- /TMPL_IF -->
77 <form class="inline" method="get" action="opac-shelves.pl"><input type="submit" class="icon back" value="Back to Virtual Shelves" /></form> <form class="inline" action="opac-shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or Remove Virtual Shelves" class="icon add" /></form>
78 <!-- TMPL_ELSE -->
79   <!-- TMPL_IF Name="shelves" -->
80     <!-- TMPL_IF Name="status1" -->
81       <p class="error"><!-- TMPL_VAR Name="string1" --></p>
82     <!-- /TMPL_IF -->
83     <!-- TMPL_LOOP Name="paramsloop" -->
84       <!-- TMPL_IF Name="status" -->
85         <p class="error"><!-- TMPL_VAR Name="string" --></p>
86       <!-- /TMPL_IF -->
87     <!-- /TMPL_LOOP -->
88 <div id="center">
89 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
90     <input type="hidden" name="shelves" value="1">
91     <div class="form"><table>
92     <caption>Create a New a Virtual Shelf</caption>
93     <tr><th><label for="addshelf">List Name:</label> </th><td> <input id="addshelf" type="text" name="addshelf" size="60"><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->"></td></tr>
94 </table></div>
95
96                 <p><input type="hidden" name="category" value="1" /><input type="submit" value="Add New Shelf" class="icon add"></p>
97           </form>
98         </div>    
99     
100     <div id="right"><!-- TMPL_IF NAME="shelveslooppriv" -->
101     <form method="post" action="/cgi-bin/koha/opac-shelves.pl" name="mainform">
102           <input type="hidden" name="shelves" value="1" />
103           <table>
104           <caption>Delete Virtual Shelves</caption>
105             <tr><th>&nbsp;</th><th>Virtual Shelf Name</th><th>Contents</th></tr>
106             <!-- TMPL_LOOP Name="shelveslooppriv" -->
107     
108             <tr>
109               <td>
110               <!-- 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="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)<!-- TMPL_IF NAME="shelfbookcount" --><sup>*</sup><!-- /TMPL_IF --></td></tr>
111     
112             <!-- /TMPL_LOOP -->
113           </table><p><sup>*</sup>All items must be removed from Virtual Shelves prior to deletion.</p>
114     <input type="submit" value="Delete Selected Lists" onclick="return confirmDelete('Are you sure you want to delete this list?')" class="icon delete" /> </form>
115     <!-- /TMPL_IF -->
116     <p><form class="inline" action="opac-shelves.pl" method="get"><input type="submit" class="icon back" value="Back to Virtual Shelves" /></form></p>
117 </div>
118   <!-- TMPL_ELSE -->
119   <!-- TMPL_IF name="edit" -->
120     <form method="post">
121       <input type="hidden" name="op" value="modifsave">
122       <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
123       <div class="form"><table>
124       <caption>Rename Virtual Shelf <em><!-- TMPL_VAR name="shelfname"--></em></caption>
125       <tr><th><label for="shelfname">List Name: </label></th><td><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR name="shelfname"-->" /></td></tr>
126       </table>
127       <p><input type="hidden" name="category" value="1" /><input type="submit" value="Save Changes" class="submit"></p></div>
128
129     </form>
130 <!-- /TMPL_IF -->
131
132 <h2>Virtual Shelves</h2>
133
134 <ul class="link-tabs">
135 <!-- TMPL_IF name="showprivateshelves" -->
136 <li id="privateshelves_tab" class="on">
137 <!-- TMPL_ELSE --> 
138 <li id="privateshelves_tab" class="off">
139 <!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" onclick="changeView('privateshelves'); return false;">Your Virtual Shelves</a> </li>
140 <!-- TMPL_IF name="showpublicshelves" --> 
141 <li id="publicshelves_tab" class="on">
142 <!-- TMPL_ELSE --> 
143 <li id="publicshelves_tab" class="off">
144 <!-- /TMPL_IF -->
145 <a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" onclick="changeView('publicshelves'); return false;">Public Virtual Shelves</a></li>
146   
147 </ul>
148 <!-- TMPL_IF name="showprivateshelves" -->
149 <div id="privateshelves" style="display:block;">
150 <!-- TMPL_ELSE --> 
151 <div id="privateshelves" style="display:none;">
152 <!-- /TMPL_IF -->
153 <!-- TMPL_IF NAME="loggedinusername" -->
154 <table>
155 <tr><th>List Name</th><th>Contents</th><th>&nbsp;</th></tr>
156 <!-- TMPL_IF NAME="shelveslooppriv" --><!-- TMPL_LOOP Name="shelveslooppriv" -->
157 <!-- TMPL_IF name="color" --> <tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF --><td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></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" -->">Rename</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr><!-- /TMPL_LOOP --><!-- TMPL_ELSE --><tr><td colspan="4">Click below to create a new Virtual Shelf!</td></tr><!-- /TMPL_IF --></table>
158 <p><form action="opac-shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or Remove Virtual Shelves" class="icon add" /></form></p>
159 <!-- TMPL_ELSE -->
160   <p><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create your own private Virtual Shelf</p>
161 <!-- /TMPL_IF -->
162
163 </div>
164
165 <!-- TMPL_IF name="showpublicshelves" --><div id="publicshelves" style="display:block;"> 
166 <!-- TMPL_ELSE -->
167 <div id="publicshelves" style="display:none;">
168 <!-- /TMPL_IF --><table>
169 <tr><th>List Name</th><th>Contents</th></tr>
170 <!-- TMPL_LOOP Name="shelvesloop" -->
171 <!-- TMPL_IF name="color" --> <tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF --><td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)</td></tr>
172       <!-- /TMPL_LOOP -->
173     </table></div>
174
175   <!-- /TMPL_IF -->
176 <!-- /TMPL_IF -->
177
178 </div>
179 </div>
180 </div>
181
182 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->