When AutoCreateAuthorities and BiblioAddsAuthorities sysprefs are on, Koha automagically creates authority records from biblios. Currently there's no way to change what data goes into the auth record. For example, field 667a always contains the text "Machine generated authority record." and 670a contains "Work cat. ($MARCOrgCode)$999c: $bib.author, $bib.title_proper, $bib.publication_date" Perhaps a new syspref where you could enter stuff like " 667a Machine generated authority record. 670a Work cat. ($MARCOrgCode)$999c: $bib.author, $bib.title_proper, $bib.publication_date " (meaning the fields 667a and 670a get the same text as they used to; see LinkBibHeadingsToAuthorities() in C4/Biblio.pm)
Created attachment 72031 [details] [review] Add 2 new system preferences: GenerateAuthorityField 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
morning.. the patch it works fine when creating auth from the staff interface, but it doesnt work when creating from command line (perl link_bibs_to_authorities.pl -v) probably it doesn't suppose to do it.. but it should be desirable if the user configure it, right?
The patch still applies! Not sure whether comment 2 needs to be addressed (make it work when creating from the command line) so that bug can progress.
Created attachment 99710 [details] [review] 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
(In reply to David Nind from comment #3) > The patch still applies! > > Not sure whether comment 2 needs to be addressed (make it work when creating > from the command line) so that bug can progress. Hi, Hugo's comment makes reference to link_bibs_to_authorities.pl script, it links existing auth records with bibs, does not create new ones.
Hi Roch, I did some first testing and this looks good, I just have have 2 small issues: 1) I believe this would be a MARC21 specific feature as it's proposed now. Could we make it MARC agnostic? Like use a general term in the pref and make it work for UNIMARC as well? I am not sure if there is code for UNIMARC to do a similar thing yet, if not, we could just add a note to the pref description that this is MARC21 only. 2) syspref.sql is sorted alphabetically, actually that helps us to avoid rebasing a lot as not everyone adds their new prefs in the same spot at the end. Can you please sort your new prefs in Please submit a follow-up patch and switch back to Signed-off.
Created attachment 133607 [details] [review] 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
Created attachment 134266 [details] [review] 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>
Created attachment 134267 [details] [review] Bug 13412: (QA follow-up) Fix alphabetic order in sysprefs.sql TaxRates was not moved when renamed from gist, just moving it down so things are tidy again. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 134268 [details] [review] Bug 13412: (QA follow-up) Rephrase and link system preference descriptions Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 134269 [details] [review] Bug 13142: (QA follow-up) Convert database update to current format
Pushed to master for 22.05, thanks to everybody involved [U+1F984]