From 0d19b8aefb7d0bcea5504cf4cde28b0ec5beaa2a Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 6 Aug 2012 14:04:32 -0400 Subject: [PATCH] Bug 8581: don't display parentheses when we don't have a type Prior to this patch, see also references in certain authority records (most notably GND records) were being followed by empty parentheses in the search results display. This patch resolves that problem. Signed-off-by: Chris Cormack --- .../en/includes/authorities-search-results.inc | 2 +- .../en/includes/authorities-search-results.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc index cd99443..58f5f2d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc @@ -26,7 +26,7 @@ [% CASE 'broader' %](Broader heading) [% CASE 'narrower' %](Narrower heading) [% CASE 'parent' %](Immediate parent body) - [% CASE %]([% type | html %]) + [% CASE %][% IF type %]([% type | html %])[% END %] [% END %][% END %] [% END %] [% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc b/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc index cd99443..58f5f2d 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc @@ -26,7 +26,7 @@ [% CASE 'broader' %](Broader heading) [% CASE 'narrower' %](Narrower heading) [% CASE 'parent' %](Immediate parent body) - [% CASE %]([% type | html %]) + [% CASE %][% IF type %]([% type | html %])[% END %] [% END %][% END %] [% END %] [% END %] -- 1.7.9.5