From: Bill Erickson <berick@esilibrary.com>
Date: Thu, 3 Nov 2011 14:18:12 +0000 (-0400)
Subject: TPac; reduce vertical space caused by chilifresh link
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2cd2a9817e0a887865402c4b5dd8fd9660bd573a;p=evergreen%2Fmasslnc.git

TPac; reduce vertical space caused by chilifresh link

CSS loaded from chilifresh forces a fixed height on the
.chili_review class, which causes significant vertical space gobbling in
the results and details pages.  Solution is to change the chili_review
container from a <div> to a <span>, where the height has no effect.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
---

diff --git a/Open-ILS/src/templates/opac/parts/record/awards.tt2 b/Open-ILS/src/templates/opac/parts/record/awards.tt2
index 68d93cea30..94c72a24d6 100644
--- a/Open-ILS/src/templates/opac/parts/record/awards.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/awards.tt2
@@ -4,7 +4,7 @@
         <!-- Chilifresh patron reviews -->
         <strong>[% l('Patron Reviews:') %]</strong>
         <div style="margin-bottom:20px;">
-            <div class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </div>
+            <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
             <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center" width="100%"></div>
         </div>
     
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index 1e6b20d420..83e69b9f9b 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -243,7 +243,7 @@
                                         <tr>
                                             <td/>
                                             <td align='center'> <!-- Chilifresh reviews link --> 
-                                                <div class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </div>
+                                                <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
                                             </td>
                                         </tr>
                                         <tr>