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