Bug 30191: Authority search result list in the OPAC should use 'record' instead of 'biblios'

This patch updates the OPAC authority search results page so that it
uses the term "record" instead of "biblio."

The patch also changes how the template outputs the count of records so
that it is correctly pluralized, e.g. "1 record" vs. "2 records."

To test, apply the patch and perform an authority search in the OPAC.

In the search results, confirm that the last table header reads
"Records." The information in that column should be correct, using the
word record or records.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Owen Leonard 2022-03-02 16:21:41 +00:00 committed by Fridolin Somers
parent 2bbc684f8a
commit 01e72549ff

View file

@ -5,6 +5,7 @@
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
[% PROCESS 'opac-authorities.inc' %]
[% PROCESS 'authorities-search-results.inc' %]
[% PROCESS 'i18n.inc' %]
[% BLOCK pagination %]
<nav class="pagination pagination-sm noprint" aria-label="Search results pagination">
<ul class="pagination">
@ -98,7 +99,7 @@
<th colspan="2">Authorized headings</th>
<th>Type of heading</th>
[% UNLESS ( isEDITORS ) %]
<th>Biblio records</th>
<th>Records</th>
[% END %]
</tr>
</thead>
@ -110,7 +111,11 @@
<td>[% resul.authtype | html %]</td>
[% UNLESS ( resul.isEDITORS ) %]
<td>
[% IF resul.used > 0 %]<a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid | uri %]">[% resul.used | html %] biblios</a>[% ELSE %]0 biblios[% END %]
[% IF resul.used > 0 %]
<a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid | uri %]">[% resul.used | html %] [% tn('record', 'records', resul.used ) | html %]</a>
[% ELSE %]
0 records
[% END %]
</td>
[% END %]
</tr>