(bug #3267) show items.uri in opac and intranet
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tmpl
index a6be6b7..cb9dae5 100644 (file)
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; Catalogue &rsaquo; Details for <!-- TMPL_VAR NAME="title" --></title>
-<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
-<!-- Core + Skin CSS -->
-<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/button/assets/skins/sam/button.css">
-<!-- OPTIONAL: Menu Stylesheet (required for creating buttons of type "menu" and "split") -->
-<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/menu/assets/skins/sam/menu.css">
-
-<!-- Dependencies -->
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/element/element-beta-min.js"></script>
-
-<!-- OPTIONAL: Menu and Container Core (required for creating buttons of type "menu" and "split") -->
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/container/container_core-min.js"></script>
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/menu/menu-min.js"></script>
-
-<!-- Source file -->
-<script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js"></script>
-<script type="text/javascript">
+<title>Koha &rsaquo; Catalog &rsaquo; Details for <!-- TMPL_VAR NAME="title" escape="html" --></title>
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" --><script type="text/JavaScript" language="JavaScript">
 //<![CDATA[
-function Dopop(link) {
-    newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
+// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
+function verify_images() {
+    $("#bookcoverimg img").each(function(i){
+           if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
+            w = this.width;
+            h = this.height;
+            if ((w == 1) || (h == 1)) {
+                $("#bookcoverimg").remove();
+                $(".yui-gb").attr("class","yui-g");
+            } else if ((this.complete != null) && (!this.complete)) {
+                $("#bookcoverimg").remove();
+                $(".yui-gb").attr("class","yui-g");
+            }
+        }
+        });
+       $("#editions img").each(function(i){
+           if ((this.src.indexOf('images.amazon.com') >= 0) || (this.src.indexOf('g-images.amazon.com') >=0)) {
+            w = this.width;
+            h = this.height;
+            if ((w == 1) || (h == 1)) {
+                               this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
+            } else if ((this.complete != null) && (!this.complete)) {
+                               this.src = 'http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
+            }
+        }
+        });
 }
-function confirm_deletion(count) {
-        var is_confirmed;
-       if (count>0){
-                   is_confirmed= alert(_('you have [ '+ count +' ] item(s) linked \n you must delete all items before delete this biblio'));
-                   }
-        else{
-                   is_confirmed= confirm(_('Are you sure you want to delete this biblio? '));
-       }
-
-    
-     if (is_confirmed) {
-        if (count>0){
-//     window.location="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
-       }
-       else{
-       window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
-       }
-               
-    }
-}
-      // "contentready" event handler for the "toolbar" <div>
-        YAHOO.example.init = function () {
-      YAHOO.util.Event.onContentReady("toolbar", function () {
-                       var oAddbiblio = new YAHOO.widget.Button("addbiblio");
-            var oDeletebiblio = new YAHOO.widget.Button("deletebiblio");
-                       var oAddtoshelf = new YAHOO.widget.Button("addtoshelf");
-                       var oPrintbiblio = new YAHOO.widget.Button("printbiblio");
-                       var oPlacehold = new YAHOO.widget.Button("placehold");
-                       var oEditButton = new YAHOO.widget.Button("editbutton", { type: "menu", menu: "editbuttonselect" });
-                        });
-    } ();
-       
+     $(document).ready(function() {
+        $('#bibliodetails > ul').tabs();
+     });
+     <!-- TMPL_IF NAME="AmazonEnabled" -->$(window).load(function() {
+        verify_images();
+     });<!-- /TMPL_IF -->
 //]]>
 </script>
-<style type="text/css">
-#toolbar {
-}
-
-#addbiblio a {
-       padding-left : 2.1em;
-       background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
-       background-position : 0 -155px;
-       background-repeat : no-repeat;
-}
-
-#deletebiblio a {
-       padding-left : 2.1em;
-       background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
-       background-position : 0 -188px;
-       background-repeat : no-repeat;
-}
-
-#printbiblio a {
-       padding-left : 2.1em;
-       background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
-       background-position : 0 -243px;
-       background-repeat : no-repeat;
-}
-
-#addtoshelf a {
-       padding-left : 2.2em;
-       background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
-       background-position : 0 -124px;
-       background-repeat : no-repeat;
-}
-
-#placehold a {
-       padding-left : 2.2em;
-       background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
-       background-position : 0 -215px;
-       background-repeat : no-repeat;
-}
-</style>
 </head>
-<body class="yui-skin-sam">
+
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
-<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>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; Details for <i><!-- TMPL_VAR NAME="title" escape="html" --></i></div>
 
 <div id="doc3" class="yui-t2">
    
    <div id="bd">
-       <div id="yui-main">
-       <div class="yui-b">
+    <div id="yui-main">
+    <div class="yui-b">
 
 <!-- TMPL_INCLUDE NAME="cat-toolbar.inc" -->
-    <div class="yui-gb">
-    <h2><!-- TMPL_VAR NAME="title" --></h2>    
-       <div id="catalogue_detail_biblio" class="yui-u first">
-
-        <p>
-            [
-            <!-- TMPL_IF name="description" -->
-                <!-- TMPL_VAR name="description" -->
-            <!-- TMPL_ELSE -->
-                <!-- TMPL_VAR NAME="itemtype" -->
-            <!-- /TMPL_IF -->
-            ]
-            <!-- TMPL_IF name="volume" -->, <!-- TMPL_VAR name="volume" --><!-- /TMPL_IF -->
-            <!-- TMPL_IF name="volumedesc" -->, <!-- TMPL_VAR name="volumedesc" --><!-- /TMPL_IF -->
-            <!-- TMPL_IF name="unititle" -->, <!-- TMPL_VAR name="unititle" --><!-- /TMPL_IF -->
-            / <!-- TMPL_VAR NAME="author" --> <!-- TMPL_VAR NAME="class" -->
-        </p>
-               
-               
-               
-               <ul>
+    <!-- TMPL_IF NAME="AmazonEnabled" --><div class="yui-gb"><!-- TMPL_ELSE --><div class="yui-g"><!-- /TMPL_IF -->
+    <div id="catalogue_detail_biblio" class="yui-u first">
+        
+    <h3><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></h3> 
+            <!-- TMPL_UNLESS NAME="item-level_itypes" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->"><!-- /TMPL_UNLESS -->
+            <!-- TMPL_IF name="unititle" --><p><!-- TMPL_VAR name="unititle" escape="html" --></p><!-- /TMPL_IF -->
+            <!-- TMPL_IF NAME="author" --><p>By <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="url" -->"><!-- TMPL_VAR NAME="author" --></a></p><!-- /TMPL_IF -->
+        <ul>
         <!-- TMPL_IF name="MARCAUTHORS" -->
-            <li><strong>Authors:</strong><ul>
-                <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
-                <li><a href="/cgi-bin/koha/catalogue/search.pl?q=Koha-Auth-Number:<!-- TMPL_VAR NAME="link" -->">
-                    <!-- TMPL_VAR NAME="value" -->
-                </a>&nbsp;</li>
+            <li><strong>Additional Authors:</strong><ul>
+            <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
+                <li><!-- TMPL_LOOP NAME="MARCAUTHOR_SUBFIELDS_LOOP" --><!-- TMPL_VAR NAME="separator" --><a title="&#8225;<!-- TMPL_VAR NAME="code" --> <!-- TMPL_VAR NAME="value" escape="url" -->" href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_LOOP NAME="link_loop" --><!-- TMPL_VAR NAME="operator" escape="url" --><!-- TMPL_VAR name="limit" -->:<!-- TMPL_VAR NAME="link" ESCAPE="url" --><!-- /TMPL_LOOP -->"><!-- TMPL_VAR NAME="value" --></a><!-- /TMPL_LOOP --></li>
                 <!-- /TMPL_LOOP -->
-                               </ul>
+
+        </ul>
             </li>
         <!-- /TMPL_IF -->
-        <!-- TMPL_IF name="illus" -->
-            <li><strong>Illustrator:</strong> <!-- TMPL_VAR name="illus" -->&nbsp;</li>
-        <!-- /TMPL_IF -->
+<!-- TMPL_IF NAME="MARCSERIES" -->
+               <li><strong>Series: </strong><ul><!-- TMPL_LOOP NAME="MARCSERIES" -->
+               <li><!-- TMPL_LOOP NAME="MARCSERIES_SUBFIELDS_LOOP" --> <!-- TMPL_IF NAME="value" --><a href="/cgi-bin/koha/catalogue/search.pl?q=se:<!-- TMPL_VAR NAME="value" ESCAPE="url"-->"><!-- TMPL_VAR NAME="value" --></a><!-- /TMPL_IF --><!-- TMPL_IF NAME="volumenum" -->. <!-- TMPL_VAR NAME="volumenum" --><!-- /TMPL_IF --><!-- /TMPL_LOOP --></li> 
+               <!-- /TMPL_LOOP -->
+               </ul>
+               </li>
+<!-- /TMPL_IF -->
         <!-- TMPL_IF name="publishercode" -->
-            <li><strong>Publisher:</strong>
-                <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode" -->">
-                    <!-- TMPL_VAR NAME="publishercode" -->
-                </a>&nbsp;
-            </li>
-        <!-- /TMPL_IF -->
-        <!-- TMPL_IF name="publicationyear" -->
-            <li>in:<!-- TMPL_VAR NAME="publicationyear" -->&nbsp;</li>
-        <!-- /TMPL_IF -->
+    <li><strong>Published by:</strong>
+        <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode" ESCAPE="url" -->">
+            <!-- TMPL_VAR NAME="publishercode" ESCAPE="html" -->
+        </a> <!-- TMPL_IF name="place" -->(<!-- TMPL_VAR NAME="place"-->)<!--/TMPL_IF--> <!-- TMPL_IF NAME="publicationyear" -->, <!-- TMPL_VAR NAME="publicationyear" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="editionstatement" --><!-- TMPL_VAR NAME="editionstatement" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="editionresponsability" --><!-- TMPL_VAR NAME="editionresponsability" --><!-- /TMPL_IF -->
+    </li>
+    <!-- /TMPL_IF -->
         <li><strong>Description:</strong>
-                <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
-                <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->
+                <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" --> <!-- TMPL_IF NAME="illus" --><!-- TMPL_VAR NAME="illus" --><!-- /TMPL_IF -->
+                <!-- TMPL_IF name="size" --><!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
         </li>
-               </ul>
-               </div>
-               
-<!-- TMPL_IF NAME="AmazonContent" -->
-               <!-- TMPL_IF NAME="AmazonISBN" --><div class="yui-u"><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>
-</div><!-- /TMPL_IF -->
-<!-- /TMPL_IF -->
-               
-               <div class="yui-u">
-               <ul>
-        <!-- TMPL_IF name="isbn" -->
-            <li><strong>ISBN:</strong> <!-- TMPL_VAR NAME="isbn" -->&nbsp;</li>
+<!-- TMPL_IF name="MARCURLS" --><li>
+    
+       <strong>Online Resources:</strong>
+    <ul>    <!-- TMPL_LOOP name="MARCURLS" -->
+               <li><!-- TMPL_IF NAME="part" --><!-- TMPL_VAR NAME="part" -->
+                       <br /><!-- /TMPL_IF --> 
+               <!-- here you might do a tmpl_if name="toc" and use greybox or equivalent for table of contents -->
+               <a href="<!-- TMPL_VAR NAME="MARCURL" -->" title="<!-- TMPL_VAR NAME="MARCURL" -->"><!-- TMPL_VAR NAME="linktext" --></a>
+                       <!-- TMPL_IF NAME="notes" --><ul><!-- TMPL_LOOP NAME="notes" --><li><!-- TMPL_VAR NAME="note" --></li><!-- /TMPL_LOOP --></ul><!-- /TMPL_IF --></li>
+            <!-- /TMPL_LOOP --></ul>
+</li>
+    <!-- /TMPL_IF -->
+        </ul>
+        </div>
+       
+<!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" --><div class="yui-u" id="bookcoverimg">
+<a href="http://www.amazon<!-- TMPL_VAR NAME="AmazonTld" -->/gp/reader/<!-- TMPL_VAR NAME="normalized_isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="normalized_isbn" -->.01.MZZZZZZZ.jpg" alt="" /></a></div><!-- /TMPL_IF --><!-- /TMPL_IF -->
+        
+        <div class="yui-u" style="margin-top: 1em;">
+        <ul>
+        <!-- TMPL_IF name="normalized_isbn" -->
+            <li><strong>ISBN:</strong> <!-- TMPL_VAR NAME="normalized_isbn" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="issn" -->
-            <li><strong>ISSN:</strong><!-- TMPL_VAR NAME="issn" -->&nbsp;</li>
+            <li><strong>ISSN:</strong><!-- TMPL_VAR NAME="issn" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="collectiontitle" -->
             <li><strong>Collection: </strong>
-                <!-- 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 -->
+                <!-- 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 -->
             </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="MARCSUBJCTS" -->
             <li><strong>Subjects:</strong> 
             <ul>
                 <!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
-                    <li><a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="link" ESCAPE="URL"-->"><!-- TMPL_VAR NAME="label" --></a>
-                    &nbsp;</li>
+                <li><!-- TMPL_LOOP NAME="MARCSUBJECT_SUBFIELDS_LOOP" --> <!-- TMPL_VAR NAME="separator" --> <a title="&#8225;<!-- TMPL_VAR NAME="code" --> <!-- TMPL_VAR NAME="value" -->" href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_LOOP NAME="link_loop" --><!-- TMPL_VAR NAME="operator" escape="url" --><!-- TMPL_VAR name="limit" -->:<!-- TMPL_VAR NAME="link" escape="url" --><!-- /TMPL_LOOP -->"><!-- TMPL_VAR NAME="value" ESCAPE="html" --></a><!-- /TMPL_LOOP --></li>
                 <!-- /TMPL_LOOP -->
-                               </ul>
+                </ul>
             </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="copyrightdate" -->
             <li><strong>Copyright:</strong> <!-- TMPL_VAR NAME="copyrightdate" --></li>
         <!-- /TMPL_IF -->
-        <!-- TMPL_IF name="MARCNOTES" -->
-            <li><strong>Notes:</strong>
-            <ul>
-                <!-- TMPL_LOOP NAME="MARCNOTES" -->
-                    <li>- <!-- TMPL_VAR NAME="marcnote" --></li>
-                <!-- /TMPL_LOOP -->
-            </ul>
-                       </li>
-        <!-- TMPL_ELSE -->
-            <!-- TMPL_IF name="notes" -->
-                <li><strong>Notes:</strong> <!-- TMPL_VAR NAME="notes" --></li>
-            <!-- /TMPL_IF -->
-        <!-- /TMPL_IF -->
-        <!-- TMPL_IF name="unititle" -->
-            <li><strong>Alternate title:</strong> <!-- TMPL_VAR NAME="unititle" --></li>
-        <!-- /TMPL_IF -->
+     
         <!-- TMPL_IF name="classification" -->
             <li><strong>Classification:</strong> <!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></li>
         <!-- /TMPL_IF -->
@@ -216,62 +141,236 @@ function confirm_deletion(count) {
         <!-- TMPL_IF name="URLS" -->
             <li><strong>URL:</strong> 
                 <!-- TMPL_LOOP name="URLS" -->
-                    <a href="<!-- TMPL_VAR name="url" -->"><!-- TMPL_VAR NAME="url" --></a>&nbsp;
+                    <a href="<!-- TMPL_VAR name="url" -->"><!-- TMPL_VAR NAME="url" --></a>
                 <!-- /TMPL_LOOP -->
             </li>
         <!-- /TMPL_IF -->
-               </ul>
+        </ul>
 </div>
-
 </div>
 
-<div class="yui-g">
+<div id="bibliodetails" class="toptabs">
+
+<ul>   
+<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#holdings">Holdings</a></li>
+<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#description">Descriptions</a></li>
+<!-- TMPL_IF NAME="FRBRizeEditions" --><!-- TMPL_IF NAME="XISBNS" --><li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#editions">Editions</a></li><!-- /TMPL_IF --><!-- /TMPL_IF -->
+<!-- TMPL_IF NAME="AmazonSimilarItems" --><li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#related">Related Titles</a></li><!-- /TMPL_IF -->
+ </ul>
+
+<div id="holdings">
 <!-- TMPL_IF name="count" -->
-    <div id="catalogue_detail_items">
-        <caption><!-- TMPL_VAR NAME="count" --> item(s)</caption>
         <table>
             <tr>
-                <th>Item type</th>
+                <!-- TMPL_IF NAME="item-level_itypes" --><th>Item type</th><!-- /TMPL_IF -->
                 <th>Location</th>
+                <!-- TMPL_IF NAME="itemdata_ccode" --><th>Collection</th><!-- /TMPL_IF -->
+                <th>Call Number</th>
                 <th>Status</th>
-                <th>Date Due</th>
                 <th>Last seen</th>
                 <th>Barcode</th>
-                <th>Volume</th>
+                <!-- TMPL_IF NAME="volinfo" --><th>Publication Details</th><!-- /TMPL_IF -->
+                <!-- TMPL_IF NAME="itemdata_uri" --><th>URL</th><!-- /TMPL_IF -->
+                <!-- TMPL_IF NAME="itemdata_copynumber" --><th>Copy No.</th><!-- /TMPL_IF -->
             </tr>
-            <!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
+            <!-- TMPL_LOOP NAME="itemloop" -->
                 <tr>
-                    <td><!-- TMPL_VAR NAME="description" --></td>
-                    <td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
-                    <td><!-- TMPL_IF name="datedue" -->
-                            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>
+                    <!-- TMPL_IF NAME="item-level_itypes" -->
+                      <td class="itype">
+                        <!-- TMPL_IF NAME="noItemTypeImages" -->
+                          <!-- TMPL_VAR NAME="description" -->
                         <!-- TMPL_ELSE -->
-                            <!-- TMPL_IF name="notforloan" -->
-                                <!-- TMPL_VAR name="notforloan" -->
-                            <!-- TMPL_ELSE -->
-                                <!-- TMPL_IF name="itemlost"-->
-                                    Item lost
-                                <!-- TMPL_ELSE -->
-                                <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled<!-- TMPL_ELSE -->Available<!-- /TMPL_IF -->
-                                <!-- /TMPL_IF -->
-                            <!-- /TMPL_IF -->
+                          <!-- TMPL_IF NAME="imageurl" -->
+                            <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" />
+                          <!-- TMPL_ELSE -->
+                            <!-- TMPL_VAR NAME="description" -->
+                          <!-- /TMPL_IF -->
                         <!-- /TMPL_IF --></td>
-                    <td><!-- TMPL_VAR NAME="datedue" --></td>
-                    <td><!-- TMPL_VAR NAME="datelastseen" --></td>
-                    <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>
-                    <td><!-- TMPL_VAR NAME="volumeddesc" --></td>
-                    <!-- TMPL_IF NAME="type" -->
-                        <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>
                     <!-- /TMPL_IF -->
+                    <td class="location"><!-- TMPL_UNLESS NAME="singlebranchmode" --><!-- TMPL_VAR NAME="branchname" --><!-- /TMPL_UNLESS --> <!-- TMPL_VAR NAME="location" --> </td>
+                    <!-- TMPL_IF NAME="itemdata_ccode" --><td><!-- TMPL_VAR name="ccode" --></td><!-- /TMPL_IF -->
+                    <td class="itemcallnumber"><!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
+                    <td class="status">
+
+                <!-- TMPL_IF name="datedue" -->
+                                               <span class="datedue">Checked out
+                    <!-- TMPL_UNLESS  NAME="NOTSAMEBRANCH" -->
+                          to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a>
+                    <!-- /TMPL_UNLESS -->
+                                               : due <!-- TMPL_VAR NAME="datedue" -->
+                                               </span>
+                <!-- TMPL_ELSIF Name="transfertwhen" -->
+                           In transit from <!-- TMPL_VAR NAME="transfertfrom" -->,
+                           to <!-- TMPL_VAR NAME="transfertto" -->, since <!-- TMPL_VAR NAME="transfertwhen" -->
+                                                       <!-- FIXME: the "since" clause is redundant w/ lastseen field -->
+                <!-- /TMPL_IF -->
+
+                <!-- TMPL_IF NAME="itemlost" -->
+                    <!-- TMPL_IF NAME="itemlostloop" -->
+                    <!-- TMPL_LOOP NAME="itemlostloop" -->
+                        <!-- TMPL_IF NAME="selected" -->
+                                        <span class="lost"><!-- TMPL_VAR NAME="lib" --></span>
+                        <!-- /TMPL_IF -->
+                    <!-- /TMPL_LOOP -->
+                    <!-- TMPL_ELSE -->
+                                        <span class="lost">Unavailable (lost or missing)</span>
+                    <!-- /TMPL_IF -->
+                <!-- /TMPL_IF -->
+
+                <!-- TMPL_IF NAME="wthdrawn" -->
+                                        <span class="wdn">Withdrawn</span>
+                <!-- /TMPL_IF -->
+
+                <!-- TMPL_IF NAME="damaged" -->
+                    <!-- TMPL_IF NAME="itemdamagedloop" -->
+                        <!-- TMPL_LOOP NAME="itemdamagedloop" -->
+                        <!-- TMPL_IF NAME="selected" -->
+                                        <span class="dmg"><!-- TMPL_VAR NAME="lib" --></span>
+                        <!-- /TMPL_IF -->
+                        <!-- /TMPL_LOOP -->
+                    <!-- TMPL_ELSE -->
+                                        <span class="dmg">Damaged</span>
+                    <!-- /TMPL_IF -->
+                <!-- /TMPL_IF -->
+
+                <!-- TMPL_IF Name="itemnotforloan" -->
+                    Not for loan 
+                    <!-- TMPL_IF Name="notforloanvalue" -->
+                        (<!-- TMPL_VAR NAME="notforloanvalue" -->)
+                    <!-- /TMPL_IF -->
+                <!-- /TMPL_IF -->
+
+                            
+                <!-- TMPL_IF NAME="reservedate"-->
+                    <!-- TMPL_IF NAME="waitingdate" -->
+                        Waiting
+                    <!-- TMPL_ELSE -->
+                        On hold
+                    <!-- /TMPL_IF -->
+                    <!-- TMPL_IF NAME="canreservefromotherbranches" -->for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="ReservedForBorrowernumber" -->"><!-- TMPL_VAR NAME="ReservedForFirstname" --> <!-- TMPL_VAR NAME="ReservedForSurname" --></a><!-- /TMPL_IF -->
+                    <!-- TMPL_IF NAME="waitingdate" -->
+                        at<!-- TMPL_ELSE -->expected at
+                    <!-- /TMPL_IF -->   <!-- TMPL_VAR NAME="ExpectedAtLibrary" -->
+                    since
+                    <!-- TMPL_IF NAME="waitingdate" --><!-- TMPL_VAR NAME="waitingdate" -->
+                    <!-- TMPL_ELSE -->
+                        <!-- TMPL_IF name="reservedate" --><!-- TMPL_VAR NAME="reservedate" --><!-- /TMPL_IF -->
+                    <!-- /TMPL_IF -->
+                <!-- /TMPL_IF -->
+                <!-- TMPL_UNLESS name="itemnotforloan" --><!-- TMPL_UNLESS NAME="onloan" --><!-- TMPL_UNLESS NAME="itemlost" --><!-- TMPL_UNLESS NAME="wthdrawn" --><!-- TMPL_UNLESS NAME="damaged" --><!-- TMPL_UNLESS NAME="transfertwhen" --><!-- TMPL_UNLESS NAME="reservedate" -->
+                                        Available
+                <!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
+                        
+                    </td>
+                    <td class="datelastseen"><!-- TMPL_VAR NAME="datelastseen" --></td>
+                    <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=<!-- TMPL_VAR NAME="type" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->#item<!-- TMPL_VAR NAME="itemnumber">"><!-- TMPL_VAR NAME="barcode" --></a></td>
+                               <!-- TMPL_IF NAME="volinfo" --> <td class="enumchron">
+                                       <!-- TMPL_IF NAME="itemdata_enumchron" -->
+                                               <!-- TMPL_IF NAME="enumchron" -->
+                                               <!-- TMPL_VAR NAME="enumchron" --><!-- TMPL_IF NAME="serialseq" --> -- <!-- /TMPL_IF -->
+                                               <!-- /TMPL_IF -->
+                                       <!-- /TMPL_IF -->
+                                       <!-- TMPL_VAR NAME="serialseq" --><!-- TMPL_IF NAME="publisheddate" --> (<!-- TMPL_VAR NAME="publisheddate" -->)<!-- /TMPL_IF -->
+                               </td><!-- /TMPL_IF -->
+                               <!-- TMPL_IF NAME="itemdata_uri" -->
+                                       <td class="uri"><a href="<!-- TMPL_VAR NAME="uri" -->"><!-- TMPL_VAR NAME="uri" --></a></td>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF NAME="itemdata_copynumber" -->
+                                       <td class="copynumber"><!-- TMPL_VAR NAME="copynumber" --></td>
+                               <!-- /TMPL_IF -->
+                <!-- TMPL_IF NAME="type" -->
+                    <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>
+                <!-- /TMPL_IF -->
+
                 </tr>
             <!-- /TMPL_LOOP -->
         </table>
-    </div>
+               <!-- TMPL_IF NAME="debug_display" -->
+               <br /><br />
+               <table>
+                       <tr><td>itemdata_enumchron</td><td><!-- TMPL_VAR NAME="itemdata_enumchron" --></td></tr>
+                       <tr><td>itemdata_copynumber</td><td><!-- TMPL_VAR NAME="itemdata_copynumber" --></td></tr>
+                       <tr><td>serial</td><td><!-- TMPL_VAR NAME="serial" --></td></tr>
+               </table>
+               <!-- /TMPL_IF -->
 <!-- TMPL_ELSE -->
     <p>No physical items for this record</p>
+<!-- /TMPL_IF -->
+    </div>
+    
+<div id="description">
+<div class="content_set">
+<!-- TMPL_IF NAME="AmazonEnabled" -->
+<!-- TMPL_LOOP NAME="AMAZON_EDITORIAL_REVIEWS" -->
+    <!-- TMPL_IF NAME="Content" -->
+    <h4>From <!-- TMPL_VAR NAME="Source" -->:</h4>
+    <p><!-- TMPL_VAR NAME="Content" --></p>
+    <!-- /TMPL_IF -->
+<!-- /TMPL_LOOP -->
+<!-- /TMPL_IF-->
+
+<!-- TMPL_IF name="MARCNOTES" -->
+    <!-- TMPL_LOOP NAME="MARCNOTES" -->
+    <p><!-- TMPL_VAR NAME="marcnote" --></p>
+    <!-- /TMPL_LOOP -->
+    <!-- TMPL_ELSE -->
+    <!-- TMPL_IF name="notes" -->
+    <p><!-- TMPL_VAR NAME="notes" --></p>
+    <!-- /TMPL_IF -->
 <!-- /TMPL_IF -->
 </div>
+</div>
+<!-- TMPL_IF NAME="FRBRizeEditions" --><!-- TMPL_IF NAME="XISBNS" -->
+<div id="editions"><h2>Editions</h2>
+<table>
+<!-- TMPL_LOOP NAME="XISBNS" --><tr><!-- TMPL_IF NAME="AmazonEnabled" --><td><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="normalized_isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="normalized_isbn" -->.01._AA75_PU_PU-5_.jpg" /></a></td><!-- /TMPL_IF --><td><!-- TMPL_IF NAME="noItemTypeImages" --><!-- TMPL_VAR NAME="description" --><!-- TMPL_ELSE --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->"><!-- /TMPL_IF --></td><td>
+<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a> by <!-- TMPL_VAR NAME="author" --> &copy;<!-- TMPL_VAR NAME="copyrightdate" -->
+  <!-- TMPL_IF name="publishercode" -->
+<!-- TMPL_VAR NAME="publishercode" --> <!-- TMPL_IF name="place" -->(<!-- TMPL_VAR NAME="place"-->)<!--/TMPL_IF--> <!-- TMPL_IF NAME="publicationyear" -->, <!-- TMPL_VAR NAME="publicationyear" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="editionstatement" --><!-- TMPL_VAR NAME="editionstatement" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="editionresponsability" --><!-- TMPL_VAR NAME="editionresponsability" --><!-- /TMPL_IF -->
+    <!-- /TMPL_IF -->
+                <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" --> <!-- TMPL_IF NAME="illus" --><!-- TMPL_VAR NAME="illus" --><!-- /TMPL_IF -->
+                <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->
+</td>
+
+<!-- /TMPL_LOOP -->
+</table></div><!-- /TMPL_IF -->
+<!-- /TMPL_IF -->
+
+<!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonSimilarItems" -->
+<div id="related">
+<h4>Similar Items</h4>
+<ul>
+<!-- TMPL_LOOP NAME="AMAZON_SIMILAR_PRODUCTS" -->
+<!-- TMPL_LOOP NAME="similar_biblionumbers" -->
+<li><img alt="img" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="ASIN"-->.01._SS50_.jpg" /> <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" ESCAPE="HTML" --></a> </li>
+<!-- /TMPL_LOOP -->
+<!-- /TMPL_LOOP -->
+</ul>
+</div>
+<!-- /TMPL_IF --><!-- /TMPL_IF -->
+
+</div><!-- /bibliodetails -->
+
+<div class="yui-g" id="export" style="margin-top: 1em;">
+<form method="get" action="/cgi-bin/koha/catalogue/export.pl">
+<table>  <tr>
+      <th>Save Record</th>   </tr>
+  <tr>     <td> Select Download Format:    <select name="format">
+        <option value="mods">MODS (XML)</option>
+        <option value="dc">Dublin Core (XML)</option>
+        <option value="marcxml">MARCXML</option>
+        <option value="marc8">MARC (non-Unicode/MARC-8)</option>
+        <option value="utf8">MARC (Unicode/UTF-8)</option>    </select>
+        <input type="submit" name="save" value="Download Record" /></td>
+  </tr>
+  <tr><td>
+    <input type="hidden" name="op" value="export" /><input type="hidden" name="bib" value="<!-- TMPL_VAR name="biblionumber" -->" />
+  </td></tr>
+</table>
+</form>
+</div>
+
+
 
 <!-- TMPL_IF name="subscriptionsnumber" -->
 <div class="yui-g">
@@ -281,19 +380,19 @@ function confirm_deletion(count) {
     <!-- TMPL_LOOP Name="subscriptions" -->
             <!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
             <!--TMPL_IF NAME="latestserials"-->
-            <p> The three latest issues related to this subscription:</p>
+            <p> The <!-- TMPL_VAR NAME="staffdisplaycount" --> latest issues related to this subscription:</p>
             <table>
                 <tr>
                     <th>Issue #</th>
                     <th>Date</th>
                     <th>Status</th>
                     <th>Note</th>
-                               </tr>
+                </tr>
             <!--TMPL_LOOP Name="latestserials"-->
                 <tr>
                     <td><!--TMPL_VAR Name="serialseq"--></td>
                     <td><!--TMPL_VAR Name="planneddate"--></td>
-                    <td><!--TMPL_IF Name="status1"-->Waited
+                    <td><!--TMPL_IF Name="status1"-->Expected
                         <!--TMPL_ELSE -->
                             <!-- TMPL_IF Name="status2"-->Arrived
                             <!--TMPL_ELSE -->
@@ -312,6 +411,7 @@ function confirm_deletion(count) {
             <!--/TMPL_LOOP -->
             </table>
             <!-- /TMPL_IF -->
+                       <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Subscription Details</a>
     <!-- /TMPL_LOOP -->
 </div>
 </div>
@@ -321,7 +421,6 @@ function confirm_deletion(count) {
 </div>
 <div class="yui-b">
 <!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
-<!-- TMPL_INCLUDE NAME="cat-menu.inc" -->
 </div>
 </div>
 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->