From d405493ca7f613097650d1c9cfc8c1c1241da4a5 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 23 Oct 2012 11:57:46 -0400 Subject: [PATCH] TPAC: Use a single table for all content notes Rather than having one table per kind of content note, keep them all in a single table. Thanks to Ben Shum for the prod. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- .../templates/opac/parts/record/contents.tt2 | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/contents.tt2 b/Open-ILS/src/templates/opac/parts/record/contents.tt2 index f8778fc169..956a72def8 100644 --- a/Open-ILS/src/templates/opac/parts/record/contents.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/contents.tt2 @@ -168,20 +168,15 @@ BLOCK render_contents; END; END %] - [% BLOCK render_all_contents; FOREACH cont IN contents; content = PROCESS render_contents(xpath=cont.xpath); IF content.match('\S'); -%] - - - - - - - -
[% cont.label %][% content %]
+-%] + + [% cont.label %] + [% content %] + [%- END; %] [%- END; %] [%- END %] @@ -190,5 +185,9 @@ END IF content_html.length > 0; %]

[% l('Content descriptions') %]

+ + [%- content_html %] + +
[%- END %] -- 2.43.2