Bug 30850: dbrev to inform existing users of the mapping change

This patch adds a message in a dbrev to inform users of existing
installations that they might want to add a mapping from 110$a to
biblio.author

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Caroline Cyr La Rose 2022-06-02 10:21:09 -04:00 committed by Tomas Cohen Arazi
parent ea3a5b37c1
commit e0f1f666a8
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -0,0 +1,17 @@
use Modern::Perl;
use Encode qw( encode_utf8 );
return {
bug_number => 30850,
description => 'Message about mappings changes for 110$a',
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
say $out encode_utf8 '110$a was added as a default mapping for biblio.author in MARC21.';
say $out encode_utf8 'This will only change the mapping on new installations.';
say $out encode_utf8 'If you wish to change the mappings on your existing installation,';
say $out encode_utf8 'go to Administration > Koha to MARC mapping and add 110$a to biblio.author';
say $out encode_utf8 'and then run batchRebuilBiblioTables.pl';
},
}