From e686dd25438b66de751551c8f8fecff115b661d4 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 16 Jan 2014 23:07:09 +0000 Subject: [PATCH] Bug 10987: (follow-up) fix display of authorities containing only one see from or see also lnik This patch fixes an incorrect test on the number of see from and see also links in the authority record, as otherwise if a record had only one 4XX or 5XX, the linked headings weren't displayed at all. This patch also makes the test consistent across the staff theme and the two OPAC themes. Signed-off-by: Galen Charlton --- .../prog/en/includes/authorities-search-results.inc | 4 ++-- .../bootstrap/en/includes/authorities-search-results.inc | 4 ++-- .../opac-tmpl/prog/en/includes/authorities-search-results.inc | 4 ++-- 3 files changed, 6 insertions(+), 6 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 9b7bf1008b..8c2c83c65d 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 @@ -91,7 +91,7 @@ [% END %] [% ELSE %] - [% IF ( summary.seefrom.size > 1 ) %] + [% IF ( summary.seefrom.size >= 1 ) %]
used for/see from: [% FOREACH seefro IN summary.seefrom %] @@ -106,7 +106,7 @@ [% END %]
[% END %] - [% IF ( summary.seealso.size > 1 ) %] + [% IF ( summary.seealso.size >= 1 ) %]
see also: [% FOREACH seeals IN summary.seealso %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc index 8a1df83678..dda8d0ba65 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc @@ -83,7 +83,7 @@
[% END %] [% ELSE %] - [% IF ( summary.seefrom ) %] + [% IF ( summary.seefrom.size >= 1 ) %] used for/see from: [% FOREACH seefro IN summary.seefrom %]
@@ -95,7 +95,7 @@
[% END %] [% END %] - [% IF ( summary.seealso ) %] + [% IF ( summary.seealso.size >= 1 ) %] see also: [% FOREACH seeals IN summary.seealso %]
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 97e7c038d5..506bcf1d98 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 @@ -90,7 +90,7 @@
[% END %] [% ELSE %] - [% IF ( summary.seefrom.size > 1 ) %] + [% IF ( summary.seefrom.size >= 1 ) %]
used for/see from: [% FOREACH seefro IN summary.seefrom %] @@ -105,7 +105,7 @@ [% END %]
[% END %] - [% IF ( summary.seealso.size > 1 ) %] + [% IF ( summary.seealso.size >= 1 ) %]
see also: [% FOREACH seeals IN summary.seealso %] -- 2.39.5