Fix for bug 1526 reserve status not showing on detail.pl
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tmpl
index 88007d2..05aa8fb 100644 (file)
@@ -2,36 +2,9 @@
 <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" -->
-<script type="text/javascript">
-//<![CDATA[
-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(_('There are [ '+ count +' ] item(s) attached to this record \n You must delete all items before deleting this record.'));
-                   }
-        else{
-                   is_confirmed= confirm(_('Are you sure you want to delete this record? '));
-       }
-
-    
-     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>
 </head>
 
-<body class="yui-skin-sam">
+<body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
@@ -71,23 +44,23 @@ function confirm_deletion(count) {
                 <!-- 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>
+                </a></li>
                 <!-- /TMPL_LOOP -->
                                </ul>
             </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="illus" -->
-            <li><strong>Illustrator:</strong> <!-- TMPL_VAR name="illus" -->&nbsp;</li>
+            <li><strong>Illustrator:</strong> <!-- TMPL_VAR name="illus" --></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" -->">
+                <a href="/cgi-bin/koha/catalogue/search.pl?q=pb,wrdl:<!-- TMPL_VAR NAME="publishercode" -->">
                     <!-- TMPL_VAR NAME="publishercode" -->
-                </a>&nbsp;
+                </a>
             </li>
         <!-- /TMPL_IF -->
         <!-- TMPL_IF name="publicationyear" -->
-            <li>in:<!-- TMPL_VAR NAME="publicationyear" -->&nbsp;</li>
+            <li>in:<!-- TMPL_VAR NAME="publicationyear" --></li>
         <!-- /TMPL_IF -->
         <li><strong>Description:</strong>
                 <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
@@ -105,10 +78,10 @@ function confirm_deletion(count) {
                <div class="yui-u">
                <ul>
         <!-- TMPL_IF name="isbn" -->
-            <li><strong>ISBN:</strong> <!-- TMPL_VAR NAME="isbn" -->&nbsp;</li>
+            <li><strong>ISBN:</strong> <!-- TMPL_VAR NAME="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>
@@ -119,8 +92,9 @@ function confirm_deletion(count) {
             <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="$<!-- 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 -->
                                </ul>
             </li>
@@ -153,7 +127,7 @@ 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 -->
@@ -192,7 +166,14 @@ function confirm_deletion(count) {
                                     <!-- TMPL_IF name="itemlost"-->
                                         Item lost
                                     <!-- TMPL_ELSE -->
-                                    <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled<!-- TMPL_ELSE -->Available<!-- /TMPL_IF -->
+                                    <!-- 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 -->
@@ -263,7 +244,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" -->