Some style fixes for search results screen
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-shelves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;   <!-- TMPL_IF NAME="viewshelf" -->Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->My Lists<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2 </head>
3 <body>
4 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
5
6 <div id="doc3" class="yui-t1">
7  <div id="bd">
8   <div id="yui-main">
9    <div class="yui-b">
10
11 <!-- TMPL_IF NAME="paramsloop" -->
12 <!-- TMPL_LOOP NAME="paramsloop" -->
13 <div class="yui-ge">
14     <div class="yui-u first">
15         <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <b><!-- TMPL_VAR NAME="already" --></b> already exists!</div><!-- /TMPL_IF -->
16                 <!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
17                 <!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF --> 
18                 <!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF --> 
19                 <!-- TMPL_IF NAME="need_confirm" -->
20                 <div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
21                         <br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
22                         <br />Use the "Confirm" button below to confirm deletion.
23                 </div>
24                 <!-- /TMPL_IF -->
25                 <!-- TMPL_IF NAME="nopermission" -->
26                 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
27                 <!-- /TMPL_IF -->
28                 <!-- TMPL_IF NAME="failgetitem" -->
29                 <div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
30                 <!-- /TMPL_IF --> 
31                 <!-- TMPL_IF NAME="duplicatebiblio" -->
32                 <div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
33                 <!-- /TMPL_IF --> 
34                 <!-- TMPL_IF NAME="delete_ok" -->
35                         <div class="dialog message">Shelf <!-- TMPL_VAR NAME="delete_ok" --> Deleted.</div>
36                 <!-- /TMPL_IF -->
37                 <!-- TMPL_IF NAME="delete_fail" -->
38                         <div class="dialog message">ERROR: Database error. Delete (shelf number <!-- TMPL_VAR NAME="delete_fail" -->) failed.</div>
39                 <!-- /TMPL_IF -->
40                 <!-- TMPL_IF NAME="unrecognized" -->
41                         <div class="dialog message">ERROR: Shelf number <!-- TMPL_VAR NAME="unrecognized" --> unrecognized.</div>
42                 <!-- /TMPL_IF -->
43         </div>
44 </div>
45 <!-- /TMPL_LOOP -->
46 <!-- /TMPL_IF --> 
47
48     <div class="yui-g">
49     <!-- TMPL_IF NAME="viewshelf" -->
50     <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em><!-- TMPL_VAR NAME="shelfname" --></em></h3>
51         <!-- TMPL_IF NAME="itemsloop" -->
52     <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform">
53         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
54         <input type="hidden" name="modifyshelfcontents" value="1" />
55     <table>
56         <tr>
57             <!-- TMPL_IF NAME="manageshelf" --><th><a href="/cgi-bin/koha/opac-shelves.pl" onclick="CheckAll(); return false;"><img src="<!-- TMPL_VAR NAME="themelang" -->/../images/checkall.gif" alt="Check All" border="0" /></a></th><!-- /TMPL_IF -->
58             <th>&nbsp;</th>
59             <th>Title</th>
60             <th>Author</th>
61             <th>Copyright</th>
62                         <th>Date Added</th>
63         </tr>
64             <!-- TMPL_LOOP NAME="itemsloop" -->
65                 <!-- TMPL_IF NAME="toggle" -->
66         <tr class="highlight">
67                 <!-- TMPL_ELSE -->
68         <tr>
69                 <!-- /TMPL_IF -->
70                 <!-- TMPL_IF NAME="manageshelf" -->
71             <td>
72                 <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
73             </td>
74                 <!-- /TMPL_IF -->
75             <td>
76                 <img src="<!-- TMPL_VAR NAME="themelang" -->/../itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
77             </td>
78             <td>
79                     <!-- TMPL_IF NAME="BiblioDefaultViewmarc" -->
80                 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a>
81                     <!-- TMPL_ELSE -->
82                         <!-- TMPL_IF NAME="BiblioDefaultViewisbd" -->
83                 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a>
84                         <!-- TMPL_ELSE -->
85                 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a>
86                         <!-- /TMPL_IF -->
87                     <!-- /TMPL_IF -->
88             </td>
89             <td><!-- TMPL_VAR NAME="author" --></td>
90             <td><!-- TMPL_VAR NAME="copyrightdate" --></td>
91             <td><!-- TMPL_VAR NAME="cn_class" --> <!-- TMPL_VAR NAME="cn_item" --> <!-- TMPL_VAR NAME="cn_suffix" --> <!-- TMPL_VAR NAME="itemcallnumber" --></td>
92         </tr>
93                 <!-- /TMPL_LOOP --><!-- /itemsloop -->
94     </table>
95             <!-- TMPL_ELSE -->
96         <div class="dialog message">This List is empty.  You can add to your lists from the results of any <a href="opac-main.pl">search</a>!</div>
97             <!-- /TMPL_IF --><!-- /itemsloop -->
98     <!-- /TMPL_IF --><!-- /viewshelf -->
99
100     <!-- TMPL_IF NAME="manageshelf" -->
101                 <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
102         <!-- TMPL_IF NAME="itemsloop" -->
103                 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
104                 <input type="hidden" name="modifyshelfcontents" value="1" />
105                 <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?')" />
106         <!-- TMPL_ELSE -->
107                         <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
108                         <input type="hidden" name="shelves" value="1" />
109                         <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete('Are you sure you want to delete this List?')" />
110         <!-- /TMPL_IF -->
111                 </form>
112     <!-- /TMPL_IF -->
113
114     <!-- TMPL_IF NAME="edit" -->
115         <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
116             <input type="hidden" name="op" value="modifsave" />
117             <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
118             <div class="form">
119             <table>
120             <caption>Edit List <em><!-- TMPL_VAR NAME="shelfname" --></em></caption>
121             <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>
122             <tr><th><label for="sortfield" >Select sort field for this List: </label></th>
123             <td><select name="sortfield">
124             <option value="title" <!-- TMPL_IF NAME="sort_title" -->selected="1"<!-- /TMPL_IF -->>title</option>
125             <option value="author" <!-- TMPL_IF NAME="sort_author" -->selected="1"<!-- /TMPL_IF -->>author</option>
126             <option value="copyrightdate" <!-- TMPL_IF NAME="sort_copyrightdate" -->selected="1"<!-- /TMPL_IF -->>copyrightdate</option>
127             </select></td></tr>
128             </table>
129             <p><input type="hidden" name="category" value="1" /><input type="submit" value="Save Changes" class="submit" /></p>
130             </div>
131         </form>
132     <!-- /TMPL_IF -->
133
134     <!-- TMPL_UNLESS NAME="viewshelf" -->
135         <h2>Lists</h2>
136         <ul class="link-tabs">
137         <!-- TMPL_IF NAME="showprivateshelves" -->
138             <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
139         <!-- TMPL_ELSE -->
140             <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
141         <!-- /TMPL_IF -->
142         <!-- TMPL_IF NAME="showpublicshelves" -->
143             <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
144         <!-- TMPL_ELSE -->
145             <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
146         <!-- /TMPL_IF -->
147         </ul>
148         <!-- TMPL_IF NAME="showprivateshelves" -->
149                 <div id="privateshelves" class="tab-container" style="display:block;">
150                 <!-- TMPL_ELSE -->
151                 <div id="privateshelves" class="tab-container" style="display:none;">
152                 <!-- /TMPL_IF -->
153         
154                 <!-- TMPL_IF NAME="loggedinusername" -->
155         <table>
156         <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>&nbsp;</th></tr>
157             <!-- TMPL_IF NAME="shelveslooppriv" -->
158                 <!-- TMPL_LOOP NAME="shelveslooppriv" -->
159                     <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
160         <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
161         <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
162         <td><!-- TMPL_VAR NAME="sortfield" --></td>
163         <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
164                         <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
165                         <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
166                 </td>
167         <td>
168             <!-- TMPL_IF NAME="mine" -->
169                                 <form action="opac-shelves.pl" method="get">
170                                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
171                                         <input type="hidden" name="op" value="modif" />
172                                         <input type="submit" value="Edit" />
173                                 </form>
174                                 <form action="opac-shelves.pl" method="post">
175                                         <input type="hidden" name="shelves" value="1" />
176                                         <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
177                                         <!-- TMPL_IF NAME="confirm" -->
178                                         <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
179                                         <input type="submit" class="confirm" value="Confirm" />
180                                         <!-- TMPL_ELSE -->
181                                         <input type="submit" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
182                                         <!-- /TMPL_IF -->
183                                 </form>
184                         <!-- /TMPL_IF -->&nbsp;
185                 </td>
186                 </tr>
187                 <!-- /TMPL_LOOP -->
188             <!-- TMPL_ELSE -->
189             <tr><td colspan="4">No Private Lists.</td></tr>
190             <!-- /TMPL_IF --><!-- /shelveslooppriv -->
191         </table>
192         <!-- TMPL_ELSE --><!-- /loggedinusername -->
193                 <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
194         <!-- /TMPL_IF --><!-- /loggedinusername -->
195                 </div><!-- /privateshelves -->
196
197         <!-- TMPL_IF NAME="showpublicshelves" -->
198                 <div id="publicshelves" class="tab-container" style="display:block;">
199                 <!-- TMPL_ELSE -->
200                 <div id="publicshelves" class="tab-container" style="display:none;">
201                 <!-- /TMPL_IF -->
202         <!-- TMPL_IF NAME="shelvesloop" -->
203         <table>
204         <tr><th>List Name</th><th>Contents</th><th>Type</th></tr>
205             <!-- TMPL_LOOP NAME="shelvesloop" -->
206                 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
207                 <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
208                 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
209         <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
210                         <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
211                         <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
212                 </td>
213                 </tr>
214             <!-- /TMPL_LOOP -->
215         </table>
216         <!-- TMPL_ELSE -->
217                 <!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
218         <!-- /TMPL_IF --><!-- /shelvesloop -->
219         </div><!-- /publicshelves -->
220     <!-- /TMPL_UNLESS --><!-- /viewshelf -->
221
222     <!-- TMPL_IF NAME="showadd" -->
223                 <div style="padding: 1.5em 0em;"><hr /></div>
224         <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
225             <input type="hidden" name="shelves" value="1" />
226             <div class="form">
227             <table>
228             <caption>Create a New List</caption>
229             <tr><th><label for="addshelf">List Name:</label> </th><td> 
230                                 <!-- TMPL_IF NAME="already" -->
231                                 <input id="addshelf" type="text" name="addshelf" value="<!-- TMPL_VAR NAME="already" -->" size="60" />
232                                 <!-- TMPL_ELSE -->
233                                 <input id="addshelf" type="text" name="addshelf" size="60" />
234                                 <!-- /TMPL_IF -->
235                                 <input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" />
236                         </td></tr>
237             </table>
238                         </div>
239             <p><input type="hidden" name="category" value="1" /><input type="submit" value="Add New Shelf" class="icon add" /></p>
240         </form>    
241         <!-- /TMPL_IF --><!-- /showadd -->
242     </div>
243    </div>
244   </div>
245   <div class="yui-b">
246 <!-- TMPL_INCLUDE NAME="navigation.inc" -->
247 <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
248   </div>
249  </div>
250 <!-- </div> -->
251 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->