]> git.koha-community.org Git - koha.git/commit
Bug 29048: Fix link to linked records from authority search results in OPAC
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 27 Feb 2022 00:09:20 +0000 (01:09 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 5 Dec 2022 18:22:23 +0000 (18:22 +0000)
commit8215b0851edd78ce4a9223e998d183afa5688bb1
tree986ebd30b017ca6f8229184b0fdd2cd44ebe18b1
parent6aa1ea5e0c1c2b39dc54ecb57584919a24930656
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>
(cherry picked from commit 047489ece0c990bbd6259dd9a59cf3613dd67b5d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt