@@ -, +, @@ notices --- .../bug_32967_-_fix_recalls_notices.pl | 20 +++++++++++++++++++ .../mysql/en/mandatory/sample_notices.yml | 6 +++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100755 installer/data/mysql/atomicupdate/bug_32967_-_fix_recalls_notices.pl --- a/installer/data/mysql/atomicupdate/bug_32967_-_fix_recalls_notices.pl +++ a/installer/data/mysql/atomicupdate/bug_32967_-_fix_recalls_notices.pl @@ -0,0 +1,20 @@ +use Modern::Perl; + +return { + bug_number => "32967", + description => "Recalls notices are using the wrong database columns", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + $dbh->do(q{ UPDATE letter SET content=REPLACE(content,'recalls.branchcode','recalls.pickup_library_id') WHERE code='PICKUP_RECALLED_ITEM' }); + $dbh->do(q{ UPDATE letter SET content=REPLACE(content,'recalls.expirationdate','recalls.expiration_date') WHERE code='PICKUP_RECALLED_ITEM' }); + + say $out "Fix column names in PICKUP_RECALLED_ITEM notice"; + + $dbh->do(q{ UPDATE letter SET content=REPLACE(content,'recalls.waitingdate','recalls.waiting_date') WHERE code='RECALL_REQUESTER_DET' }); + $dbh->do(q{ UPDATE letter SET content=REPLACE(content,'recalls.recallnotes','recalls.notes') WHERE code='RECALL_REQUESTER_DET' }); + + say $out "Fix column names in RECALL_REQUESTER_DET notice"; + }, +}; --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ a/installer/data/mysql/en/mandatory/sample_notices.yml @@ -2031,7 +2031,7 @@ tables: - "" - "<> <>," - "" - - "A recall that you requested on the following item: <> / <> (<>) is now ready for you to pick up at <>. Please pick up your item by <>." + - "A recall that you requested on the following item: <> / <> (<>) is now ready for you to pick up at <>. Please pick up your item by <>." - "" - "Thank you!" @@ -2056,8 +2056,8 @@ tables: - "<> by <>" - "Barcode: <>" - "Callnumber: <>" - - "Waiting since: <>" - - "Notes: <>" + - "Waiting since: <>" + - "Notes: <>" - module: members code: 2FA_DISABLE --