Bug fixing stack underflow on results.tmpl
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 20 Oct 2009 08:51:48 +0000 (10:51 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 20 Oct 2009 09:31:52 +0000 (11:31 +0200)
rationalising biblio record display
And adding TMPL_IF where needed

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl

index 098e86d..dd03c31 100644 (file)
@@ -4,6 +4,7 @@
 <script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.highlight-3.js"></script>
 <script type="text/javascript">
 //<![CDATA[
+<!--TMPL_IF NAME="AmazonContent"-->
 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
 function verify_images() {
     $("img").each(function(i){
@@ -21,8 +22,7 @@ function verify_images() {
 $(window).load(function() {
     verify_images();
 });
-<!-- /TMPL_IF -->
-
+<!--/TMPL_IF-->
 var q_array = new Array();  // will hold search terms, if present
 
 $(document).ready(function() {
@@ -349,33 +349,22 @@ function yuiZ3950button() {
                                         </a> <!-- TMPL_LOOP NAME="subtitle" --> , <!-- TMPL_VAR NAME="subfield" --> <!-- /TMPL_LOOP -->
 <!-- TMPL_IF name="volume" -->,<!-- TMPL_VAR name="volume" --><!-- /TMPL_IF --> <!-- TMPL_IF name="volumeddesc" -->, <!-- TMPL_VAR name="volumeddesc" --><!-- /TMPL_IF -->
                                 </p>
+                                                           <p>
+                                                           <!-- TMPL_UNLESS NAME="item-level_itypes" -->
+                                                           <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
+                                                           <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="img" />
+                                                           <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
+                                                           <!-- /TMPL_UNLESS -->
+
+                                                               <!-- TMPL_IF NAME="author" -->
+                                                                       <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for this Author"><!-- TMPL_VAR NAME="author" --></a>
+                                                               <!-- TMPL_ELSE -->
+                                                                       &nbsp;
+                                                               <!-- /TMPL_IF -->
+
                                 <!-- TMPL_IF name="summary" -->
-                                        <!-- TMPL_IF NAME="author" -->
-                                            <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for this Author"><!-- TMPL_VAR NAME="author" --></a>
-                                        <!-- TMPL_ELSE -->
-                                            &nbsp;
-                                        <!-- /TMPL_IF -->
-                                    <p>
-                                    <!-- TMPL_UNLESS NAME="item-level_itypes" -->
-                                    <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
-                                    <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="img" />
-                                    <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
-                                    <!-- /TMPL_UNLESS -->
                                     <!-- TMPL_VAR name="summary" --></p>
                                 <!-- TMPL_ELSE -->
-                                    <p>
-                                    <!-- TMPL_UNLESS NAME="item-level_itypes" -->
-                                    <!-- TMPL_UNLESS NAME="noItemTypeImages" --><!-- TMPL_IF name="imageurl" -->
-                                    <img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" style="float: left; margin: .1em;" alt="img" />
-                                    <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
-                                    <!-- /TMPL_UNLESS -->
-
-                                        <!-- TMPL_IF NAME="author" -->
-                                            <a href="/cgi-bin/koha/catalogue/search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for this Author"><!-- TMPL_VAR NAME="author" --></a>
-                                        <!-- TMPL_ELSE -->
-                                            &nbsp;
-                                        <!-- /TMPL_IF -->
-                                        
                                         <!-- TMPL_IF name="publishercode" --><!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
                                                                                <!-- TMPL_IF NAME="edition" -->Edition: <!-- TMPL_VAR NAME="edition" --><!-- /TMPL_IF -->
                                         Description: 
@@ -398,7 +387,6 @@ function yuiZ3950button() {
                                 </p>
                                 <!-- /TMPL_IF -->
                                 
-                                <!-- /TMPL_IF -->
                                   <!-- TMPL_IF NAME="norequests" -->
                                         No holds allowed
                                     <!-- TMPL_ELSE -->