--- /dev/null
+INSERT INTO `letter`
+(module, code, name, title, content)
+VALUES
+('circulation','ODUE','Overdue Notice','Item Overdue','Dear
+<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nAccording to our current
+records, you have items that are overdue.Your library does not charge late
+fines, but please return orrenew them as soon as
+possible.\r\n\r\n<<branches.branchname>><<branches.branchaddress1>><<branches.branchaddress2>><<branches.branchaddress3>><<branches.branchphone>><<branches.branchfax>><<branches.branchemail>>If
+ you have registered a password with the library, you may use it withyour
+library card number to renew online. If an item becomes more than 30 days
+overdue, you will be unable to use your library card until the item is
+returned. The following item is currently overdue:\r\n\r\n<<items.content>>'),
+('claimacquisition','ACQCLAIM','Acquisition Claim','Item Not
+Received','<<aqbooksellers.name>>\r\n<<aqbooksellers.address1>>\r\n<<aqbooksellers.address2>>\r\n<<aqbooksellers.address3>>\r\n<<aqbooksellers.address4>>\r\n<<aqbooksellers.phone>>\r\n\r\nOrdernumber
+ <<aqorders.ordernumber>> (<<aqorders.title>>) (<<aqorders.quantity>> ordered)
+($<<aqorders.listprice>> each) has not been received.'),
+('serial','RLIST','Routing List','Serial is now
+available','<<borrowers.firstname>> <<borrowers.title>>,\r\n\r\nThe following
+issue is now available:\r\n\r\n<<items.content>>\r\n\r\nPlease pick it up at
+your convenience.'),
+('members','ACCTDETAILS','Account Details Template - DEFAULT','Your new Koha
+account details.','Hello <<borrowers.title>> <<borrowers.firstname>>
+<<borrowers.surname>>.\r\n\r\nYour new Koha account details are:\r\n\r\nUser:
+<<borrowers.userid>>\r\nPassword: <<borrowers.password>>\r\n\r\nIf you have any
+problems or questions regarding your account, please contact your Koha
+Administrator.\r\n\r\nThank you,\r\nKoha
+administrator\r\nkohaad...@yoursite.org'),
+('circulation','DUE','Item Due Reminder','Item Due Reminder','Dear
+<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following item is now
+due:\r\n\r\n<<items.content>>'),
+('circulation','DUEDGST','Item Due Reminder (Digest)','Item Due Reminder','You
+have <<count>> items due'),
+('circulation','PREDUE','Advance Notice of Item Due','Advance Notice of Item
+Due','Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following
+item will be due soon:\r\n\r\n<<items.content>>'),
+('circulation','PREDUEDGST','Advance Notice of Item Due (Digest)','Advance
+Notice of Item Due','You have <<count>> items due soon'),
+('circulation','EVENT','Upcoming Library Event','Upcoming Library Event','Dear
+<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThis is a reminder of an
+upcoming library event in which you have expressed interest.'),
+('reserves', 'HOLD', 'Hold Available for Pickup', 'Hold Available for Pickup
+at <<branches.branchname>>', 'Dear <<borrowers.firstname>>
+<<borrowers.surname>>,\r\n\r\nYou have a hold available for pickup as of
+<<reserves.waitingdate>>:\r\n\r\nTitle: <<biblio.title>>\r\nAuthor:
+<<biblio.author>>\r\nCopy: <<items.copynumber>>\r\nLocation:
+<<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\r\n<<branches.branchaddress3>>'),
+('circulation','CHECKIN','Item Check-in (Digest)','Check-ins','The following
+items have been checked in:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you.'),
+('circulation','CHECKOUT','Item Check-out (Digest)','Checkouts','The following
+items have been checked out:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you
+for visiting <<branches.branchname>>.');
+
--- /dev/null
+Sample Notices
\ No newline at end of file
(2, 'sms', 0, 'circulation', 'PREDUE'),
(2, 'sms', 1, 'circulation', 'PREDUEDGST'),
(3, 'sms', 0, 'circulation', 'EVENT'),
-(4, 'sms', 0, 'reserves', 'HOLD');
+(4, 'sms', 0, 'reserves', 'HOLD'),
(4, 'sms', 0, 'reserves', 'HOLD'),
(5, 'email', 0, 'circulation', 'CHECKIN'),
(5, 'sms', 0, 'circulation', 'CHECKIN'),
--- /dev/null
+INSERT INTO `letter`
+(module, code, name, title, content)
+VALUES
+('circulation','ODUE','Overdue Notice','Item Overdue','Dear
+<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nAccording to our current
+records, you have items that are overdue.Your library does not charge late
+fines, but please return orrenew them as soon as
+possible.\r\n\r\n<<branches.branchname>><<branches.branchaddress1>><<branches.branchaddress2>><<branches.branchaddress3>><<branches.branchphone>><<branches.branchfax>><<branches.branchemail>>If
+ you have registered a password with the library, you may use it withyour
+library card number to renew online. If an item becomes more than 30 days
+overdue, you will be unable to use your library card until the item is
+returned. The following item is currently overdue:\r\n\r\n<<items.content>>'),
+('claimacquisition','ACQCLAIM','Acquisition Claim','Item Not
+Received','<<aqbooksellers.name>>\r\n<<aqbooksellers.address1>>\r\n<<aqbooksellers.address2>>\r\n<<aqbooksellers.address3>>\r\n<<aqbooksellers.address4>>\r\n<<aqbooksellers.phone>>\r\n\r\nOrdernumber
+ <<aqorders.ordernumber>> (<<aqorders.title>>) (<<aqorders.quantity>> ordered)
+($<<aqorders.listprice>> each) has not been received.'),
+('serial','RLIST','Routing List','Serial is now
+available','<<borrowers.firstname>> <<borrowers.title>>,\r\n\r\nThe following
+issue is now available:\r\n\r\n<<items.content>>\r\n\r\nPlease pick it up at
+your convenience.'),
+('members','ACCTDETAILS','Account Details Template - DEFAULT','Your new Koha
+account details.','Hello <<borrowers.title>> <<borrowers.firstname>>
+<<borrowers.surname>>.\r\n\r\nYour new Koha account details are:\r\n\r\nUser:
+<<borrowers.userid>>\r\nPassword: <<borrowers.password>>\r\n\r\nIf you have any
+problems or questions regarding your account, please contact your Koha
+Administrator.\r\n\r\nThank you,\r\nKoha
+administrator\r\nkohaad...@yoursite.org'),
+('circulation','DUE','Item Due Reminder','Item Due Reminder','Dear
+<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following item is now
+due:\r\n\r\n<<items.content>>'),
+('circulation','DUEDGST','Item Due Reminder (Digest)','Item Due Reminder','You
+have <<count>> items due'),
+('circulation','PREDUE','Advance Notice of Item Due','Advance Notice of Item
+Due','Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following
+item will be due soon:\r\n\r\n<<items.content>>'),
+('circulation','PREDUEDGST','Advance Notice of Item Due (Digest)','Advance
+Notice of Item Due','You have <<count>> items due soon'),
+('circulation','EVENT','Upcoming Library Event','Upcoming Library Event','Dear
+<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThis is a reminder of an
+upcoming library event in which you have expressed interest.'),
+('reserves', 'HOLD', 'Hold Available for Pickup', 'Hold Available for Pickup
+at <<branches.branchname>>', 'Dear <<borrowers.firstname>>
+<<borrowers.surname>>,\r\n\r\nYou have a hold available for pickup as of
+<<reserves.waitingdate>>:\r\n\r\nTitle: <<biblio.title>>\r\nAuthor:
+<<biblio.author>>\r\nCopy: <<items.copynumber>>\r\nLocation:
+<<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\r\n<<branches.branchaddress3>>'),
+('circulation','CHECKIN','Item Check-in (Digest)','Check-ins','The following
+items have been checked in:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you.'),
+('circulation','CHECKOUT','Item Check-out (Digest)','Checkouts','The following
+items have been checked out:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you
+for visiting <<branches.branchname>>.');
+
--- /dev/null
+Sample Notices
\ No newline at end of file
--- /dev/null
+insert into `message_attributes`
+(`message_attribute_id`, message_name, `takes_days`)
+values
+(1, 'Item DUE', 0),
+(2, 'Advance Notice', 1),
+(3, 'Upcoming Events', 1),
+(4, 'Hold Filled', 0);
+
--- /dev/null
+defines default messages for items due, advance notices, and upcoming library events.
+
--- /dev/null
+insert into `message_transports`
+(`message_attribute_id`, `message_transport_type`, `is_digest`, `letter_module`, `letter_code`)
+values
+(1, 'email', 0, 'circulation', 'DUE'),
+(1, 'email', 1, 'circulation', 'DUEDGST'),
+(2, 'email', 0, 'circulation', 'PREDUE'),
+(2, 'email', 1, 'circulation', 'PREDUEDGST'),
+(3, 'email', 0, 'circulation', 'EVENT'),
+(4, 'email', 0, 'reserves', 'HOLD'),
+(1, 'sms', 0, 'circulation', 'DUE'),
+(1, 'sms', 1, 'circulation', 'DUEDGST'),
+(2, 'sms', 0, 'circulation', 'PREDUE'),
+(2, 'sms', 1, 'circulation', 'PREDUEDGST'),
+(3, 'sms', 0, 'circulation', 'EVENT'),
+(4, 'sms', 0, 'reserves', 'HOLD'),
+(4, 'sms', 0, 'reserves', 'HOLD'),
+(5, 'email', 0, 'circulation', 'CHECKIN'),
+(5, 'sms', 0, 'circulation', 'CHECKIN'),
+(6, 'email', 0, 'circulation', 'CHECKOUT'),
+(6, 'sms', 0, 'circulation', 'CHECKOUT');
+
--- /dev/null
+Defines default message transports for sending item due messages,
+advance notice messages, and library event messages through email
+and SMS.