Moving </head><body> into body of templates so that js and css can be embedded per...
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Catalogue Detail</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 </head>
5 <body>
6
7 <!-- TMPL_INCLUDE NAME="menus.inc" -->
8 <!-- TMPL_INCLUDE NAME="menu-catalogue.inc" -->
9
10     <h1><!-- TMPL_VAR NAME="title" --> (<!-- TMPL_VAR NAME="author" -->) <!-- TMPL_VAR NAME="class" --></h1>
11     
12 <!-- TMPL_INCLUDE NAME="action-catalogue.inc" -->
13     
14     <div id="catalogue_detail_biblio">
15         <h2>Biblio detail</h2>
16         <!-- TMPL_IF name="subtitles" -->
17             <p><label><b>Subtitle(s):</b></label>
18                 <!-- TMPL_LOOP name="subtitles" -->
19                     <!-- TMPL_VAR NAME="subtitle" --> ;
20                 <!-- /TMPL_LOOP -->
21                 &nbsp;
22             </p>
23         <!-- /TMPL_IF -->
24         <!-- TMPL_IF name="author" -->
25             <p><label><b>Author: </b></label>
26                 <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" -->">
27                     <!-- TMPL_VAR NAME="author" -->&nbsp;
28                 </a>
29             </p>
30         <!-- /TMPL_IF -->
31         <!-- TMPL_IF name="MARCAUTHORS" -->
32             <p><label><b>Additional Author:</b></label>
33                 <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
34                 <a href="/cgi-bin/koha/catalogue/search.pl?q=Koha-Auth-Number:<!-- TMPL_VAR NAME="link" -->">
35                     <!-- TMPL_VAR NAME="value" -->
36                 </a>&nbsp;
37                 <!-- /TMPL_LOOP -->
38             </p>
39         <!-- /TMPL_IF -->
40         <!-- TMPL_IF name="illus" -->
41             <p><label><b>Illus:</b></label><!-- TMPL_VAR name="illus" -->&nbsp;</p>
42         <!-- /TMPL_IF -->
43         <!-- TMPL_IF name="publishercode" -->
44             <p><label><b>Published by :</b></label>
45                 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode" -->">
46                     <!-- TMPL_VAR NAME="publishercode" -->
47                 </a>&nbsp;
48             </p>
49         <!-- /TMPL_IF -->
50         <!-- TMPL_IF name="publicationyear" -->
51             <p><label><b>in</b></label><!-- TMPL_VAR NAME="publicationyear" -->&nbsp;</p>
52         <!-- /TMPL_IF -->
53         <p>
54             <label>&nbsp;</label>
55                 <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
56                 <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->&nbsp;
57         </p>
58         <!-- TMPL_IF name="isbn" -->
59             <p><label><b>ISBN: </b></label><!-- TMPL_VAR NAME="isbn" -->&nbsp;</p>
60         <!-- /TMPL_IF -->
61         <!-- TMPL_IF name="issn" -->
62             <p><label><b>ISSN:</b></label><!-- TMPL_VAR NAME="issn" -->&nbsp;</p>
63         <!-- /TMPL_IF -->
64         <!-- TMPL_IF name="seriestitle" -->
65             <p><label><b>Collection: </b></label>
66                 <!-- TMPL_VAR NAME="seriestitle" --> 
67                 <!-- TMPL_IF name="volume" -->vol. <!-- TMPL_VAR name="volume" --> <!-- TMPL_VAR name="volumedate" --><!-- /TMPL_IF -->
68                 <!-- TMPL_VAR name="volumedesc" -->&nbsp;
69             </p>
70         <!-- /TMPL_IF -->
71         <!-- TMPL_IF name="MARCSUBJCTS" -->
72             <p><label><b>Subjects: </b></label></p>
73             <p>
74                 <!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
75                     <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="link" ESCAPE="URL"-->"><!-- TMPL_VAR NAME="label" --></a>
76                     &nbsp;
77                 <!-- /TMPL_LOOP -->
78             </p>
79         <!-- /TMPL_IF -->
80         <!-- TMPL_IF name="copyrightdate" -->
81             <p><label><b>Year : </b></label><!-- TMPL_VAR NAME="copyrightdate" --></p>
82         <!-- /TMPL_IF -->
83         <!-- TMPL_IF name="MARCNOTES" -->
84             <p><label><b>Notes: </b></label></p>
85             <p>
86                 <!-- TMPL_LOOP NAME="MARCNOTES" -->
87                     <p>- <!-- TMPL_VAR NAME="marcnote" --></p>
88                 <!-- /TMPL_LOOP -->
89             </p>
90         <!-- TMPL_ELSE -->
91             <!-- TMPL_IF name="notes" -->
92                 <p><label><b>Notes: </b></label><!-- TMPL_VAR NAME="notes" --></p>
93             <!-- /TMPL_IF -->
94         <!-- /TMPL_IF -->
95         <!-- TMPL_IF name="unititle" -->
96             <p><label><b>Alt title: </b></label><!-- TMPL_VAR NAME="unititle" --></p>
97         <!-- /TMPL_IF -->
98         <!-- TMPL_IF name="classification" -->
99             <p><label><b>classification:</b></label><!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></p>
100         <!-- /TMPL_IF -->
101         <!-- TMPL_IF name="dewey" -->
102             <p><label><b>Dewey:</b></label><!-- TMPL_VAR name="dewey" --></p>
103         <!-- /TMPL_IF -->
104         <!-- TMPL_IF name="URLS" -->
105             <p><label><b>URL: </b></label>
106                 <!-- TMPL_LOOP name="URLS" -->
107                     <a href="<!-- TMPL_VAR name="url" -->"><!-- TMPL_VAR NAME="url" --></a>&nbsp;
108                 <!-- /TMPL_LOOP -->
109             </p>
110         <!-- /TMPL_IF -->
111         <p><label><b>Item type : </b></label>
112             <!-- TMPL_IF name="description" -->
113                 <!-- TMPL_VAR name="description" -->
114             <!-- TMPL_ELSE -->
115                 <!-- TMPL_VAR NAME="itemtype" -->
116             <!-- /TMPL_IF -->
117         </p>
118     </div>
119
120 <!-- TMPL_IF name="count" -->
121     <div id="catalogue_detail_items">
122         <h2><!-- TMPL_VAR NAME="count" --> items</h2>
123         <table>
124             <tr>
125                 <th>Item type</th>
126                 <th>Location</th>
127                 <th>Status</th>
128                 <th>Date Due</th>
129                 <th>Last seen</th>
130                 <th>Barcode</th>
131                 <th>Volume</th>
132             </tr>
133             <!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
134                 <tr>
135                     <td><!-- TMPL_VAR NAME="description" --></td>
136                     <td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
137                     <td>
138                         <!-- TMPL_IF name="datedue" -->
139                             On issue to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a>
140                         <!-- TMPL_ELSE -->
141                             <!-- TMPL_IF name="notforloan" -->
142                                 <!-- TMPL_VAR name="notforloan" -->
143                             <!-- TMPL_ELSE -->
144                                 <!-- TMPL_IF name="itemlost"-->
145                                     Item lost
146                                 <!-- TMPL_ELSE -->
147                                 <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled<!-- TMPL_ELSE -->Available<!-- /TMPL_IF -->
148                                 <!-- /TMPL_IF -->
149                             <!-- /TMPL_IF -->
150                         <!-- /TMPL_IF -->
151                     </td>
152                     <td><!-- TMPL_VAR NAME="datedue" --></td>
153                     <td><!-- TMPL_VAR NAME="datelastseen" --></td>
154                     <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=<!-- TMPL_VAR NAME="type" -->&item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></td>
155                     <td><!-- TMPL_VAR NAME="volumeddesc" --></td>
156                     <!-- TMPL_IF NAME="type" -->
157                         <td>
158                             <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>
159                         </td>
160                     <!-- /TMPL_IF -->
161                 </tr>
162             <!-- /TMPL_LOOP -->
163         </table>
164     </div>
165 <!-- TMPL_ELSE -->
166     <p>we don't have any physical item for this document</p>
167 <!-- /TMPL_IF -->
168 <!-- TMPL_IF name="subscriptionsnumber" -->
169 <div id="catalogue_detail_subscriptions">
170     <h2>This is a serial subscription</h2>
171     <p> (We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p> 
172     <!-- TMPL_LOOP Name="subscriptions" -->
173             <!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
174             <!--TMPL_IF NAME="latestserials"-->
175             <p> The three latest issues related to this subscription:</p>
176             <table>
177                 <tr>
178                     <th>Issue #</th>
179                     <th>Date</th>
180                     <th>Status</th>
181                     <th>Note</th>
182             <!--TMPL_LOOP Name="latestserials"-->
183                 <tr>
184                     <td>
185                         <!--TMPL_VAR Name="serialseq"-->
186                     </td>
187                     <td>
188                         <!--TMPL_VAR Name="planneddate"-->
189                     </td>
190                     <td>
191                         <!--TMPL_IF Name="status1"-->Waited
192                         <!--TMPL_ELSE -->
193                             <!-- TMPL_IF Name="status2"-->Arrived
194                             <!--TMPL_ELSE -->
195                                 <!-- TMPL_IF Name="status3"-->Late
196                                 <!--TMPL_ELSE -->
197                                     <!-- TMPL_IF Name="status4"-->Missing
198                                     <!--TMPL_ELSE -->
199                                         <!-- TMPL_IF Name="status5"-->Not Issued
200                                         <!--/TMPL_IF-->
201                                     <!--/TMPL_IF-->
202                                 <!--/TMPL_IF-->
203                             <!--/TMPL_IF-->
204                         <!--/TMPL_IF-->
205                     </td>
206                     <td>
207                         <!--TMPL_VAR Name="notes"-->
208                     </td>
209                 </tr>
210             <!--/TMPL_LOOP -->
211             </table>
212             <!-- /TMPL_IF -->
213     <!-- /TMPL_LOOP -->
214 </div>
215 <!-- /TMPL_IF -->
216
217 <script language="javascript" type="text/javascript">
218 function Dopop(link) {
219     newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
220 }
221 function confirm_deletion(count) {
222         var is_confirmed;
223         if (count>0){
224                     is_confirmed= alert(_('you have [ '+ count +' ] item(s) linked \n you must delete all items before delete this biblio'));
225                     }
226         else{
227                     is_confirmed= confirm(_('Are you sure you want to delete this biblio? '));
228         }
229
230     
231      if (is_confirmed) {
232         if (count>0){
233 //      window.location="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
234         }
235         else{
236         window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
237         }
238                 
239     }
240 }
241 </script>
242
243 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->