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 <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Jared Camins-Esakov 2012-08-06 14:04:32 -04:00 committed by Paul Poulain
parent eb6effd2c2
commit 5bf01284e3
2 changed files with 2 additions and 2 deletions

View File

@ -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 %]</span>[% END %]
[% END %]
[% END %]

View File

@ -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 %]</span>[% END %]
[% END %]
[% END %]