From 43a2d1465e6ae1f8fbd2a8873d602e6b55700f51 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sun, 11 Dec 2011 23:37:02 -0500 Subject: [PATCH] TPAC: Record details - inline style to classes Continue the march towards no inline styles in the record details page. Includes a small tweak for electronic resource display so that the unordered list gains a bit of space on the left-hand side from the image location. Signed-off-by: Dan Scott --- .../src/templates/opac/parts/record/summary.tt2 | 20 ++++----- Open-ILS/src/templates/opac/parts/result/table.tt2 | 2 +- Open-ILS/web/css/skin/default/opac/style.css | 48 +++++++++++++++++++--- 3 files changed, 53 insertions(+), 17 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 595978f37b..540c30d8cf 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -9,10 +9,10 @@ [% INCLUDE 'opac/parts/record/refworks.tt2' %] [%- END %] -
+
[%- # This holds the record summary information %] -
+
[% ident = attrs.isbn_clean || attrs.upc; IF ident; %] [% l('Image of item') %]
-
-
+
+
[% l('place hold') %][% l('Place Hold') %] + class="place_hold">[% l('Place Hold') %]
-
+
[%- operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add"; label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); @@ -42,7 +42,7 @@
[%- IF attrs.format_icon %] -
+
[% attrs.format_label %]
[%- END %] @@ -77,7 +77,7 @@ num_uris = merged_uris.size; IF num_uris > 0; -%] -

[% l("Electronic resources") %]

+

[% l("Electronic resources") %]

[%- IF num_uris > 1 %]
    [% END %] [%- FOR uri IN merged_uris %] @@ -189,12 +189,12 @@ IF num_uris > 0; [%- more_copies_limit = 50 %] [%# TODO: config %] [%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %] -
    + [%- ELSIF ctx.copy_limit == more_copies_limit %] -
    + diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 46790fca85..fe3865a6b4 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -204,7 +204,7 @@
    -