In Administration > Koha to MARC mappings, biblioitems.publishercode is currently only mapped to 260$b. I propose we also link to 264$b as RDA uses that MARC field rather than 260.
Created attachment 128185 [details] [review] Bug 29627: Map biblioitems.publishercode to 264 by default (MARC21) This patch adds a mapping from 264 to biblioitems.publishercode. To test: 1) Apply patch 2) Delete existing frameworks - In the database delete from marc_tag_structure; delete from marc_subfield_structure; delete from biblio_framework; 3) Load default framework - In a terminal, run ./misc/load_yaml.pl -f installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml --load 4) In the staff interface, go to Administration > MARC bibliographic framework - Make sure the default framework is there 5) In Administration > Koha to MARC mapping, check the mappings for biblioitems.publishercode - biblioitems.publishercode should be mapped to 260 as well as 264 6) Create a bibliographic record with a value in 264 - In the database, check the biblioitems entry for this record, the value from 264 should be in publishercode 7) Create a bibliographic record with a value un 260 - In the database, check the biblioitems entry for this record, the value from 260 should be in publishercode I hope I didn't forget anything! :) Caroline
Created attachment 128244 [details] [review] Bug 29627: Map biblioitems.publishercode to 264 by default (MARC21) This patch adds a mapping from 264 to biblioitems.publishercode. To test: 1) Apply patch 2) Delete existing frameworks - In the database delete from marc_tag_structure; delete from marc_subfield_structure; delete from biblio_framework; 3) Load default framework - In a terminal, run ./misc/load_yaml.pl -f installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml --load 4) In the staff interface, go to Administration > MARC bibliographic framework - Make sure the default framework is there 5) In Administration > Koha to MARC mapping, check the mappings for biblioitems.publishercode - biblioitems.publishercode should be mapped to 260 as well as 264 6) Create a bibliographic record with a value in 264 - In the database, check the biblioitems entry for this record, the value from 264 should be in publishercode 7) Create a bibliographic record with a value un 260 - In the database, check the biblioitems entry for this record, the value from 260 should be in publishercode I hope I didn't forget anything! :) Caroline Signed-off-by: David Nind <david@davidnind.com>
Testing notes using koha-testing-docker: 1. Had to make 264$b visible in the editor for the default framework 2. Database query for steps 6 and 7 (where XXX = the newly created record number): select * from biblioitems where biblionumber = XXX;
I also changed the assignee for the bug to you.
Created attachment 129975 [details] [review] Bug 29627: Map biblioitems.publishercode to 264 by default (MARC21) This patch adds a mapping from 264 to biblioitems.publishercode. To test: 1) Apply patch 2) Delete existing frameworks - In the database delete from marc_tag_structure; delete from marc_subfield_structure; delete from biblio_framework; 3) Load default framework - In a terminal, run ./misc/load_yaml.pl -f installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml --load 4) In the staff interface, go to Administration > MARC bibliographic framework - Make sure the default framework is there 5) In Administration > Koha to MARC mapping, check the mappings for biblioitems.publishercode - biblioitems.publishercode should be mapped to 260 as well as 264 6) Create a bibliographic record with a value in 264 - In the database, check the biblioitems entry for this record, the value from 264 should be in publishercode 7) Create a bibliographic record with a value un 260 - In the database, check the biblioitems entry for this record, the value from 260 should be in publishercode I hope I didn't forget anything! :) Caroline Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Thx Caroline, long overdue :)
Pushed to master for 22.05, thanks to everybody involved [U+1F984]