From de63f6eb75b01ca3bb5e82406711be6ea73000a6 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 18 Oct 2023 22:31:13 +0000 Subject: [PATCH] Bug 8838: Add SMS default/sample notices Signed-off-by: Emily Lamancusa Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/bug_8838.pl | 7 ++++++- .../data/mysql/en/mandatory/sample_notices.yml | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/atomicupdate/bug_8838.pl b/installer/data/mysql/atomicupdate/bug_8838.pl index 4f3c6698f8..1bcd37e2e3 100755 --- a/installer/data/mysql/atomicupdate/bug_8838.pl +++ b/installer/data/mysql/atomicupdate/bug_8838.pl @@ -9,10 +9,15 @@ return { $dbh->do( q{ - INSERT IGNORE INTO `letter` VALUES (NULL,'reserves','HOLDDGST','','Hold available for pickup (digest)',0,'Hold(s) available for pickup','You have one or more holds available for pickup:\r\n----\r\nTitle: [% hold.biblio.title %]\r\nAuthor: [% hold.biblio.author %]\r\nCopy: [% hold.item.copynumber %]\r\nLocation: [% hold.branch.branchname %]\r\nWaiting since: [% hold.waitingdate %]\r\n[% hold.branch.branchaddress1 %]\r\n[% hold.branch.branchaddress2 %]\r\n[% hold.branch.branchaddress3 %]\r\n[% hold.branch.branchcity %] [% hold.branch.branchzip %]\r\n----','email','default','2023-08-29 18:42:15'); + INSERT IGNORE INTO `letter` VALUES (NULL,'reserves','HOLDDGST','','Hold available for pickup (digest)',0,'Hold(s) available for pickup','You have one or more holds available for pickup:\r\n\r\n----\r\nTitle: [% hold.biblio.title %]\r\nAuthor: [% hold.biblio.author %]\r\nCopy: [% hold.item.copynumber %]\r\nLocation: [% hold.branch.branchname %]\r\nWaiting since: [% hold.waitingdate %]\r\n[% hold.branch.branchaddress1 %]\r\n[% hold.branch.branchaddress2 %]\r\n[% hold.branch.branchaddress3 %]\r\n[% hold.branch.branchcity %] [% hold.branch.branchzip %]\r\n----','email','default','2023-08-29 18:42:15'); } ); + $dbh->do( + q{ + INSERT IGNORE INTO `letter` VALUES (NULL,'reserves','HOLDDGST','','Hold available for pickup (digest)',0,'Hold(s) available for pickup','You have one or more holds available for pickup:\r\n----\r\n[% hold.biblio.title %]\r\n----','sms','default','2023-08-29 18:42:15'); + } + ); $dbh->do( q{ INSERT IGNORE INTO message_transports VALUES diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index 2c27882432..3410210476 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1817,6 +1817,21 @@ tables: - "----" - "Thank you!" + - module: reserves + code: HOLDDGST + branchcode: "" + name: "Hold(s) available for pickup" + is_html: 0 + title: "Hold(s) available for pickup" + message_transport_type: sms + lang: default + content: + - "You have one or more holds available for pickup:" + - "" + - "----" + - "Title: [% hold.biblio.title %]" + - "----" + - module: reserves code: HOLD branchcode: "" -- 2.39.5