From: Dan Scott <dscott@laurentian.ca>
Date: Mon, 12 Dec 2011 05:29:47 +0000 (-0500)
Subject: RPAC: Remove one formatting row from results
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fa09b94fc71cb4e7282de057119a9115aa35c84a;p=evergreen%2Fmasslnc.git

RPAC: Remove one formatting row from results

One of the table rows was being inserted into every result simply to
provide a border that is better handled via CSS on the existing useful
elements. Begone.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
---

diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index 07c7ae9ce0..ce786fd3a3 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -25,8 +25,8 @@
                     [%  FOR rec IN ctx.records;
                             attrs = {marc_xml => rec.marc_xml};
                             PROCESS get_marc_attrs args=attrs %]
-                        <tr>
-                            <td class='result_table_row' align='left' width='100%'>
+                        <tr class="result_table_row">
+                            <td class="result_table_row" align='left' width='100%'>
                                 <table cellpadding="0" cellspacing="0" class='result_table_subtable'>
                                     <tbody class='result_table_subtbody'>
                                         <tr name='counts_row'>
@@ -247,7 +247,6 @@
                                             </td>
                                         </tr>
                                         [%- END %]
-                                        <tr><td colspan="5"><div style="height:0px;border-top:1px solid #b7b7b7;border-bottom:1px solid #d4d4d4;margin:15px 0px;"></div></td></tr>
                                     </tbody>
                                 </table>
                             </td>
diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css
index 965fc0cc10..cf1bcd210a 100644
--- a/Open-ILS/web/css/skin/default/opac/style.css
+++ b/Open-ILS/web/css/skin/default/opac/style.css
@@ -702,11 +702,18 @@ div.format_icon {
 	margin-top: 1em;
 }
 
+tr.result_table_row td.result_table_row {
+    border-bottom:1px solid #d4d4d4;
+}
+
 .result_numbers {
 	font-size: 11px; padding-left:15px; white-space: nowrap; width: 320px;
 }
 
-.result_table_subtable { width: 100%; border-collapse: collapse; border: 0; }
+.result_table_subtable {
+    width: 100%;
+    padding-top: 1em;
+}