Partial fix for Bug 4423, Staff Client XSLT is just a copy of the OPAC one
authorOwen Leonard <oleonard@myacpl.org>
Fri, 28 May 2010 18:50:30 +0000 (14:50 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 24 Jun 2010 02:50:31 +0000 (22:50 -0400)
This patch improves the template logic specifying a layout
based on whether the display is XSLT or normal, and whether
Amazon Content is on or off. Previously XSLT view did not
display Amazon covers when enabled.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl

index 7bd4959..1861028 100644 (file)
@@ -53,10 +53,28 @@ function verify_images() {
     <div class="yui-b">
 
 <!-- TMPL_INCLUDE NAME="cat-toolbar.inc" -->
-    <!-- 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">
+    <!-- TMPL_IF NAME="AmazonEnabled" -->
+        <!-- TMPL_IF NAME="XSLTDetailsDisplay" -->
+            <div class="yui-gc">
+            <div id="catalogue_detail_biblio" class="yui-u first">
+        <!-- TMPL_ELSE -->
+            <div class="yui-gb">
+            <div id="catalogue_detail_biblio" class="yui-u first">
+        <!-- /TMPL_IF -->
+    <!-- TMPL_ELSE -->
+        <!-- TMPL_IF NAME="XSLTDetailsDisplay" -->
+            <div class="yui-g">
+            <div id="catalogue_detail_biblio">
+        <!-- TMPL_ELSE -->
+            <div class="yui-g">
+            <div id="catalogue_detail_biblio" class="yui-u first">
+        <!-- /TMPL_IF -->
+    <!-- /TMPL_IF -->
+
         <!-- TMPL_IF NAME="XSLTDetailsDisplay" -->
         <!-- TMPL_VAR NAME="XSLTBloc" -->
+        <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" --></div><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><!-- /TMPL_IF --><!-- /TMPL_IF -->
     <!-- TMPL_ELSE -->
 
     <h3><!-- TMPL_VAR NAME="title" escape="html"--></h3>