Bugzilla – Attachment 139489 Details for
Bug 30218
Add subfield g to 150 heading_fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30218: Add subfield g to field 150 in C4::Heading::MARC21 mappings
Bug-30218-Add-subfield-g-to-field-150-in-C4Heading.patch (text/plain), 2.56 KB, created by
Kyle M Hall (khall)
on 2022-08-19 13:10:34 UTC
(
hide
)
Description:
Bug 30218: Add subfield g to field 150 in C4::Heading::MARC21 mappings
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-08-19 13:10:34 UTC
Size:
2.56 KB
patch
obsolete
>From 3e91690b7685750db055ec236113f5ba50960102 Mon Sep 17 00:00:00 2001 >From: Thomas Klausner <domm@plix.at> >Date: Thu, 3 Mar 2022 15:39:20 +0100 >Subject: [PATCH] Bug 30218: Add subfield g to field 150 in C4::Heading::MARC21 > mappings >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >When creating authorities via SRU or linking exising authorities >(via cgi-bin/koha/authorities/auth_finder.pl) the search results are >generated using the hardcoded mappings $bib_heading_fields / >$auth_heading_field from C4::Heading::MARC21. For TOPIC_TERM / field 150 >these mappings currently include the subfield `abvxyz68`. > >But: We are using the GND provided by Deutsche Nationalbibliothek. >We imported some authorities from there, for example: > >http://d-nb.info/gnd/4114171-4 "Kind <0-3 Jahre>" (kid 0-3 years) >http://d-nb.info/gnd/4196417-2 "Kind <0-4 Jahre>" (kid 0-4 years) > >When searching for these terms, Koha only displays "Kind", which is not >very helpful, as there are a lot of different authorities for different >age bands. > >GND stores "Kind" in 150a, and "0-3 Jahre" in 150g. > >But in the hardcoded mappings used by Koha, subfield g is not included. > >This patch adds subfield g to these mappings, thus making it possible to >easily select the correct authority. > >Test plan: >* Create an authority (or edit an existing one) and set 150g to "foo" >* Create a new biblio (or edit an existing one), go to field 650 and click > on the search-icon on the right. >* A popup should open, where you can search for "Authority type: TOPIC_TERM", > enter the name of the authority (150a!) in the search box >* In the resulting list, you will only see the value of 150a. >* Apply the patch >* Search again, now you should see "foo" in the result list > >Sponsored-by: Steiermärkische Landesbibliothek > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Heading/MARC21.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Heading/MARC21.pm b/C4/Heading/MARC21.pm >index 011d16268c..9ae5827541 100644 >--- a/C4/Heading/MARC21.pm >+++ b/C4/Heading/MARC21.pm >@@ -79,7 +79,7 @@ my $bib_heading_fields = { > }, > '150' => { > auth_type => 'TOPIC_TERM', >- subfields => 'abvxyz68', >+ subfields => 'abgvxyz68', > main_entry => 1 > }, > '151' => { >@@ -197,7 +197,7 @@ my $auth_heading_fields = { > }, > '150' => { > auth_type => 'TOPIC_TERM', >- subfields => 'abvxyz68', >+ subfields => 'abgvxyz68', > main_entry => 1 > }, > '151' => { >-- >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 30218
:
131328
|
137795
| 139489