Bugzilla – Attachment 140642 Details for
Bug 29048
Incorrect search for linked authority records from authority search result list in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29048: Fix link to linked records from authority search results in OPAC
Bug-29048-Fix-link-to-linked-records-from-authorit.patch (text/plain), 2.38 KB, created by
David Nind
on 2022-09-14 21:26:56 UTC
(
hide
)
Description:
Bug 29048: Fix link to linked records from authority search results in OPAC
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-09-14 21:26:56 UTC
Size:
2.38 KB
patch
obsolete
>From 59a27a4962a5fb1827d5259d1831d92f6af44d39 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sun, 27 Feb 2022 01:09:20 +0100 >Subject: [PATCH] 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> >--- > .../bootstrap/en/modules/opac-authoritiessearchresultlist.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >index 27e000e504..fd2ca31494 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >@@ -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 %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29048
:
131154
|
134946
|
140642
|
141486