fixing some display bugs (itemtype not properly returned and a html table bug that...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / opac-detail.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryNameTitle" --> Catalog -- Details for: <!-- TMPL_LOOP NAME="BIBLIO_RESULTS" --><!-- TMPL_VAR NAME="title" --><!-- /TMPL_LOOP -->
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
4 <!--TMPL_INCLUDE NAME="masthead.inc" -->
5 <!--TMPL_INCLUDE NAME="navigation.inc" -->
6
7 <div id="action">
8
9 <!-- TMPL_UNLESS NAME="norequests" -->
10         <!-- TMPL_IF NAME="RequestOnOpac" -->
11                 <a href="/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
12                 Place Reserve
13                 </a>
14         <!-- /TMPL_IF -->
15 <!-- /TMPL_UNLESS -->
16         <a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
17             MARC View
18         </a>
19         <a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
20             ISBD
21         </a>
22         <a href="/cgi-bin/koha/opac-detailprint.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-detailprint.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
23             Print
24         </a>
25 <!-- TMPL_IF name="virtualshelves" -->
26     <!-- TMPL_IF NAME="loggedinusername" -->
27         <a href="/cgi-bin/koha/opac-addbookbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-addbookbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
28             Add to My Book List
29         </a>
30     <!-- /TMPL_IF -->
31 <!-- /TMPL_IF -->
32         <a href="#" onclick="addRecord('<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
33             Add to My Book Bag
34         </a>
35 </div>
36
37 <div id="catalogue_detail_biblio">
38     <!-- TMPL_IF NAME="AmazonContent" -->
39         <!-- TMPL_IF NAME="isbn" -->
40         <a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link">
41             <img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01._PIdp-schmooS,TopRight,7,-26_SCMZZZZZZZ_.jpg" alt="Book Cover Image" />
42         </a><!-- TMPL_ELSE -->
43         <img border="0" src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="Book Cover Image" />
44         <!-- /TMPL_IF -->
45 <!-- /TMPL_IF -->
46     <h1>
47         <!-- TMPL_VAR NAME="title" -->
48         <!-- TMPL_IF NAME="author" -->(<!-- TMPL_VAR NAME="author" -->)<!-- /TMPL_IF -->
49         <!-- TMPL_VAR NAME="class" -->
50     </h1>
51     
52     <!-- TMPL_IF name="subtitles" -->
53     <p><label><b>Subtitle(s):</b></label>
54         <!-- TMPL_LOOP name="subtitles" -->
55         <!-- TMPL_VAR NAME="subtitle" --> ;
56         <!-- /TMPL_LOOP -->
57         &nbsp;
58     </p>
59     <!-- /TMPL_IF -->
60     <!-- TMPL_IF name="author" -->
61     <p><label><b>Author: </b></label>
62         <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" -->">
63             <!-- TMPL_VAR NAME="author" -->&nbsp;
64         </a>
65     </p>
66     <!-- /TMPL_IF -->
67     <!-- TMPL_IF name="MARCAUTHORS" -->
68     <p><label><b>Additional Author:</b></label>
69         <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
70         <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="value" -->">
71             <!-- TMPL_VAR NAME="value" -->
72         </a>&nbsp;
73         <!-- /TMPL_LOOP -->
74     </p>
75     <!-- /TMPL_IF -->
76     <!-- TMPL_IF name="illus" -->
77     <p><label><b>Illus:</b></label><!-- TMPL_VAR name="illus" -->&nbsp;</p>
78     <!-- /TMPL_IF -->
79     <!-- TMPL_IF name="publishercode" -->
80     <p><label><b>Published by :</b></label>
81         <a href="/cgi-bin/koha/opac-search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode"-->">
82             <!-- TMPL_VAR NAME="publishercode" -->
83         </a>&nbsp;
84     </p>
85     <!-- /TMPL_IF -->
86     <!-- TMPL_IF name="publicationyear" -->
87     <p><label><b>in</b></label><!-- TMPL_VAR NAME="publicationyear" -->&nbsp;</p>
88     <!-- /TMPL_IF -->
89     <p>
90         <!-- TMPL_IF name="pages" --> <label><b>Size: </b></label><!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
91         <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->&nbsp;
92     </p>
93     <!-- TMPL_IF name="isbn" -->
94     <p><label><b>ISBN: </b></label><!-- TMPL_VAR NAME="isbn" -->&nbsp;</p>
95     <!-- /TMPL_IF -->
96     <!-- TMPL_IF name="issn" -->
97     <p><label><b>ISSN:</b></label><!-- TMPL_VAR NAME="issn" -->&nbsp;</p>
98     <!-- /TMPL_IF -->
99     <!-- TMPL_IF name="seriestitle" -->
100     <p><label><b>Collection: </b></label>
101         <!-- TMPL_VAR NAME="seriestitle" -->
102         <!-- TMPL_IF name="volume" -->vol. <!-- TMPL_VAR name="volume" --> <!-- TMPL_VAR name="volumedate" --><!-- /TMPL_IF -->
103         <!-- TMPL_VAR name="volumedesc" -->&nbsp;
104     </p>
105     <!-- /TMPL_IF -->
106     <!-- TMPL_IF name="MARCSUBJCTS" -->
107     <p><label><b>Subjects: </b></label></p>
108     <p>
109         <!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
110         <a href="/cgi-bin/koha/opac-search.pl?q=<!-- TMPL_VAR NAME="link" ESCAPE="URL"-->"><!-- TMPL_VAR NAME="label" --></a>
111         &nbsp;
112         <!-- /TMPL_LOOP -->
113     </p>
114     <!-- /TMPL_IF -->
115     <!-- TMPL_IF name="copyrightdate" -->
116     <p><label><b>Year : </b></label><!-- TMPL_VAR NAME="copyrightdate" --></p>
117     <!-- /TMPL_IF -->
118     <!-- TMPL_IF name="MARCNOTES" -->
119     <p><label><b>Notes: </b></label></p>
120     <p>
121         <!-- TMPL_LOOP NAME="MARCNOTES" -->
122         <p>- <!-- TMPL_VAR NAME="marcnote" --></p>
123         <!-- /TMPL_LOOP -->
124     </p>
125     <!-- TMPL_ELSE -->
126     <!-- TMPL_IF name="notes" -->
127     <p><label><b>Notes: </b></label><!-- TMPL_VAR NAME="notes" --></p>
128     <!-- /TMPL_IF -->
129     <!-- /TMPL_IF -->
130     <!-- TMPL_IF name="unititle" -->
131     <p><label><b>Alt title: </b></label><!-- TMPL_VAR NAME="unititle" --></p>
132     <!-- /TMPL_IF -->
133     <!-- TMPL_IF name="classification" -->
134     <p><label><b>classification:</b></label><!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></p>
135     <!-- /TMPL_IF -->
136     <!-- TMPL_IF name="dewey" -->
137     <p><label><b>Dewey:</b></label><!-- TMPL_VAR name="dewey" --></p>
138     <!-- /TMPL_IF -->
139     <!-- TMPL_IF name="URLS" -->
140     <p><label><b>URL: </b></label>
141         <!-- TMPL_LOOP name="URLS" -->
142         <a href="<!-- TMPL_VAR name="url" -->"><!-- TMPL_VAR NAME="url" --></a>&nbsp;
143         <!-- /TMPL_LOOP -->
144     </p>
145     <!-- /TMPL_IF -->
146     <p><label><b>Item type : </b></label>
147         <!-- TMPL_IF name="description" -->
148         <!-- TMPL_VAR name="description" -->
149         <!-- TMPL_ELSE -->
150         <!-- TMPL_VAR NAME="itemtype" -->
151         <!-- /TMPL_IF -->
152     </p>
153 </div>
154
155 <!-- TMPL_IF name="count" -->
156 <div id="catalogue_detail_items">
157     <h2><!-- TMPL_VAR NAME="count" --> items</h2>
158     <table>
159         <tr>
160             <th>Item type</th>
161             <th>Location</th>
162             <th>Status</th>
163             <th>Date Due</th>
164             <th>Volume</th>
165         </tr>
166         <!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
167         <tr>
168             <td><!-- TMPL_VAR NAME="description" --></td>
169             <td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
170             <td>
171                 <!-- TMPL_IF name="datedue" -->
172                 On issue to <!-- TMPL_VAR NAME="cardnumber" -->
173                 <!-- TMPL_ELSE -->
174                 <!-- TMPL_IF name="notforloan" -->
175                 <!-- TMPL_VAR name="notforloan" -->
176                 <!-- TMPL_ELSE -->
177                 <!-- TMPL_IF name="itemlost"-->
178                 Item lost
179                 <!-- TMPL_ELSE -->
180                 <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled<!-- TMPL_ELSE -->Available<!-- /TMPL_IF -->
181                 <!-- /TMPL_IF -->
182                 <!-- /TMPL_IF -->
183                 <!-- /TMPL_IF -->
184             </td>
185             <td><!-- TMPL_VAR NAME="datedue" --></td>
186             <td><!-- TMPL_VAR NAME="volumeddesc" --></td>
187             <!-- TMPL_IF NAME="type" -->
188             <td>
189                 <a href="/cgi-bin/koha/maint/catmaintain.pl?type=fixitemtype&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->&amp;item=<!-- TMPL_VAR NAME="itemtype" -->">Fix Itemtype</a>
190             </td>
191             <!-- /TMPL_IF -->
192         </tr>
193         <!-- /TMPL_LOOP -->
194     </table>
195 </div>
196 <!-- TMPL_ELSE -->
197 <p>we don't have any physical item for this document</p>
198 <!-- /TMPL_IF -->
199 <!-- TMPL_IF name="subscriptionsnumber" -->
200 <div id="catalogue_detail_subscriptions">
201     <h2>This is a serial subscription</h2>
202     <p> (We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p>
203     <!-- TMPL_LOOP Name="subscriptions" -->
204     <!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
205     <!--TMPL_IF NAME="latestserials"-->
206     <p> The three latest issues related to this subscription:</p>
207     <table>
208         <tr>
209             <th>Issue #</th>
210             <th>Date</th>
211             <th>Status</th>
212             <th>Note</th>
213             <!--TMPL_LOOP Name="latestserials"-->
214             <tr>
215                 <td>
216                     <!--TMPL_VAR Name="serialseq"-->
217                 </td>
218                 <td>
219                     <!--TMPL_VAR Name="planneddate"-->
220                 </td>
221                 <td>
222                     <!--TMPL_IF Name="status1"-->Waited
223                     <!--TMPL_ELSE -->
224                     <!-- TMPL_IF Name="status2"-->Arrived
225                     <!--TMPL_ELSE -->
226                     <!-- TMPL_IF Name="status3"-->Late
227                     <!--TMPL_ELSE -->
228                     <!-- TMPL_IF Name="status4"-->Missing
229                     <!--TMPL_ELSE -->
230                     <!-- TMPL_IF Name="status5"-->Not Issued
231                     <!--/TMPL_IF-->
232                     <!--/TMPL_IF-->
233                     <!--/TMPL_IF-->
234                     <!--/TMPL_IF-->
235                     <!--/TMPL_IF-->
236                 </td>
237                 <td>
238                     <!--TMPL_VAR Name="notes"-->
239                 </td>
240             </tr>
241             <!--/TMPL_LOOP -->
242         </table>
243         <!-- /TMPL_IF -->
244         <!-- /TMPL_LOOP -->
245     </div>
246     <!-- /TMPL_IF -->
247
248 <!-- TMPL_IF NAME="reviewson" -->
249     <!-- TMPL_IF NAME="reviews" -->
250     <h2>Reviews by members:</h2>
251         <!--TMPL_LOOP NAME="reviews"-->
252         <p>
253             <b>
254                 Review by
255                 <!--TMPL_VAR NAME="title"-->
256                 <!--TMPL_VAR NAME="surname"-->
257                 <!--TMPL_VAR NAME="firstname"-->
258             </b>
259             <br />
260             <small>
261                 <!--TMPL_VAR NAME="datereviewed"-->
262             </small>
263         </p>
264         <p>
265           <!--TMPL_VAR NAME="review"-->
266         </p>
267         <br />
268         <!--/TMPL_LOOP-->
269     <!-- TMPL_ELSE  -->
270         <b>No reviews has been writed on this biblio.</b>
271     <!-- /TMPL_IF -->
272     <!-- TMPL_IF NAME="loggedinusername" -->
273         <a href="javascript:Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->');">
274             Write or modify your reviews on this biblio.
275         </a>
276     <!-- TMPL_ELSE -->
277         <br /><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to write a review here.
278     <!-- /TMPL_IF -->
279 <!-- /TMPL_IF -->
280
281 <!-- TMPL_IF NAME="AmazonContent" -->
282 <!-- Amazon Reviews -->
283 <div id="itemReviews">
284         <h2>Amazon Reader Reviews:</h2>
285         <h4>
286     <!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
287     <!-- TMPL_IF NAME="isbn" -->
288         <a href="http://www.amazon.com/gp/customer-reviews/write-a-review.html/002-2970817-7876066?%5Fencoding=UTF8&asin=<!-- TMPL_VAR NAME="isbn" -->&store=books">Add your own review</a></h4>
289     <!-- /TMPL_IF -->
290     <!-- /TMPL_LOOP --><br/>
291
292         <!-- TMPL_IF NAME="rating" -->
293             <h4>Rating (from Amazon.com):</h4>
294         <div id="starMT"><div id="starFull" style="width:<!-- TMPL_VAR NAME="rating" -->px"></div></div>
295
296         <!-- TMPL_LOOP NAME="AMAZONREVIEWS" -->
297             <div class="content_set">
298             <!-- TMPL_IF NAME="summary" -->
299             <h4 class="underline">  <!-- TMPL_VAR NAME="summary" --></h4>
300             <!-- /TMPL_IF -->
301             <!-- TMPL_IF NAME="comment" -->
302                 <p><!-- TMPL_VAR NAME="comment" -->
303             </p><!-- /TMPL_IF -->
304             </div>
305     <!-- /TMPL_LOOP -->
306     <!-- TMPL_ELSE -->
307
308     <div class="content_set">
309     <p class="error"> Sorry, there are no reviews available for this title. </p>
310     </div>
311
312     <!-- /TMPL_IF -->
313 </div> <!-- itemReviews -->
314 <!-- /TMPL_IF-->
315
316 <script language="javascript" type="text/javascript">
317     function Dopop(link) {
318         newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
319     }
320     function confirm_deletion() {
321         var is_confirmed = confirm('Are you sure you want to delete this biblio?');
322         if ( is_confirmed ) {
323             window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
324         }
325     }
326 </script>
327
328 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->