TPAC: Add some style to MFHD holdings summaries
authorDan Scott <dscott@laurentian.ca>
Mon, 19 Sep 2011 02:27:00 +0000 (22:27 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 26 Sep 2011 14:33:16 +0000 (10:33 -0400)
Simple grey background for the holdings summary header for each record;
add a TBODY element to the holdings table for validity; offset the MFHD
type by 1em to group entries under each holdings location.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/parts/record/issues.tt2
Open-ILS/web/css/skin/default/opac/style.css

index 47f63f0..00a3eca 100644 (file)
@@ -25,7 +25,7 @@ FOREACH type IN ctx.holding_summaries.keys;
 [% END %]
 [% IF ctx.mfhd_summaries.size; %]
     <div class="rdetail-mfhd-holdings">
-        <table>
+        <table><tbody>
 [%
         mfhd = {
             basic_holdings = l('Volumes'),
@@ -40,6 +40,11 @@ FOREACH type IN ctx.holding_summaries.keys;
         };
 
         FOREACH serial IN ctx.mfhd_summaries;
+%]
+            <tr>
+                <td class="rdetail-mfhd-head" colspan="2">[% l('Holdings summary ([_1])', serial.location) %]</td>
+            </tr>
+[%
             FOREACH type IN mfhd.keys;
                 NEXT UNLESS serial.$type.size;
 %]
@@ -48,8 +53,11 @@ FOREACH type IN ctx.holding_summaries.keys;
                 <td class="rdetail-mfhd-contents">[% serial.$type.join(', ') %]</td>
             </tr>
         [% END %]
+            <tr>
+                <td class="rdetail-mfhd-foot" colspan="2"> </td>
+            </tr>
     [% END %]
-        </table>
+        </tbody></table>
     </div>
 [% END %]
 </div>
index 226e4b9..7c1cd69 100644 (file)
@@ -1028,6 +1028,20 @@ a.opac-button {
     padding: 0px;
 }
 
+.rdetail-mfhd-head {
+    margin-top: 5px;
+    padding-top: 5px;
+    background-color: #D8D8D8;
+}
+
+.rdetail-mfhd-type {
+    padding-left: 1em;
+}
+
+.rdetail-mfhd-bottom {
+    border-bottom: thin solid black;
+    width: 100%;
+}
 
 .bookbag-item-row td { vertical-align: top; }