Bug 13412: Allow configuration of auto-created authorities
authorRoch D'Amour <roch.damour@inlibro.com>
Wed, 21 Feb 2018 15:55:35 +0000 (10:55 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 May 2022 09:09:09 +0000 (23:09 -1000)
commit55d1e68024aabbbb36855e23718df0857f2af185
tree5bd0993fed288c420303bac646d31681a131da38
parentda93be46ff26bb05a20160fd992d583a76308827
Bug 13412: Allow configuration of auto-created authorities

This patch add 2 new system preferences:
- GenerateAuthorityField667
- GenerateAuthorityField670

When Koha creates authority records from biblios, use these preferences instead of the hard-coded "Machine generated authority record." and "Work cat." values.

Test plan:
    1. Make sure AutoCreateAuthorities and BiblioAddsAuthorities are enabled in the system preferences
    2. Go to Home › Cataloging › Add MARC record and add a new record
    3. Fill in the required fields and add a name in the 100$a field. Note the name, and add the new record.
    4. run rebuild_zebra.pl -a
    5. Go to Home › Authorities and search for the name you entered in 100$a
    6. Select details and look at the 667 and 670 fields. They should default to the hard-coded values.
    7. Apply patch, run update database
    8. Edit the new GenerateAuthorityField667 and GenerateAuthorityField670 system preferences
    9. Do 2-6 . Now the 667 and 670 fields should be what you entered in the system preferences.

Thanks for testing

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works well, no errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Biblio.pm
installer/data/mysql/atomicupdate/bug_13412-add_GenerateAuthorityField_syspref.sql [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref