From ade1e298ac5b8e74d49e7f11c65cc810643ce583 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 9 Apr 2025 11:20:34 +0000 Subject: [PATCH] Bug 39415: (follow-up) Add 651g to bib heading fields as well Test plan: 0 - Apply other patches - reindex your catalog perl misc/search_tools/rebuild_elasticsearch.pl -v -d 1 - Set the prefs AutoLinkBiblios and CatalogModuleRelink to Do 2 - Create three GEOGR_NAME authorities: 151$aDismal Swamp 151$aDismal Swamp$gSouth 151$aPit of Despair 3 - In a new bib record, add 651 fields 651$aPit of Despair 651$aDismal Swamp 651$aDismal Swamp$gSouth 4 - Click Link authorities automatically 5 - 'Pit of despair' links correct - other records both link to 'Dismal swamp' 6 - Apply this patch, restart_all 7 - Click Link authorities automatically 8 - Dismal Swamp and Dismal Swamp South are correctly linked Signed-off-by: Phil Ringnalda --- C4/Heading/MARC21.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Heading/MARC21.pm b/C4/Heading/MARC21.pm index fe9f9a38c9..1ec75d8d07 100644 --- a/C4/Heading/MARC21.pm +++ b/C4/Heading/MARC21.pm @@ -135,7 +135,7 @@ my $bib_heading_fields = { }, '648' => { auth_type => 'CHRON_TERM', subfields => 'avxyz', subject => 1 }, '650' => { auth_type => 'TOPIC_TERM', subfields => 'abvxyz', subject => 1 }, - '651' => { auth_type => 'GEOGR_NAME', subfields => 'avxyz', subject => 1 }, + '651' => { auth_type => 'GEOGR_NAME', subfields => 'agvxyz', subject => 1 }, '655' => { auth_type => 'GENRE/FORM', subfields => 'avxyz', subject => 1 }, '690' => { auth_type => 'TOPIC_TERM', subfields => 'abvxyz', subject => 1 }, '691' => { auth_type => 'GEOGR_NAME', subfields => 'avxyz', subject => 1 }, -- 2.48.1