Bug 16415 - Layout problem on staff client detail page if local cover images are...
authorOwen Leonard <oleonard@myacpl.org>
Mon, 2 May 2016 14:04:21 +0000 (10:04 -0400)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Thu, 5 May 2016 18:30:38 +0000 (18:30 +0000)
This patch fixes a layout problem which appears on the staff client
bibliographic detail page if local covers are enabled but Amazon covers
are not.

To test, apply the patch and turn off AmazonCoverImages.

- Enable the LocalCoverImages system preference and locate or create a
  record which has a local cover image associated with it.
- View the bibliographic detail page. The bibliographic details should
  display in two columns, with text on the left and local cover image on
  the right.
- Test with AmazonCoverImages and LocalCoverImages enabled.
- Test with AmazonCoverImages enabled and LocalCoverImages disabled.

All combinations are OK.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index a1e4efb..d79398e 100644 (file)
@@ -341,7 +341,7 @@ function verify_images() {
         <span class="Z3988" title="[% ocoins %]"></span>
     [% END %]
 
-    [% IF ( AmazonCoverImages ) %]
+    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
         [% IF ( XSLTDetailsDisplay ) %]
             <div class="yui-gc">
             <div id="catalogue_detail_biblio" class="yui-u first">