Bug 13775: Set main headings to mandatory in authority frameworks
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 12 Dec 2019 09:10:23 +0000 (10:10 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 20 Mar 2020 15:37:21 +0000 (15:37 +0000)
commit8d8198ad48844a8e99079073879bf0a38d7e296a
tree8f73c861ec64016a81d8940462484dbc10d4cac1
parent4ffe70dfaff9c552cce1e40bec4a0d86a4dc819e
Bug 13775: Set main headings to mandatory in authority frameworks

For MARC21 we need to set the following tags as mandatory:
  CHRON_TERM => 148
  CORPO_NAME => 110
  GENRE/FORM => 155
  GEOGR_NAME => 151
  MEETI_NAME => 111
  PERSO_NAME => 100
  TOPIC_TERM => 150
  UNIF_TITLE => 130

Note that it also fixes an error on the UI, which was initially reported
on bug 13775.

Test plan:
- Create a fresh install in the language of your choice.
- Confirm that when you create a new authority you cannot save without
entering a value for the main heading

- Edit marc record's field 648 -> chronological term
- Try to add there one by clicking a link on the left side of the field.
From there it opens me to a new window, click "Create a new authority"
Click on the authority creating fields randomly, save.
=> Without this patch an error occurred "Can't call method "subfields"
on an undefined value at authorities/blinddetail-biblio-search.pl line 88."

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
installer/data/mysql/en/marcflavour/marc21/mandatory/authorities_normal_marc21.yml
installer/data/mysql/es-ES/marcflavour/marc21/mandatory/authorities_normal_marc21.sql
installer/data/mysql/fr-CA/marcflavour/marc21/obligatoire/authorities_normal_marc21.sql
installer/data/mysql/fr-FR/marcflavour/marc21/Obligatoire/authorities_normal_marc21.sql
installer/data/mysql/it-IT/marcflavour/marc21/mandatory/authorities_normal_marc21.sql
installer/data/mysql/nb-NO/marcflavour/marc21/mandatory/authorities_normal_marc21.sql
installer/data/mysql/pl-PL/marcflavour/marc21/mandatory/authorities_normal_marc21.sql
installer/data/mysql/ru-RU/marcflavour/marc21/mandatory/marc21_authorities_DEFAULT_general.sql
installer/data/mysql/ru-RU/marcflavour/marc21/optional/marc21_authorities_CHRON_TERM_general.sql
installer/data/mysql/uk-UA/marcflavour/marc21/mandatory/marc21_authorities_DEFAULT_general.sql
installer/data/mysql/uk-UA/marcflavour/marc21/optional/marc21_authorities_CHRON_TERM_general.sql