[Koha-patches] [PATCH] Partial fix for Bug 4423, Staff Client XSLT is just a copy of the OPAC one

Owen Leonard oleonard at myacpl.org
Fri May 28 20:50:30 CEST 2010


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.
---
 .../prog/en/modules/catalogue/detail.tmpl          |   22 ++++++++++++++++++-
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
index 7bd4959..1861028 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
@@ -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>
-- 
1.7.0.4



More information about the Koha-patches mailing list