From 535936ea9c23ad022972150fc0f396b450d3cd2f Mon Sep 17 00:00:00 2001 From: Fridolin Somers 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 Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- 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 @@ [% subfiel.short_desc | html %] [% IF ( subfiel.is_url ) %][% subfiel.marc_value | html %][% ELSE %][% subfiel.marc_value | html %][% END %] [% IF ( subfiel.link ) %] - + [% END %] -- 2.39.5