From: Dan Scott Date: Tue, 23 Oct 2012 15:57:46 +0000 (-0400) Subject: TPAC: Use a single table for all content notes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d405493ca7f613097650d1c9cfc8c1c1241da4a5;p=contrib%2FConifer.git 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 --- 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 %]