Bug 29634: Map biblio.medium to 245 by default (MARC21)
authorCaroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Fri, 3 Dec 2021 15:13:12 +0000 (10:13 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 16 Feb 2022 21:51:10 +0000 (11:51 -1000)
commitfc3e532897c26430ba08fb9ac886ff132b98d1cb
treec8bb860780936306ffb38bb8e218fcd83c15b95c
parent3b1b78955f21ca181c63cfd5c2f8d7fba06cdeef
Bug 29634: Map biblio.medium to 245 by default (MARC21)

This patch adds a mapping from 245 to biblio.medium.

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 biblio.medium
   - biblio.medium should be mapped to 245
6) Create a bibliographic record with a value in 245
   - In the database, check the biblio entry for this record, the value from 245 should be in medium

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>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml