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