Bugzilla – Attachment 142246 Details for
Bug 31881
Link in MARC view does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31881: Fix search link in MARC view
Bug-31881-Fix-search-link-in-MARC-view.patch (text/plain), 2.25 KB, created by
David Nind
on 2022-10-20 13:42:58 UTC
(
hide
)
Description:
Bug 31881: Fix search link in MARC view
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-10-20 13:42:58 UTC
Size:
2.25 KB
patch
obsolete
>From 83bd35936784211baed6ebdf686cf0202d1b5f9b Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 19 Oct 2022 14:18:20 -1000 >Subject: [PATCH] Bug 31881: Fix search link in MARC view > >In framework a subfield can be defined with a link (with a search field). >This create an hyperlink in MARC view. >Currently with Elasticsearch the link does not work because search query contains 'field,phr:', >which is useless since the link contains 'idx=field,phr'. >With Zebra looks like the idx param is ignored. > >Test plan : >1) Use Elasticsearch search engine >2) Edit subfield 245$a in default framework >3) Enter 'title' in 'Link' >4) Save >5) Create a record with default framework with 245$a = 'The Fifth Elephant' >6) Go to MARC view >7) Click on link in 245$a >8) You find the record > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >index 49a287254d..8a0adef125 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >@@ -103,7 +103,7 @@ > <span class="desc" title="[% subfiel.long_desc | html %]">[% subfiel.short_desc | html %]</span></span> > [% IF ( subfiel.is_url ) %]<a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>[% ELSE %][% subfiel.marc_value | html %][% END %] > [% IF ( subfiel.link ) %] >- <a class="authlink" href="/cgi-bin/koha/catalogue/search.pl?op=do_search&idx=[% subfiel.link | uri %],phr&type=intranet&q=[% subfiel.link | uri %],phr:[% subfiel.marc_value |uri %]"> >+ <a class="authlink" href="/cgi-bin/koha/catalogue/search.pl?op=do_search&idx=[% subfiel.link | uri %],phr&type=intranet&q=[% subfiel.marc_value |uri %]"> > <i class="fa fa-link" aria-label="Search on [% subfiel.marc_value | html %]" title="Search on [% subfiel.marc_value | html %]"></i> > </a> > [% 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 31881
:
142219
|
142246
|
143174