Bugzilla – Attachment 155439 Details for
Bug 26314
"Volumes: show volumes" showing regardless of whether there are volumes linked to the record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26314: (follow-up) Make title search explicit
Bug-26314-follow-up-Make-title-search-explicit.patch (text/plain), 1.02 KB, created by
Martin Renvoize (ashimema)
on 2023-09-08 15:19:03 UTC
(
hide
)
Description:
Bug 26314: (follow-up) Make title search explicit
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-09-08 15:19:03 UTC
Size:
1.02 KB
patch
obsolete
>From 1a4c4d8924bef29367027fac31762a31d7f71b29 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 18 Oct 2021 18:06:32 +0100 >Subject: [PATCH] Bug 26314: (follow-up) Make title search explicit > >This patch updates the get_volumes_query search returned when >UseControlNumber is disabled such that it matches the query produced by >XSLT sheets by replacing the ->title accessor with the more specific >->subfield('245', "a") accessor to just take subfield `a` into account. >--- > Koha/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index b49ec0c432..55cee02a50 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -1679,7 +1679,7 @@ sub get_volumes_query { > } > } > else { >- my $cleaned_title = $marc->title; >+ my $cleaned_title = $marc->subfield('245', "a"); > $cleaned_title =~ tr|/||; > $cleaned_title = $builder->clean_search_term($cleaned_title); > $searchstr = "ti,phr:($cleaned_title)"; >-- >2.41.0
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 26314
:
123615
|
124367
|
124380
|
124381
|
126448
|
126449
|
126450
|
126952
|
126953
|
126954
|
126955
|
155437
|
155438
|
155439
|
155440
|
155441
|
155446
|
155447
|
155448
|
155449
|
155450
|
155670
|
155671
|
155672
|
155673
|
155674
|
155675
|
155676
|
155677
|
155678
|
155679
|
155680
|
155681
|
162163
|
162164