From 54dd3f3f01b21e970be4c1f027b5d33adbbd76cf Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Thu, 2 Jun 2022 10:21:09 -0400 Subject: [PATCH] Bug 30850: dbrev to inform existing users of the mapping change Content-Type: text/plain; charset=utf-8 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 Signed-off-by: Marcel de Rooy --- installer/data/mysql/atomicupdate/bug_30850.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_30850.pl diff --git a/installer/data/mysql/atomicupdate/bug_30850.pl b/installer/data/mysql/atomicupdate/bug_30850.pl new file mode 100755 index 0000000000..ddf61a3c8d --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_30850.pl @@ -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'; + }, +} -- 2.20.1