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