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 <gmc@esilibrary.com>
This commit is contained in:
Galen Charlton 2014-01-16 23:07:09 +00:00
parent 910dff2825
commit e686dd2543
3 changed files with 6 additions and 6 deletions

View file

@ -91,7 +91,7 @@
</div>
[% END %]
[% ELSE %]
[% IF ( summary.seefrom.size > 1 ) %]
[% IF ( summary.seefrom.size >= 1 ) %]
<div class="seefrom">
<span class="seefrom">used for/see from:</span>
[% FOREACH seefro IN summary.seefrom %]
@ -106,7 +106,7 @@
[% END %]
</div>
[% END %]
[% IF ( summary.seealso.size > 1 ) %]
[% IF ( summary.seealso.size >= 1 ) %]
<div class="seealso">
<span class="seealso">see also:</span>
[% FOREACH seeals IN summary.seealso %]

View file

@ -83,7 +83,7 @@
</div>
[% END %]
[% ELSE %]
[% IF ( summary.seefrom ) %]
[% IF ( summary.seefrom.size >= 1 ) %]
<span class="seefrom">used for/see from:</span>
[% FOREACH seefro IN summary.seefrom %]
<div class="seefrom authref">
@ -95,7 +95,7 @@
</div>
[% END %]
[% END %]
[% IF ( summary.seealso ) %]
[% IF ( summary.seealso.size >= 1 ) %]
<span class="seealso">see also:</span>
[% FOREACH seeals IN summary.seealso %]
<div class="seealso authref">

View file

@ -90,7 +90,7 @@
</div>
[% END %]
[% ELSE %]
[% IF ( summary.seefrom.size > 1 ) %]
[% IF ( summary.seefrom.size >= 1 ) %]
<div class="seefrom">
<span class="seefrom">used for/see from:</span>
[% FOREACH seefro IN summary.seefrom %]
@ -105,7 +105,7 @@
[% END %]
</div>
[% END %]
[% IF ( summary.seealso.size > 1 ) %]
[% IF ( summary.seealso.size >= 1 ) %]
<div class="seealso">
<span class="seealso">see also:</span>
[% FOREACH seeals IN summary.seealso %]