Bug 30373: Fix visibility, authorised values and descriptions
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Fri, 8 Apr 2022 20:51:02 +0000 (17:51 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Apr 2022 23:41:36 +0000 (13:41 -1000)
commit674ad809f391cddc83338b7ae787b86e6dd490f2
treed1eae0e23c51e3f600e1d69a84551a9f3740f333
parentc7b4d311d43921c0744df680660c8a51247f0d22
Bug 30373: Fix visibility, authorised values and descriptions

This patch fixes certain values of default bibliographic
framework.

It fixes hidden values using as reference default framework
from biblibre demo site.

Also adds some missing subfields, authorised values and
fixes capitalization on some descriptions.

To test:
1) On biblibre demo site, run a report
   SELECT tagfield,tagsubfield,hidden
   FROM marc_subfield_structure
   WHERE frameworkcode = ''
   ORDER BY tagfield,tagsubfield;
2) Download as tab separated values, ej. biblibre-hidden.txt
3) Apply the patch, remove bib frameworks, load YAML file
4) Run something like this to check correct hidden values

   while read -r -a l; do
    t="${l[0]}";
    s="${l[1]}";
    h="${l[2]}";
    b=$( mysql koha -N -B -e "select hidden from marc_subfield_structure where frameworkcode = '' and tagfield = '$t' and tagsubfield = '$s'");
    [ -n "$b" -a "$b" != "$h" ] && echo "$t:$s: -> change $b to $h";
   done < <( cat biblibre-hidden.txt )

   there must be no output

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml