From 92477bb22d035d2938fb3acddd78597ac72e7e9b Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 18 Sep 2013 13:55:40 -0400 Subject: [PATCH] Improve rdetail action formatting when no cover art When there is no cover art, the format label gets the actions hung oddly to the right in the record detail view. Just wrap the whole block in a div and float that instead. Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/css/style.css.tt2 | 6 +- .../templates/opac/parts/record/summary.tt2 | 78 ++++++++++--------- 2 files changed, 41 insertions(+), 43 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index fae9f8d8d0..da6e392aea 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1889,17 +1889,13 @@ a.preflib_change { position: relative; width: 300px; } - #rdetail_format_label { + #format_actions { float: left; } .rdetail_aux_utils { padding: 0px; border: none; } - div#rdetail_actions_div { - float: left; - background: [% css_colors.background %]; - } .result_metadata { width: inherit; } diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 2e0e2222a0..6d78327e35 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -32,47 +32,49 @@ [% END %]
- [%- IF attrs.format_label %] -
- [%- attrs.format_label -%] -
- [%- END %] -
- [%- search_ou = ctx.search_ou; - IF ctx.place_unfillable || - ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size > 0 - && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0) - ) - %] -
- [% l('place hold') %][% l('Place Hold') %] +
+ [%- IF attrs.format_label %] +
+ [%- attrs.format_label -%]
- [%- END -%] -
- [% IF ctx.user; - INCLUDE "opac/parts/bookbag_actions.tt2"; - %] - [% ELSE; - operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add"; - label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); - %] - + [%- END %] +
+ [%- search_ou = ctx.search_ou; + IF ctx.place_unfillable || + ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size > 0 + && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0) + ) + %] + + [%- END -%] +
+ [% IF ctx.user; + INCLUDE "opac/parts/bookbag_actions.tt2"; + %] + [% ELSE; + operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add"; + label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); + %] + + + [% label %] + + [% END %] +
+
- [% label %] - - [% END %] + [% l('Print') %] / + [% l('Email') %] +
+ [%- IF ctx.refworks.enabled == 'true' %] + [%- INCLUDE 'opac/parts/record/refworks.tt2' %] + [%- END %]
- - [%- IF ctx.refworks.enabled == 'true' %] - [%- INCLUDE 'opac/parts/record/refworks.tt2' %] - [%- END %]
-- 2.43.2