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>
(cherry picked from commit e686dd2543)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
2395ebb2ae
commit
b40a957e04
|
|
@ -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 %]
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue