Bug 10076 - Add Bcc syspref for ClaimAcquisition and ClaimIssues
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 <f.demians@tamil.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
parent
603e98646e
commit
1db97e29c7
4 changed files with 13 additions and 0 deletions
|
@ -547,6 +547,8 @@ sub SendAlerts {
|
||||||
if C4::Context->preference('ReplytoDefault');
|
if C4::Context->preference('ReplytoDefault');
|
||||||
$mail{'Sender'} = C4::Context->preference('ReturnpathDefault')
|
$mail{'Sender'} = C4::Context->preference('ReturnpathDefault')
|
||||||
if C4::Context->preference('ReturnpathDefault');
|
if C4::Context->preference('ReturnpathDefault');
|
||||||
|
$mail{'Bcc'} = $userenv->{emailaddress}
|
||||||
|
if C4::Context->preference("ClaimsBccCopy");
|
||||||
|
|
||||||
unless ( sendmail(%mail) ) {
|
unless ( sendmail(%mail) ) {
|
||||||
carp $Mail::Sendmail::error;
|
carp $Mail::Sendmail::error;
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
INSERT INTO systempreferences (variable,value,options,explanation,type)
|
||||||
|
VALUES ('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo');
|
|
@ -93,6 +93,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
||||||
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'),
|
('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'),
|
('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'),
|
('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'),
|
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
|
||||||
('CoceHost', NULL, NULL, 'Coce server URL', 'Free'),
|
('CoceHost', NULL, NULL, 'Coce server URL', 'Free'),
|
||||||
('CoceProviders', NULL, 'aws,gb,ol', 'Coce providers', 'multiple'),
|
('CoceProviders', NULL, 'aws,gb,ol', 'Coce providers', 'multiple'),
|
||||||
|
|
|
@ -60,6 +60,14 @@ Acquisitions:
|
||||||
type: textarea
|
type: textarea
|
||||||
- "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2"
|
- "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2"
|
||||||
- "<br/>For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a"
|
- "<br/>For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>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:
|
Printing:
|
||||||
-
|
-
|
||||||
- Use the
|
- Use the
|
||||||
|
|
Loading…
Reference in a new issue