From 9aba4b5248b924199b48b6493a943411b1d3a454 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 Content-Type: text/plain; charset="UTF-8" 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. --- .../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.2.5