start of reworking call number handling and other Biblio changes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Catalogue &rsaquo; Details for <!-- TMPL_VAR NAME="title" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Core + Skin CSS -->
5 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/button/assets/skins/sam/button.css"/>
6 <!-- OPTIONAL: Menu Stylesheet (required for creating buttons of type "menu" and "split") -->
7 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/menu/assets/skins/sam/menu.css"/>
8
9 <!-- Dependencies -->
10 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
11 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/element/element-beta-min.js"></script>
12
13 <!-- OPTIONAL: Menu and Container Core (required for creating buttons of type "menu" and "split") -->
14 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/container/container_core-min.js"></script>
15 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/menu/menu-min.js"></script>
16
17 <!-- Source file -->
18 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js"></script>
19 <script type="text/javascript">
20 //<![CDATA[
21 function Dopop(link) {
22     newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
23 }
24 function confirm_deletion(count) {
25         var is_confirmed;
26         if (count>0){
27                     is_confirmed= alert(_('There are [ '+ count +' ] item(s) attached to this record \n You must delete all items before deleting this record.'));
28                     }
29         else{
30                     is_confirmed= confirm(_('Are you sure you want to delete this record? '));
31         }
32
33     
34      if (is_confirmed) {
35         if (count>0){
36 //      window.location="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
37         }
38         else{
39         window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
40         }
41                 
42     }
43 }
44
45 // prepare DOM for YUI Toolbar
46
47  $(document).ready(function() {
48         $("#edititems").parent().remove();
49         $("#duplicatebiblio").parent().remove();
50         $("#editmenucontainer").empty();
51         yuiToolbar();
52  });
53
54 // YUI Toolbar Functions
55
56        var editmenu = [
57             { text: "Edit Record", url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;frameworkcode=<!--TMPL_VAR Name="current_framework" -->&amp;op=" },
58             { text: "Edit Items", url: "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" },
59             { text: "Edit as New (Duplicate)", url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;frameworkcode=<!--TMPL_VAR Name="current_framework" -->&amp;op=duplicate" }
60         ];
61         
62         var oEditMenu = new YAHOO.widget.Button({
63                                 type: "menu",
64                                 label: "Edit",
65                                 name: "editmenubutton",
66                                 menu: editmenu,
67                                 container: "editmenucontainer"
68                  });   
69
70 function yuiToolbar(){
71          YAHOO.toolbar.init = function () {
72                     var oAddbiblio = new YAHOO.widget.Button("addbiblio");
73                     var oEditbiblio = new YAHOO.widget.Button("editbiblio");
74                     var oEdititems = new YAHOO.widget.Button("edititems");
75                     var oDuplicatebiblio = new YAHOO.widget.Button("duplicatebiblio");
76                     var oDeletebiblio = new YAHOO.widget.Button("deletebiblio");
77                     var oAddtoshelf = new YAHOO.widget.Button("addtoshelf");
78                     var oPrintbiblio = new YAHOO.widget.Button("printbiblio");
79                     <!-- TMPL_UNLESS name="bi_notforloan" -->
80                         var oPlacehold = new YAHOO.widget.Button("placehold");           
81                     <!-- /TMPL_UNLESS -->
82     } ();
83 }
84         
85 //]]>
86 </script>
87 </head>
88
89 <body class="yui-skin-sam">
90
91 <!-- TMPL_INCLUDE NAME="header.inc" -->
92 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
93
94 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalogue</a>  &rsaquo; Details for <i><!-- TMPL_VAR NAME="title" --></i></div>
95
96 <div id="doc3" class="yui-t2">
97    
98    <div id="bd">
99         <div id="yui-main">
100         <div class="yui-b">
101
102 <!-- TMPL_INCLUDE NAME="cat-toolbar.inc" -->
103     <div class="yui-gb">
104     <h2><!-- TMPL_VAR NAME="title" --></h2>     
105         <div id="catalogue_detail_biblio" class="yui-u first">
106
107         <p>
108             [
109             <!-- TMPL_IF name="description" -->
110                 <!-- TMPL_VAR name="description" -->
111             <!-- TMPL_ELSE -->
112                 <!-- TMPL_VAR NAME="itemtype" -->
113             <!-- /TMPL_IF -->
114             ]
115             <!-- TMPL_IF name="volume" -->, <!-- TMPL_VAR name="volume" --><!-- /TMPL_IF -->
116             <!-- TMPL_IF name="volumedesc" -->, <!-- TMPL_VAR name="volumedesc" --><!-- /TMPL_IF -->
117             <!-- TMPL_IF name="unititle" -->, <!-- TMPL_VAR name="unititle" --><!-- /TMPL_IF -->
118             / <!-- TMPL_VAR NAME="author" --> <!-- TMPL_VAR NAME="class" -->
119         </p>
120                 
121                 
122                 
123                 <ul>
124         <!-- TMPL_IF name="MARCAUTHORS" -->
125             <li><strong>Additional Authors:</strong><ul>
126                 <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
127                 <li><a href="/cgi-bin/koha/catalogue/search.pl?q=Koha-Auth-Number:<!-- TMPL_VAR NAME="link" -->">
128                     <!-- TMPL_VAR NAME="value" -->
129                 </a>&nbsp;</li>
130                 <!-- /TMPL_LOOP -->
131                                 </ul>
132             </li>
133         <!-- /TMPL_IF -->
134         <!-- TMPL_IF name="illus" -->
135             <li><strong>Illustrator:</strong> <!-- TMPL_VAR name="illus" -->&nbsp;</li>
136         <!-- /TMPL_IF -->
137         <!-- TMPL_IF name="publishercode" -->
138             <li><strong>Publisher:</strong>
139                 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode" -->">
140                     <!-- TMPL_VAR NAME="publishercode" -->
141                 </a>&nbsp;
142             </li>
143         <!-- /TMPL_IF -->
144         <!-- TMPL_IF name="publicationyear" -->
145             <li>in:<!-- TMPL_VAR NAME="publicationyear" -->&nbsp;</li>
146         <!-- /TMPL_IF -->
147         <li><strong>Description:</strong>
148                 <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
149                 <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->
150         </li>
151                 </ul>
152                 </div>
153                 
154 <div class="yui-u"><!-- TMPL_IF NAME="AmazonContent" -->
155                 <a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><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" /></a>
156 <!-- TMPL_ELSE -->
157         <img src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="" border="0"/>
158 <!-- /TMPL_IF --></div>
159                 
160                 <div class="yui-u">
161                 <ul>
162         <!-- TMPL_IF name="isbn" -->
163             <li><strong>ISBN:</strong> <!-- TMPL_VAR NAME="isbn" -->&nbsp;</li>
164         <!-- /TMPL_IF -->
165         <!-- TMPL_IF name="issn" -->
166             <li><strong>ISSN:</strong><!-- TMPL_VAR NAME="issn" -->&nbsp;</li>
167         <!-- /TMPL_IF -->
168         <!-- TMPL_IF name="collectiontitle" -->
169             <li><strong>Collection: </strong>
170                 <!-- TMPL_VAR NAME="collectiontitle" --> <!-- TMPL_IF name="collectionvolume" -->, <!-- TMPL_VAR NAME="collectionvolume" --><!-- /TMPL_IF --><!-- TMPL_IF name="collectionissn" -->(<strong>ISSN:</strong> <!-- TMPL_VAR NAME="collectionissn" -->)<!-- /TMPL_IF -->
171             </li>
172         <!-- /TMPL_IF -->
173         <!-- TMPL_IF name="MARCSUBJCTS" -->
174             <li><strong>Subjects:</strong> 
175             <ul>
176                 <!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
177                     <li><a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="link" ESCAPE="URL"-->"><!-- TMPL_VAR NAME="label" --></a>
178                     &nbsp;</li>
179                 <!-- /TMPL_LOOP -->
180                                 </ul>
181             </li>
182         <!-- /TMPL_IF -->
183         <!-- TMPL_IF name="copyrightdate" -->
184             <li><strong>Copyright:</strong> <!-- TMPL_VAR NAME="copyrightdate" --></li>
185         <!-- /TMPL_IF -->
186         <!-- TMPL_IF name="MARCNOTES" -->
187             <li><strong>Notes:</strong>
188             <ul>
189                 <!-- TMPL_LOOP NAME="MARCNOTES" -->
190                     <li>- <!-- TMPL_VAR NAME="marcnote" --></li>
191                 <!-- /TMPL_LOOP -->
192             </ul>
193                         </li>
194         <!-- TMPL_ELSE -->
195             <!-- TMPL_IF name="notes" -->
196                 <li><strong>Notes:</strong> <!-- TMPL_VAR NAME="notes" --></li>
197             <!-- /TMPL_IF -->
198         <!-- /TMPL_IF -->
199         <!-- TMPL_IF name="unititle" -->
200             <li><strong>Alternate title:</strong> <!-- TMPL_VAR NAME="unititle" --></li>
201         <!-- /TMPL_IF -->
202         <!-- TMPL_IF name="classification" -->
203             <li><strong>Classification:</strong> <!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></li>
204         <!-- /TMPL_IF -->
205         <!-- TMPL_IF name="dewey" -->
206             <li><strong>Dewey:</strong> <!-- TMPL_VAR name="dewey" --></li>
207         <!-- /TMPL_IF -->
208         <!-- TMPL_IF name="URLS" -->
209             <li><strong>URL:</strong> 
210                 <!-- TMPL_LOOP name="URLS" -->
211                     <a href="<!-- TMPL_VAR name="url" -->"><!-- TMPL_VAR NAME="url" --></a>&nbsp;
212                 <!-- /TMPL_LOOP -->
213             </li>
214         <!-- /TMPL_IF -->
215                 </ul>
216 </div>
217
218 </div>
219
220 <div class="yui-g">
221 <!-- TMPL_IF name="count" -->
222     <div id="catalogue_detail_items">
223         <caption><!-- TMPL_VAR NAME="count" --> item(s)</caption>
224         <table>
225             <tr>
226                 <th>Item type</th>
227                 <th>Location</th>
228                 <th>Status</th>
229                 <th>Date Due</th>
230                 <th>Last seen</th>
231                 <th>Barcode</th>
232                 <th>Volume</th>
233             </tr>
234             <!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
235                 <tr>
236                     <td><!-- TMPL_VAR NAME="description" --></td>
237                     <td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
238                     <td><!-- TMPL_IF name="datedue" -->
239                             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>
240                         <!-- TMPL_ELSE -->
241                             <!-- TMPL_IF name="bi_notforloan" -->
242                                 Not For loan (itemtype)
243                             <!-- TMPL_ELSE -->
244                                 <!-- TMPL_IF name="notforloan" -->
245                                     <!-- TMPL_VAR name="notforloan" -->
246                                 <!-- TMPL_ELSE -->
247                                     <!-- TMPL_IF name="itemlost"-->
248                                         Item lost
249                                     <!-- TMPL_ELSE -->
250                                     <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled<!-- TMPL_ELSE -->Available<!-- /TMPL_IF -->
251                                     <!-- /TMPL_IF -->
252                                 <!-- /TMPL_IF -->
253                             <!-- /TMPL_IF -->
254                         <!-- /TMPL_IF -->
255                         </td>
256                     <td><!-- TMPL_VAR NAME="datedue" --></td>
257                     <td><!-- TMPL_VAR NAME="datelastseen" --></td>
258                     <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=<!-- TMPL_VAR NAME="type" -->&amp;item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></td>
259                     <td><!-- TMPL_VAR NAME="volumeddesc" --></td>
260                     <!-- TMPL_IF NAME="type" -->
261                         <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>
262                         </td>
263                     <!-- /TMPL_IF -->
264                 </tr>
265             <!-- /TMPL_LOOP -->
266         </table>
267     </div>
268 <!-- TMPL_ELSE -->
269     <p>No physical items for this record</p>
270 <!-- /TMPL_IF -->
271 </div>
272
273 <!-- TMPL_IF name="subscriptionsnumber" -->
274 <div class="yui-g">
275 <div id="catalogue_detail_subscriptions">
276     <h2>This is a serial subscription</h2>
277     <p> (We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p> 
278     <!-- TMPL_LOOP Name="subscriptions" -->
279             <!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
280             <!--TMPL_IF NAME="latestserials"-->
281             <p> The three latest issues related to this subscription:</p>
282             <table>
283                 <tr>
284                     <th>Issue #</th>
285                     <th>Date</th>
286                     <th>Status</th>
287                     <th>Note</th>
288                                 </tr>
289             <!--TMPL_LOOP Name="latestserials"-->
290                 <tr>
291                     <td><!--TMPL_VAR Name="serialseq"--></td>
292                     <td><!--TMPL_VAR Name="planneddate"--></td>
293                     <td><!--TMPL_IF Name="status1"-->Waited
294                         <!--TMPL_ELSE -->
295                             <!-- TMPL_IF Name="status2"-->Arrived
296                             <!--TMPL_ELSE -->
297                                 <!-- TMPL_IF Name="status3"-->Late
298                                 <!--TMPL_ELSE -->
299                                     <!-- TMPL_IF Name="status4"-->Missing
300                                     <!--TMPL_ELSE -->
301                                         <!-- TMPL_IF Name="status5"-->Not Issued
302                                         <!--/TMPL_IF-->
303                                     <!--/TMPL_IF-->
304                                 <!--/TMPL_IF-->
305                             <!--/TMPL_IF-->
306                         <!--/TMPL_IF--></td>
307                     <td><!--TMPL_VAR Name="notes"--></td>
308                 </tr>
309             <!--/TMPL_LOOP -->
310             </table>
311             <!-- /TMPL_IF -->
312     <!-- /TMPL_LOOP -->
313 </div>
314 </div>
315 <!-- /TMPL_IF -->
316
317 </div>
318 </div>
319 <div class="yui-b">
320 <!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
321 <!-- TMPL_INCLUDE NAME="cat-menu.inc" -->
322 </div>
323 </div>
324 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->