Fix distorted aspect ratio on shelf browser jacket images user/mrpeters-isl/shelf_browser_image_aspect
authorMichael Peters <mrpeters@library.in.gov>
Wed, 26 Sep 2012 13:01:13 +0000 (09:01 -0400)
committerMichael Peters <mrpeters@library.in.gov>
Wed, 26 Sep 2012 13:03:44 +0000 (09:03 -0400)
We were hard coding a height, width which would squish non-book
images out of aspect.  This hard codes only the height of the image
to make jacket images display in their natural aspect.

Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2

index 661c132..6c583e0 100644 (file)
@@ -34,7 +34,7 @@
                             PROCESS get_marc_attrs args=rec_attrs;
                             ident = rec_attrs.isbn_clean || rec_attrs.upc;
                             IF ident %]
-                        <a href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {$loc_name => loc_value}, 1) %]"><img height='60' width='50' 
+                        <a href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {$loc_name => loc_value}, 1) %]"><img height='60' 
                             class='cn_browse_info' name='cn_browse_pic' border='0'
                             src="[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident | uri %]" /></a>
                         [% END %]