Fix for bug 1526 reserve status not showing on detail.pl
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tmpl
index 0607332..05aa8fb 100644 (file)
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; Catalogue Detail</title>
+<title>Koha &rsaquo; Catalogue &rsaquo; Details for <!-- TMPL_VAR NAME="title" --></title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
 </head>
+
 <body>
 
-<!-- TMPL_INCLUDE NAME="menus.inc" -->
-<!-- TMPL_INCLUDE NAME="menu-catalogue.inc" -->
+<!-- TMPL_INCLUDE NAME="header.inc" -->
+<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
-    <h1><!-- TMPL_VAR NAME="title" --> (<!-- TMPL_VAR NAME="author" -->) <!-- TMPL_VAR NAME="class" --></h1>
-    
-<!-- TMPL_INCLUDE NAME="action-catalogue.inc" -->
-    
-    <div id="catalogue_detail_biblio">
-        <h2>Biblio detail</h2>
-        <!-- TMPL_IF name="subtitles" -->
-            <p><label><b>Subtitle(s):</b></label>
-                <!-- TMPL_LOOP name="subtitles" -->
-                    <!-- TMPL_VAR NAME="subtitle" --> ;
-                <!-- /TMPL_LOOP -->
-                &nbsp;
-            </p>
-        <!-- /TMPL_IF -->
-        <!-- TMPL_IF name="author" -->
-            <p><label><b>Author: </b></label>
-                <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" -->">
-                    <!-- TMPL_VAR NAME="author" -->&nbsp;
-                </a>
-            </p>
-        <!-- /TMPL_IF -->
+<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="doc3" class="yui-t2">
+   
+   <div id="bd">
+       <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="MARCAUTHORS" -->
-            <p><label><b>Additional Author:</b></label>
+            <li><strong>Additional Authors:</strong><ul>
                 <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
-                <a href="/cgi-bin/koha/catalogue/search.pl?q=Koha-Auth-Number:<!-- TMPL_VAR NAME="link" -->">
+                <li><a href="/cgi-bin/koha/catalogue/search.pl?q=Koha-Auth-Number:<!-- TMPL_VAR NAME="link" -->">
                     <!-- TMPL_VAR NAME="value" -->
-                </a>&nbsp;
+                </a></li>
                 <!-- /TMPL_LOOP -->
-            </p>
+                               </ul>
+            </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="illus" -->
-            <p><label><b>Illus:</b></label><!-- TMPL_VAR name="illus" -->&nbsp;</p>
+            <li><strong>Illustrator:</strong> <!-- TMPL_VAR name="illus" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="publishercode" -->
-            <p><label><b>Published by :</b></label>
-                <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode" -->">
+            <li><strong>Publisher:</strong>
+                <a href="/cgi-bin/koha/catalogue/search.pl?q=pb,wrdl:<!-- TMPL_VAR NAME="publishercode" -->">
                     <!-- TMPL_VAR NAME="publishercode" -->
-                </a>&nbsp;
-            </p>
+                </a>
+            </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="publicationyear" -->
-            <p><label><b>in</b></label><!-- TMPL_VAR NAME="publicationyear" -->&nbsp;</p>
+            <li>in:<!-- TMPL_VAR NAME="publicationyear" --></li>
         <!-- /TMPL_IF -->
-        <p>
-            <label>&nbsp;</label>
+        <li><strong>Description:</strong>
                 <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
-                <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->&nbsp;
-        </p>
+                <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->
+        </li>
+               </ul>
+               </div>
+               
+<div class="yui-u"><!-- TMPL_IF NAME="AmazonContent" -->
+               <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>
+<!-- TMPL_ELSE -->
+       <img src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="" border="0"/>
+<!-- /TMPL_IF --></div>
+               
+               <div class="yui-u">
+               <ul>
         <!-- TMPL_IF name="isbn" -->
-            <p><label><b>ISBN: </b></label><!-- TMPL_VAR NAME="isbn" -->&nbsp;</p>
+            <li><strong>ISBN:</strong> <!-- TMPL_VAR NAME="isbn" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="issn" -->
-            <p><label><b>ISSN:</b></label><!-- TMPL_VAR NAME="issn" -->&nbsp;</p>
+            <li><strong>ISSN:</strong><!-- TMPL_VAR NAME="issn" --></li>
         <!-- /TMPL_IF -->
-        <!-- TMPL_IF name="seriestitle" -->
-            <p><label><b>Collection: </b></label>
-                <!-- TMPL_VAR NAME="seriestitle" --> 
-                <!-- TMPL_IF name="volume" -->vol. <!-- TMPL_VAR name="volume" --> <!-- TMPL_VAR name="volumedate" --><!-- /TMPL_IF -->
-                <!-- TMPL_VAR name="volumedesc" -->&nbsp;
-            </p>
+        <!-- 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 -->
+            </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="MARCSUBJCTS" -->
-            <p><label><b>Subjects: </b></label></p>
-            <p>
+            <li><strong>Subjects:</strong> 
+            <ul>
                 <!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
-                    <a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="link" ESCAPE="URL"-->"><!-- TMPL_VAR NAME="label" --></a>
-                    &nbsp;
+ <li><!-- TMPL_LOOP NAME="MARCSUBJECT_SUBFIELDS_LOOP" -->
+          <!-- TMPL_VAR NAME="separator" --><a title="$<!-- 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" -->su:'<!-- TMPL_VAR NAME="link" -->'<!-- /TMPL_LOOP -->"><!-- TMPL_VAR NAME="value" --></a>    <!-- /TMPL_LOOP --></li>
+
                 <!-- /TMPL_LOOP -->
-            </p>
+                               </ul>
+            </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="copyrightdate" -->
-            <p><label><b>Year : </b></label><!-- TMPL_VAR NAME="copyrightdate" --></p>
+            <li><strong>Copyright:</strong> <!-- TMPL_VAR NAME="copyrightdate" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="MARCNOTES" -->
-            <p><label><b>Notes: </b></label></p>
-            <p>
+            <li><strong>Notes:</strong>
+            <ul>
                 <!-- TMPL_LOOP NAME="MARCNOTES" -->
-                    <p>- <!-- TMPL_VAR NAME="marcnote" --></p>
+                    <li>- <!-- TMPL_VAR NAME="marcnote" --></li>
                 <!-- /TMPL_LOOP -->
-            </p>
+            </ul>
+                       </li>
         <!-- TMPL_ELSE -->
             <!-- TMPL_IF name="notes" -->
-                <p><label><b>Notes: </b></label><!-- TMPL_VAR NAME="notes" --></p>
+                <li><strong>Notes:</strong> <!-- TMPL_VAR NAME="notes" --></li>
             <!-- /TMPL_IF -->
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="unititle" -->
-            <p><label><b>Alt title: </b></label><!-- TMPL_VAR NAME="unititle" --></p>
+            <li><strong>Alternate title:</strong> <!-- TMPL_VAR NAME="unititle" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="classification" -->
-            <p><label><b>classification:</b></label><!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></p>
+            <li><strong>Classification:</strong> <!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="dewey" -->
-            <p><label><b>Dewey:</b></label><!-- TMPL_VAR name="dewey" --></p>
+            <li><strong>Dewey:</strong> <!-- TMPL_VAR name="dewey" --></li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="URLS" -->
-            <p><label><b>URL: </b></label>
+            <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 -->
-            </p>
+            </li>
         <!-- /TMPL_IF -->
-        <p><label><b>Item type : </b></label>
-            <!-- TMPL_IF name="description" -->
-                <!-- TMPL_VAR name="description" -->
-            <!-- TMPL_ELSE -->
-                <!-- TMPL_VAR NAME="itemtype" -->
-            <!-- /TMPL_IF -->
-        </p>
-    </div>
+               </ul>
+</div>
+
+</div>
 
+<div class="yui-g">
 <!-- TMPL_IF name="count" -->
     <div id="catalogue_detail_items">
-        <h2><!-- TMPL_VAR NAME="count" --> items</h2>
+        <caption><!-- TMPL_VAR NAME="count" --> item(s)</caption>
         <table>
             <tr>
                 <th>Item type</th>
                 <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" -->
+                    <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_ELSE -->
-                            <!-- TMPL_IF name="notforloan" -->
-                                <!-- TMPL_VAR name="notforloan" -->
+                            <!-- TMPL_IF name="bi_notforloan" -->
+                                Not For loan (itemtype)
                             <!-- TMPL_ELSE -->
-                                <!-- TMPL_IF name="itemlost"-->
-                                    Item lost
+                                <!-- TMPL_IF name="notforloan" -->
+                                    <!-- TMPL_VAR name="notforloan" -->
                                 <!-- TMPL_ELSE -->
-                                <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled<!-- TMPL_ELSE -->Available<!-- /TMPL_IF -->
+                                    <!-- TMPL_IF name="itemlost"-->
+                                        Item lost
+                                    <!-- TMPL_ELSE -->
+                                    <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled
+                                                                       <!-- TMPL_ELSE -->
+                                                                         <!-- TMPL_IF NAME="count_reserves" -->
+                                                                           <!-- TMPL_VAR NAME="count_reserves" -->
+                                                                         <!-- TMPL_ELSE -->
+                                                                            Available
+                                                                         <!-- /TMPL_IF -->
+                                                                       <!-- /TMPL_IF -->
+                                    <!-- /TMPL_IF -->
                                 <!-- /TMPL_IF -->
                             <!-- /TMPL_IF -->
                         <!-- /TMPL_IF -->
-                    </td>
+                        </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" -->&item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></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>    <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>
         </table>
     </div>
 <!-- TMPL_ELSE -->
-    <p>we don't have any physical item for this document</p>
+    <p>No physical items for this record</p>
 <!-- /TMPL_IF -->
+</div>
+
 <!-- TMPL_IF name="subscriptionsnumber" -->
+<div class="yui-g">
 <div id="catalogue_detail_subscriptions">
     <h2>This is a serial subscription</h2>
     <p> (We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p> 
                     <th>Date</th>
                     <th>Status</th>
                     <th>Note</th>
+                               </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_VAR Name="serialseq"--></td>
+                    <td><!--TMPL_VAR Name="planneddate"--></td>
+                    <td><!--TMPL_IF Name="status1"-->Waited
                         <!--TMPL_ELSE -->
                             <!-- TMPL_IF Name="status2"-->Arrived
                             <!--TMPL_ELSE -->
                                     <!--/TMPL_IF-->
                                 <!--/TMPL_IF-->
                             <!--/TMPL_IF-->
-                        <!--/TMPL_IF-->
-                    </td>
-                    <td>
-                        <!--TMPL_VAR Name="notes"-->
-                    </td>
+                        <!--/TMPL_IF--></td>
+                    <td><!--TMPL_VAR Name="notes"--></td>
                 </tr>
             <!--/TMPL_LOOP -->
             </table>
             <!-- /TMPL_IF -->
     <!-- /TMPL_LOOP -->
 </div>
+</div>
 <!-- /TMPL_IF -->
 
-<script language="javascript" type="text/javascript">
-function Dopop(link) {
-    newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
-}
-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" -->";
-       }
-               
-    }
-}
-</script>
-
+</div>
+</div>
+<div class="yui-b">
+<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
+</div>
+</div>
 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->