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> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
68d5b50c62
commit
535936ea9c
1 changed files with 1 additions and 1 deletions
|
@ -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 %]
|
||||
|
|
Loading…
Reference in a new issue