Bug 29048: Fix link to linked records from authority search results in OPAC
Without this patch the constructed search link would give wrong results with Elasticsearch. If you searched for records linked to authority id 3 it would also turn up all other records linked to an authority where the id started with 3... This just copies the more specific link using an,phr used in the staff interface and the OPAC detail page to make things consistent To test: - Turn on Elasticsearch - Search for authorities in the OPAC - Locate a authority with a low ID in your result list - Note the number of linked records - Click on the link - It will give you more results than it said before - Verify results don't match your search - Apply patch - Try again - now it should all match up Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
543454f765
commit
047489ece0
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@
|
|||
[% UNLESS ( resul.isEDITORS ) %]
|
||||
<td>
|
||||
[% IF resul.used > 0 %]
|
||||
<a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an:[% resul.authid | uri %]">[% resul.used | html %] [% tn('record', 'records', resul.used ) | html %]</a>
|
||||
<a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an,phr:[% resul.authid | uri %]">[% resul.used | html %] [% tn('record', 'records', resul.used ) | html %]</a>
|
||||
[% ELSE %]
|
||||
0 records
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue