Bug 9032: new SHARE_INVITE & SHARE_ACCEPT notifications
Adds notices SHARE_INVITE and SHARE_ACCEPT in updatedatabase and sample_notices. Test plan: Install or upgrade and verify that you have the new notice under Tools. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
21743636af
commit
eab20be472
|
|
@ -117,3 +117,28 @@ http://<<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower
|
|||
|
||||
If you did not initiate this request, you may safely ignore this one-time message. The request will expire shortly.'
|
||||
);
|
||||
|
||||
INSERT INTO letter (module, code, branchcode, name, is_html, title, content)
|
||||
VALUES ('members', 'SHARE_INVITE', '', 'Invitation for sharing a list', '0', 'Share list <<listname>>', 'Dear patron,
|
||||
|
||||
One of our patrons, <<borrowers.firstname>> <<borrowers.surname>>, invites you to share his list <<listname>> in our library catalog.
|
||||
|
||||
To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar.
|
||||
|
||||
<<shareurl>>
|
||||
|
||||
In case you are not a patron in our library or do not want to accept this invitation, please ignore this mail. Note also that this invitation expires within two weeks.
|
||||
|
||||
Thank you.
|
||||
|
||||
Your library.'
|
||||
);
|
||||
INSERT INTO letter (module, code, branchcode, name, is_html, title, content)
|
||||
VALUES ( 'members', 'SHARE_ACCEPT', '', 'Notification about an accepted share', '0', 'Share on list <<listname>> accepted', 'Dear patron,
|
||||
|
||||
We want to inform you that <<borrowers.firstname>> <<borrowers.surname>> accepted your invitation to share your list <<listname>> in our library catalog.
|
||||
|
||||
Thank you.
|
||||
|
||||
Your library.'
|
||||
);
|
||||
|
|
|
|||
|
|
@ -8158,6 +8158,39 @@ if ( CheckVersion($DBversion) ) {
|
|||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.15.00.XXX";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
#insert a notice for sharing a list and accepting a share
|
||||
$dbh->do("
|
||||
INSERT INTO letter (module, code, branchcode, name, is_html, title, content)
|
||||
VALUES ( 'members', 'SHARE_INVITE', '', 'Invitation for sharing a list', '0', 'Share list <<listname>>', 'Dear patron,
|
||||
|
||||
One of our patrons, <<borrowers.firstname>> <<borrowers.surname>>, invites you to share his list <<listname>> in our library catalog.
|
||||
|
||||
To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar.
|
||||
|
||||
<<shareurl>>
|
||||
|
||||
In case you are not a patron in our library or do not want to accept this invitation, please ignore this mail. Note also that this invitation expires within two weeks.
|
||||
|
||||
Thank you.
|
||||
|
||||
Your library.'
|
||||
)");
|
||||
$dbh->do("
|
||||
INSERT INTO letter (module, code, branchcode, name, is_html, title, content)
|
||||
VALUES ( 'members', 'SHARE_ACCEPT', '', 'Notification about an accepted share', '0', 'Share on list <<listname>> accepted', 'Dear patron,
|
||||
|
||||
We want to inform you that <<borrowers.firstname>> <<borrowers.surname>> accepted your invitation to share your list <<listname>> in our library catalog.
|
||||
|
||||
Thank you.
|
||||
|
||||
Your library.'
|
||||
)");
|
||||
print "Upgrade to $DBversion done (Bug 9032: Share a list)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
=head1 FUNCTIONS
|
||||
|
||||
=head2 TableExists($table)
|
||||
|
|
|
|||
Loading…
Reference in New Issue