From 5bf01284e3f1707ca2a54b2df80c97568db73acb 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 Signed-off-by: Paul Poulain --- .../prog/en/includes/authorities-search-results.inc | 2 +- .../opac-tmpl/prog/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 cd994439eb..58f5f2d22a 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 cd994439eb..58f5f2d22a 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 %] -- 2.39.5