Partial fix for Bug 4423, Staff Client XSLT is just a copy of the OPAC one

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>
This commit is contained in:
Owen Leonard 2010-05-28 14:50:30 -04:00 committed by Galen Charlton
parent d3b07c1889
commit 884d7099e9

View 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>