Lines 8065-8070
if ( CheckVersion($DBversion) ) {
Link Here
|
8065 |
SetVersion($DBversion); |
8065 |
SetVersion($DBversion); |
8066 |
} |
8066 |
} |
8067 |
|
8067 |
|
|
|
8068 |
$DBversion = "3.15.00.XXX"; |
8069 |
if ( CheckVersion($DBversion) ) { |
8070 |
#insert a notice for sharing a list and accepting a share |
8071 |
$dbh->do(" |
8072 |
INSERT INTO letter (module, code, branchcode, name, is_html, title, content) |
8073 |
VALUES ( 'members', 'SHARE_INVITE', '', 'Invitation for sharing a list', '0', 'Share list <<listname>>', 'Dear patron, |
8074 |
|
8075 |
One of our patrons, <<borrowers.firstname>> <<borrowers.surname>>, invites you to share his list <<listname>> in our library catalog. |
8076 |
|
8077 |
To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar. |
8078 |
|
8079 |
<<shareurl>> |
8080 |
|
8081 |
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. |
8082 |
|
8083 |
Thank you. |
8084 |
|
8085 |
Your library.' |
8086 |
)"); |
8087 |
$dbh->do(" |
8088 |
INSERT INTO letter (module, code, branchcode, name, is_html, title, content) |
8089 |
VALUES ( 'members', 'SHARE_ACCEPT', '', 'Notification about an accepted share', '0', 'Share on list <<listname>> accepted', 'Dear patron, |
8090 |
|
8091 |
We want to inform you that <<borrowers.firstname>> <<borrowers.surname>> accepted your invitation to share your list <<listname>> in our library catalog. |
8092 |
|
8093 |
Thank you. |
8094 |
|
8095 |
Your library.' |
8096 |
)"); |
8097 |
print "Upgrade to $DBversion done (Bug 9032: Share a list)\n"; |
8098 |
SetVersion($DBversion); |
8099 |
} |
8100 |
|
8101 |
|
8068 |
=head1 FUNCTIONS |
8102 |
=head1 FUNCTIONS |
8069 |
|
8103 |
|
8070 |
=head2 TableExists($table) |
8104 |
=head2 TableExists($table) |
8071 |
- |
|
|