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