[Koha-bugs] [Bug 30373] Rewrite UNIMARC installer data to YAML

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Apr 9 00:26:08 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30373

--- Comment #34 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 133127
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=133127&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list