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