From 31f806f6266fd6fcf6aee41e60206b42fe7fa08c Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sun, 18 Sep 2011 22:27:00 -0400 Subject: [PATCH] TPAC: Add some style to MFHD holdings summaries 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 --- Open-ILS/src/templates/opac/parts/record/issues.tt2 | 12 ++++++++++-- Open-ILS/web/css/skin/default/opac/style.css | 15 +++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/issues.tt2 b/Open-ILS/src/templates/opac/parts/record/issues.tt2 index 47f63f005b..00a3ecab59 100644 --- a/Open-ILS/src/templates/opac/parts/record/issues.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/issues.tt2 @@ -25,7 +25,7 @@ FOREACH type IN ctx.holding_summaries.keys; [% END %] [% IF ctx.mfhd_summaries.size; %]
- +
[% mfhd = { basic_holdings = l('Volumes'), @@ -40,6 +40,11 @@ FOREACH type IN ctx.holding_summaries.keys; }; FOREACH serial IN ctx.mfhd_summaries; +%] + + + +[% FOREACH type IN mfhd.keys; NEXT UNLESS serial.$type.size; %] @@ -48,8 +53,11 @@ FOREACH type IN ctx.holding_summaries.keys; [% END %] + + + [% END %] -
[% l('Holdings summary ([_1])', serial.location) %]
[% serial.$type.join(', ') %]
+
[% END %] diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index 7f47cf40e9..c72c651afe 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -1061,3 +1061,18 @@ a.opac-button { margin-left: 1em; padding-left: 1em; } + +.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%; +} -- 2.11.0