From 1db97e29c7baa457d1c2c2a1ec4c1e487fa2accc Mon Sep 17 00:00:00 2001 From: Charles Farmer Date: Tue, 1 Dec 2015 08:55:50 -0500 Subject: [PATCH] Bug 10076 - Add Bcc syspref for ClaimAcquisition and ClaimIssues MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is already a syspref called "OverdueNoticeBcc" for sending Bcc copies of mails sent for overdues and other notices. This patch add a new syspref ClaimsBccCopy to bcc the claimacquisition and clamissues alerts. Changed the wording of the system preference to: [Send|Don't send] blind copy (BCC) to logged in user when sending serial or acquisitions claims notices. Signed-off-by: Frédéric Demians Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- C4/Letters.pm | 2 ++ .../data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql | 2 ++ installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/acquisitions.pref | 8 ++++++++ 4 files changed, 13 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql diff --git a/C4/Letters.pm b/C4/Letters.pm index d07d33f997..e5c15ba5d9 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -547,6 +547,8 @@ sub SendAlerts { if C4::Context->preference('ReplytoDefault'); $mail{'Sender'} = C4::Context->preference('ReturnpathDefault') if C4::Context->preference('ReturnpathDefault'); + $mail{'Bcc'} = $userenv->{emailaddress} + if C4::Context->preference("ClaimsBccCopy"); unless ( sendmail(%mail) ) { carp $Mail::Sendmail::error; diff --git a/installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql b/installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql new file mode 100644 index 0000000000..6e4eeab7ca --- /dev/null +++ b/installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql @@ -0,0 +1,2 @@ +INSERT INTO systempreferences (variable,value,options,explanation,type) +VALUES ('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'); diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 10e45c2ac5..aa5313943f 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -93,6 +93,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'), ('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'), ('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'), +('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'), ('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'), ('CoceHost', NULL, NULL, 'Coce server URL', 'Free'), ('CoceProviders', NULL, 'aws,gb,ol', 'Coce providers', 'multiple'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref index b52b5a9f5f..0c924b4530 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref @@ -60,6 +60,14 @@ Acquisitions: type: textarea - "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2" - "
For example:
price: 947$a|947$c
quantity: 969$h
budget_code: 922$a" + - + - pref: ClaimsBccCopy + default: no + choices: + yes: Send + no: Don't send + - blind copy (BCC) to logged in user when sending serial or acquisitions claims notices. + Printing: - - Use the -- 2.20.1