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