Bug 24594: Rewrite marc21_framework_DEFAULT to YAML
commit83da3af9dad6591516cf2bd297e7353952596435
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Wed, 5 Feb 2020 14:53:04 +0000 (5 11:53 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 9 Mar 2020 13:54:45 +0000 (9 13:54 +0000)
tree6d7ddab081f03c88a56140bf8174fc14acb50c82
parent5ead9529da75ca5fdd26e7411c5b3ee3487d0e1c
Bug 24594: Rewrite marc21_framework_DEFAULT to YAML

YAML version of marc21 mandatory marc21_framework_DEFAULT.

To test:
1) Do a clean install with mandatory data,
   dump table marc_tag_structure and
   marc_subfield_structure, reserve.

2) Apply this patch and it's dependencies

3) Do a clean install, dump again and compare
   No major differences expected

4) Try translation
  a) Go to misc/translator
  b) create files for a new language
     ./translate create xx-YY
  c) Check new file po/xx-YY-instaler-MARC21.po
     Verify strings from this file.
  d) Install new language
     ./translate install xx-YY
  e) Try clean install with new files

NOTE: This patch fails with qa tools!
Reason is that qa tools use YAML.pm module to
check files, but Installer.pm or LangInstaller.pm
are using YAML::Syck, using that module gives
no error, check for example:

perl -e 'use YAML::Syck qw( LoadFile ); $y = LoadFile("marc21_framework_DEFAULT.yml");'
No error!

perl -e 'use YAML qw( LoadFile ); $y = LoadFile("marc21_framework_DEFAULT.yml");'
Error!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.sql [deleted file]
installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.txt [deleted file]
installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml [new file with mode: 0644]