From 4a1488b028da074dc8c88a2cfa1a089e23891dd1 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 29 Jun 2011 17:05:46 -0400 Subject: [PATCH] Don't include non-existent elements in search results It does not make sense to clutter HTML output with table rows that are destined to remain hidden and empty of any data; therefore, instead of setting the class to "hide_me" when there is no value to display, just do not display the row at all. Signed-off-by: Dan Scott --- .../default/opac/parts/result/table.tt2 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 index 6ab1b2b28f..580fefd81f 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 @@ -106,18 +106,22 @@ - + [% IF attrs.publisher %] + - + [% END %] + [% IF attrs.isbn %] + + [% END %] [% IF openurl.enabled == 'true'; FOR issn IN args.issns; sfx = ResolverResolver.resolve_issn(issn, openurl.baseurl); @@ -134,13 +138,16 @@ [% END %] [% END %] - + [% IF attrs.edition %] + - + [% END %] + [% IF attrs.phys_desc %] + @@ -148,7 +155,8 @@ [% args.phys_desc %] - [% FOR uri IN args.uris%] + [% END %] + [% FOR uri IN args.uris %]
[% l('Publisher:') %] [% attrs.publisher; %]
[% l('ISBN:') %] [% attrs.isbn %]
[% l('Edition:') %] [% attrs.edition %]
[% l('Phys. Desc.:') %]
[% l('Electronic resource') %] -- 2.43.2