From f5fc9a2afdae4f1b5057f5a5fc32e247a8d448e3 Mon Sep 17 00:00:00 2001
From: Aleisha Amohia
Date: Wed, 22 Apr 2020 00:47:13 +0000
Subject: [PATCH] Bug 19532: Database and installer stuff
- Add recalls table
- Add recalls circulation rules - recalls allowed, recalls per record, on shelf recalls, recall due date interval, recall overdue fine, recall shelf time
- Add system preferences - useRecalls, RecallsMaxPickUpDelay, RecallsLog
- Add email notices (RETURN_RECALLED_ITEM, PICKUP_RECALLED_ITEM)
- Add print notice (RECALL_REQUESTER_DET)
- Add user permission - recalls, manage_recalls
- Add Recall and CancelRecall enum options for branchtransfers reason
Signed-off-by: David Nind
---
C4/Auth.pm | 1 +
C4/InstallAuth.pm | 1 +
Koha/CirculationRules.pm | 18 +++++++
Makefile.PL | 1 +
admin/smart-rules.pl | 19 +++++++
...bug_19532-add_recalls_enum_branchtransfers.perl | 6 +++
.../atomicupdate/bug_19532-add_recalls_flags.perl | 7 +++
.../bug_19532-add_recalls_notices.perl | 36 ++++++++++++++
.../bug_19532-add_recalls_sysprefs.perl | 11 ++++
.../atomicupdate/bug_19532-add_recalls_table.perl | 34 +++++++++++++
.../data/mysql/en/mandatory/sample_notices.yml | 58 ++++++++++++++++++++++
.../mysql/fr-CA/obligatoire/sample_notices.sql | 30 ++++++++++-
.../mysql/fr-FR/1-Obligatoire/sample_notices.sql | 30 ++++++++++-
installer/data/mysql/it-IT/necessari/notices.sql | 30 ++++++++++-
installer/data/mysql/kohastructure.sql | 36 +++++++++++++-
installer/data/mysql/mandatory/sysprefs.sql | 5 +-
installer/data/mysql/mandatory/userflags.sql | 3 +-
installer/data/mysql/mandatory/userpermissions.sql | 3 +-
.../mysql/nb-NO/1-Obligatorisk/sample_notices.sql | 30 ++++++++++-
.../data/mysql/pl-PL/mandatory/sample_notices.sql | 30 ++++++++++-
.../data/mysql/ru-RU/mandatory/sample_notices.sql | 30 ++++++++++-
.../data/mysql/uk-UA/mandatory/sample_notices.sql | 34 ++++++++++++-
installer/onboarding.pl | 6 +++
.../intranet-tmpl/prog/en/includes/permissions.inc | 9 ++++
.../en/modules/admin/preferences/circulation.pref | 12 +++++
.../prog/en/modules/admin/preferences/logs.pref | 6 +++
.../prog/en/modules/admin/smart-rules.tt | 51 ++++++++++++++++++-
27 files changed, 524 insertions(+), 13 deletions(-)
create mode 100644 installer/data/mysql/atomicupdate/bug_19532-add_recalls_enum_branchtransfers.perl
create mode 100644 installer/data/mysql/atomicupdate/bug_19532-add_recalls_flags.perl
create mode 100644 installer/data/mysql/atomicupdate/bug_19532-add_recalls_notices.perl
create mode 100644 installer/data/mysql/atomicupdate/bug_19532-add_recalls_sysprefs.perl
create mode 100644 installer/data/mysql/atomicupdate/bug_19532-add_recalls_table.perl
diff --git a/C4/Auth.pm b/C4/Auth.pm
index 8368dd82ff..b7068b718a 100644
--- a/C4/Auth.pm
+++ b/C4/Auth.pm
@@ -333,6 +333,7 @@ sub get_template_and_user {
$template->param( CAN_user_stockrotation => 1 );
$template->param( CAN_user_cash_management => 1 );
$template->param( CAN_user_problem_reports => 1 );
+ $template->param( CAN_user_recalls => 1 );
foreach my $module ( keys %$all_perms ) {
foreach my $subperm ( keys %{ $all_perms->{$module} } ) {
diff --git a/C4/InstallAuth.pm b/C4/InstallAuth.pm
index 7ed980b467..a5b3a252fe 100644
--- a/C4/InstallAuth.pm
+++ b/C4/InstallAuth.pm
@@ -143,6 +143,7 @@ sub get_template_and_user {
$template->param( CAN_user_serials => 1 );
$template->param( CAN_user_reports => 1 );
$template->param( CAN_user_problem_reports => 1 );
+ $template->param( CAN_user_recalls => 1 );
}
my $minPasswordLength = C4::Context->preference('minPasswordLength');
diff --git a/Koha/CirculationRules.pm b/Koha/CirculationRules.pm
index df1314613e..384c7cbee6 100644
--- a/Koha/CirculationRules.pm
+++ b/Koha/CirculationRules.pm
@@ -169,6 +169,24 @@ our $RULE_KINDS = {
decreaseloanholds => {
scope => [ 'branchcode', 'categorycode', 'itemtype' ],
},
+ recalls_allowed => {
+ scope => [ 'branchcode', 'categorycode', 'itemtype' ],
+ },
+ recalls_per_record => {
+ scope => [ 'branchcode', 'categorycode', 'itemtype' ],
+ },
+ on_shelf_recalls => {
+ scope => [ 'branchcode', 'categorycode', 'itemtype' ],
+ },
+ recall_due_date_interval => {
+ scope => [ 'branchcode', 'categorycode', 'itemtype' ],
+ },
+ recall_overdue_fine => {
+ scope => [ 'branchcode', 'categorycode', 'itemtype' ],
+ },
+ recall_shelf_time => {
+ scope => [ 'branchcode', 'categorycode', 'itemtype' ],
+ },
# Not included (deprecated?):
# * accountsent
# * reservecharge
diff --git a/Makefile.PL b/Makefile.PL
index 9ade47696c..bd9feee431 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -351,6 +351,7 @@ my $target_map = {
'./patron_lists' => 'INTRANET_CGI_DIR',
'./plugins' => 'INTRANET_CGI_DIR',
'./pos' => 'INTRANET_CGI_DIR',
+ './recalls' => 'INTRANET_CGI_DIR',
'./reports' => 'INTRANET_CGI_DIR',
'./reserve' => 'INTRANET_CGI_DIR',
'./reviews' => 'INTRANET_CGI_DIR',
diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl
index b1fa57b4da..d203ca3a44 100755
--- a/admin/smart-rules.pl
+++ b/admin/smart-rules.pl
@@ -112,6 +112,12 @@ if ($op eq 'delete') {
cap_fine_to_replacement_price => undef,
article_requests => undef,
note => undef,
+ recalls_allowed => undef,
+ recalls_per_record => undef,
+ on_shelf_recalls => undef,
+ recall_due_date_interval => undef,
+ recall_overdue_fine => undef,
+ recall_shelf_time => undef,
}
}
);
@@ -290,6 +296,12 @@ elsif ($op eq 'add') {
my $cap_fine_to_replacement_price = ($input->param('cap_fine_to_replacement_price') || '') eq 'on';
my $note = $input->param('note');
my $decreaseloanholds = $input->param('decreaseloanholds') || undef;
+ my $recalls_allowed = $input->param('recalls_allowed');
+ my $recalls_per_record = $input->param('recalls_per_record');
+ my $on_shelf_recalls = $input->param('on_shelf_recalls');
+ my $recall_due_date_interval = $input->param('recall_due_date_interval');
+ my $recall_overdue_fine = $input->param('recall_overdue_fine');
+ my $recall_shelf_time = $input->param('recall_shelf_time');
$debug and warn "Adding $br, $bor, $itemtype, $fine, $maxissueqty, $maxonsiteissueqty, $cap_fine_to_replacement_price";
my $rules = {
@@ -325,6 +337,13 @@ elsif ($op eq 'add') {
article_requests => $article_requests,
note => $note,
decreaseloanholds => $decreaseloanholds,
+ recalls_allowed => $recalls_allowed,
+ recalls_per_record => $recalls_per_record,
+ on_shelf_recalls => $on_shelf_recalls,
+ recall_due_date_interval => $recall_due_date_interval,
+ recall_overdue_fine => $recall_overdue_fine,
+ recall_shelf_time => $recall_shelf_time,
+>>>>>>> Bug 19532: Database and installer stuff
};
Koha::CirculationRules->set_rules(
diff --git a/installer/data/mysql/atomicupdate/bug_19532-add_recalls_enum_branchtransfers.perl b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_enum_branchtransfers.perl
new file mode 100644
index 0000000000..654242817e
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_enum_branchtransfers.perl
@@ -0,0 +1,6 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(q{ ALTER TABLE branchtransfers MODIFY COLUMN reason ENUM('Manual', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding', 'RotatingCollection', 'Reserve', 'LostReserve', 'CancelReserve', 'Recall', 'CancelRecall') });
+
+ NewVersion( $DBversion, 19532, "Add Recall and CancelReserve ENUM options to branchtransfers.reason" );
+}
diff --git a/installer/data/mysql/atomicupdate/bug_19532-add_recalls_flags.perl b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_flags.perl
new file mode 100644
index 0000000000..5ece22846e
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_flags.perl
@@ -0,0 +1,7 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(q{ INSERT IGNORE INTO userflags (bit, flag, flagdesc, defaulton) VALUES (27, 'recalls', 'Recalls', 0) });
+ $dbh->do(q{ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (27, 'manage_recalls', 'Manage recalls for patrons') });
+
+ NewVersion( $DBversion, 19532, "Add recalls user flag and manage_recalls user permission" );
+}
diff --git a/installer/data/mysql/atomicupdate/bug_19532-add_recalls_notices.perl b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_notices.perl
new file mode 100644
index 0000000000..d3921778df
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_notices.perl
@@ -0,0 +1,36 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(q{
+ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES
+ ('circulation','RETURN_RECALLED_ITEM','','Notification to return a recalled item','0','Notification to return a recalled item','Date: <>
+
+<> <>,
+
+A recall has been placed on the following item: <> / <> (<>). The due date has been updated, and is now <>. Please return the item before the due date.
+
+Thank you!','email'),
+ ('circulation','PICKUP_RECALLED_ITEM','','Recalled item awaiting pickup','0','Recalled item awaiting pickup','Date: <>
+
+<> <>,
+
+A recall that you requested on the following item: <> / <> (<>) is now ready for you to pick up at <>. Please pick up your item by <>.
+
+Thank you!','email'),
+ ('circulation','RECALL_REQUESTER_DET','','Details of patron who recalled item',0,'Details of patron who recalled item','Date: <>
+
+Recall for pickup at <>
+<>, <> (<>)
+<>
+<> <>, <>, <> <>
+<>
+
+ITEM RECALLED
+<> by <>
+Barcode: <>
+Callnumber: <>
+Waiting since: <>
+Notes: <>', 'print')
+ });
+
+ NewVersion( $DBversion, 19532, "Add recalls notices: RETURN_RECALLED_ITEM, PICKUP_RECALLED_ITEM, RECALL_REQUESTER_DET" );
+}
diff --git a/installer/data/mysql/atomicupdate/bug_19532-add_recalls_sysprefs.perl b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_sysprefs.perl
new file mode 100644
index 0000000000..c5d48271e7
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_sysprefs.perl
@@ -0,0 +1,11 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(q{
+ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES
+ ('RecallsLog','1',NULL,'If ON, log create/cancel/expire/fulfill actions on recalls','YesNo'),
+ ('RecallsMaxPickUpDelay','7',NULL,'Define the maximum time a recall can be awaiting pickup','Integer'),
+ ('UseRecalls','0',NULL,'Enable or disable recalls','YesNo')
+ });
+
+ NewVersion( $DBversion, 19532, "Add RecallsLog, RecallsMaxPickUpDelay and UseRecalls system preferences");
+}
diff --git a/installer/data/mysql/atomicupdate/bug_19532-add_recalls_table.perl b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_table.perl
new file mode 100644
index 0000000000..57aaabd3ad
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_19532-add_recalls_table.perl
@@ -0,0 +1,34 @@
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(q{ DROP TABLE IF EXISTS recalls });
+ $dbh->do(q{
+ CREATE TABLE recalls (
+ recall_id int(11) NOT NULL auto_increment,
+ borrowernumber int(11) NOT NULL DEFAULT 0,
+ recalldate datetime DEFAULT NULL,
+ biblionumber int(11) NOT NULL DEFAULT 0,
+ branchcode varchar(10) DEFAULT NULL,
+ cancellationdate datetime DEFAULT NULL,
+ recallnotes mediumtext,
+ priority smallint(6) DEFAULT NULL,
+ status varchar(1) DEFAULT NULL,
+ timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ itemnumber int(11) DEFAULT NULL,
+ waitingdate datetime DEFAULT NULL,
+ expirationdate datetime DEFAULT NULL,
+ old TINYINT(1) DEFAULT NULL,
+ item_level_recall TINYINT(1) NOT NULL DEFAULT 0,
+ PRIMARY KEY (recall_id),
+ KEY borrowernumber (borrowernumber),
+ KEY biblionumber (biblionumber),
+ KEY itemnumber (itemnumber),
+ KEY branchcode (branchcode),
+ CONSTRAINT recalls_ibfk_1 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT recalls_ibfk_2 FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT recalls_ibfk_3 FOREIGN KEY (itemnumber) REFERENCES items (itemnumber) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT recalls_ibfk_4 FOREIGN KEY (branchcode) REFERENCES branches (branchcode) ON DELETE CASCADE ON UPDATE CASCADE
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+ });
+
+ NewVersion( $DBversion, 19532, "Add recalls table" );
+}
diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml
index e58c0075af..155539e36c 100644
--- a/installer/data/mysql/en/mandatory/sample_notices.yml
+++ b/installer/data/mysql/en/mandatory/sample_notices.yml
@@ -1478,3 +1478,61 @@ tables:
- "Barcode: [% item.barcode %]
"
- "
"
- "[% END %]"
+
+ - module: circulation
+ code: RETURN_RECALLED_ITEM
+ branchcode: ""
+ name: "Notification to return a recalled item"
+ is_html: 0
+ title: "Notification to return a recalled item"
+ message_transport_type: email
+ lang: default
+ content:
+ - "Date: <>"
+ - ""
+ - "<> <>,"
+ - ""
+ - "A recall has been placed on the following item: <> / <> (<>). The due date has been updated, and is now <>. Please return the item before the due date."
+ - ""
+ - "Thank you!"
+
+ - module: circulation
+ code: PICKUP_RECALLED_ITEM
+ branchcode: ""
+ name: "Recalled item awaiting pickup"
+ is_html: 0
+ title: "Recalled item awaiting pickup"
+ message_transport_type: email
+ lang: default
+ content:
+ - "Date: <>"
+ - ""
+ - "<> <>,"
+ - ""
+ - "A recall that you requested on the following item: <> / <> (<>) is now ready for you to pick up at <>. Please pick up your item by <>."
+ - ""
+ - "Thank you!"
+
+ - module: circulation
+ code: RECALL_REQUESTER_DET
+ branchcode: ""
+ name: "Details of patron who recalled item"
+ is_html: 0
+ title: "Details of patron who recalled item"
+ message_transport_type: print
+ lang: default
+ content:
+ - "Date: <>"
+ - ""
+ - "Recall for pickup at <>"
+ - "<>, <> (<>)"
+ - "<>"
+ - "<> <>, <>, <> <>"
+ - "<>"
+ - ""
+ - "ITEM RECALLED"
+ - "<> by <>"
+ - "Barcode: <>"
+ - "Callnumber: <>"
+ - "Waiting since: <>"
+ - "Notes: <>"
diff --git a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql b/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql
index 2317e98575..e4db9fd9ec 100644
--- a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql
+++ b/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql
@@ -98,7 +98,35 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`
('circulation', 'AR_PENDING', '', 'Demande d\'article - en attente', 0, 'Demande d\'article reçue', 'Bonjour <> <> (<>)\r\n\r\nNous avons bien reçu votre demande d\'article de <> (<>).\r\n\r\nArticle demandé :\r\nTitre : <>\r\nAuteur : <>\r\nVolume : <>\r\nNuméro : <>\r\nDate : <>\r\nPages : <>\r\nChapitres : <>\r\nNotes : <>\r\n\r\n\r\nMerci.', 'email'),
('circulation', 'AR_SLIP', '', 'Demande d\'article - ticket', 0, 'Demande d\'article', 'Demande d\'article :\r\n\r\n<> <> (<>),\r\n\r\nTitre : <>\r\nCode-barres : <>\r\n\r\nArticle demandé :\r\nTitre : <>\r\nAuteur : <>\r\nVolume : <>\r\nNuméro : <>\r\nDate : <>\r\nPages : <>\r\nChapitres : <>\r\nNotes : <>\r\n', 'print'),
('circulation', 'AR_PROCESSING', '', 'Demande d\'article - en traitement', 0, 'Demande d\'article en traitement', 'Bonjour <> <> (<>),\r\n\r\nNous traitons votre demande d\'article de <> (<>).\r\n\r\nArticle demandé :\r\nTitre : <>\r\nAuteur : <>\r\nVolume : <>\r\nNuméro : <>\r\nDate : <>\r\nPages : <>\r\nChapitres : <>\r\nNotes : <>\r\n\r\nMerci.', 'email'),
-('circulation', 'CHECKOUT_NOTE', '', 'Notes d\'un utilisateur sur les documents en prêt', '0', 'Notes sur les documents en prêts', '<> <> a ajouté une note sur un exemplaire de <> - <> (<>).','email');
+('circulation', 'CHECKOUT_NOTE', '', 'Notes d\'un utilisateur sur les documents en prêt', '0', 'Notes sur les documents en prêts', '<> <> a ajouté une note sur un exemplaire de <> - <> (<>).','email'),
+('circulation','RETURN_RECALLED_ITEM','','Notification to return a recalled item','0','Notification to return a recalled item','Date: <>
+
+<> <>,
+
+A recall has been placed on the following item: <> / <> (<>). The due date has been updated, and is now <>. Please return the item before the due date.
+
+Thank you!','email'),
+('circulation','PICKUP_RECALLED_ITEM','','Recalled item awaiting pickup','0','Recalled item awaiting pickup','Date: <>
+
+<> <>,
+
+A recall that you requested on the following item: <> / <> (<>) is now ready for you to pick up at <>. Please pick up your item by <>.
+
+Thank you!','email'),
+('circulation','RECALL_REQUESTER_DET','','Details of patron who recalled item',0,'Date: <>
+
+Recall for pickup at <>
+<>, <> (<>)
+<>
+<> <>, <>, <> <>
+<>
+
+ITEM RECALLED
+<> by <>
+Barcode: <>
+Callnumber: <>
+Waiting since: <>
+Notes: <>', 'print');
INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, message_transport_type)
VALUES ('members','PASSWORD_RESET','','Récupération de mot de passe en ligne',1,'Récupération de mot de passe','\r\nCe courriel vous a été envoyé suite à une demande de récupération de mot de passe pour le compte de <>.\r\n
\r\n\r\nVous pouvez créer un nouveau mot de passe en cliquant le lien suivant :\r\n
>\"><>\r\n
\r\nCe lien sera valide pour 2 jours après la réception de ce courriel. Si vous ne changez pas votre mot de passe d\'ici deux jours, vous devrez faire une nouvelle demande de récuération de mot de passe..
\r\nMerci.
\r\n\r\n','email'),
diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql b/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql
index 7bc86d3ec2..20192eab3e 100644
--- a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql
+++ b/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql
@@ -215,7 +215,35 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`
('circulation', 'AR_PENDING', '', 'Article request - pending', 0, 'Article request received', 'Dear <> <> (<>)\r\n\r\nWe have received your request for an article from <> (<>).\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n\r\n\r\nThank you!', 'email'),
('circulation', 'AR_SLIP', '', 'Article request - print slip', 0, 'Article request', 'Article request:\r\n\r\n<> <> (<>),\r\n\r\nTitle: <>\r\nBarcode: <>\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n', 'print'),
('circulation', 'AR_PROCESSING', '', 'Article request - processing', 0, 'Article request processing', 'Dear <> <> (<>),\r\n\r\nWe are now processing your request for an article from <> (<>).\r\n\r\nArticle requested:\r\nTitle: <>\r\nAuthor: <>\r\nVolume: <>\r\nIssue: <>\r\nDate: <>\r\nPages: <>\r\nChapters: <>\r\nNotes: <>\r\n\r\nThank you!', 'email'),
-('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<> <> has added a note to the item <> - <> (<>).','email');
+('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<> <> has added a note to the item <> - <> (<>).','email'),
+('circulation','RETURN_RECALLED_ITEM','','Notification to return a recalled item','0','Notification to return a recalled item','Date: <>
+
+<> <>,
+
+A recall has been placed on the following item: <> / <> (<>). The due date has been updated, and is now <>. Please return the item before the due date.
+
+Thank you!','email'),
+('circulation','PICKUP_RECALLED_ITEM','','Recalled item awaiting pickup','0','Recalled item awaiting pickup','Date: <>
+
+<> <>,
+
+A recall that you requested on the following item: <> / <> (<>) is now ready for you to pick up at <>. Please pick up your item by <>.
+
+Thank you!','email'),
+('circulation','RECALL_REQUESTER_DET','','Details of patron who recalled item',0,'Date: <>
+
+Recall for pickup at <>
+<>, <> (<>)
+<>
+<> <>, <>, <> <>
+<>
+
+ITEM RECALLED
+<> by <>
+Barcode: <>
+Callnumber: <>
+Waiting since: <>
+Notes: <>', 'print');
INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
('circulation', 'ACCOUNT_PAYMENT', '', 'Account payment', 0, 'Account payment', '[%- USE Price -%]\r\nA payment of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis payment affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'),
diff --git a/installer/data/mysql/it-IT/necessari/notices.sql b/installer/data/mysql/it-IT/necessari/notices.sql
index c2c2a9cfc0..02a42756b9 100644
--- a/installer/data/mysql/it-IT/necessari/notices.sql
+++ b/installer/data/mysql/it-IT/necessari/notices.sql
@@ -217,7 +217,35 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`
('circulation', 'AR_PENDING', '', 'Richiesta articolo - ricevuta', 0, 'Ricevuto la richiesta di un articolo', 'Salve <> <> (<>)\r\n\r\nAbbiamo ricevuto la tua richiesta di un articolo di <> (<>).\r\n\r\nL\'articolo richiesto:\r\nTitolo: <>\r\nAutore: <>\r\nVolume: <>\r\nFascicolo: <>\r\nData: <>\r\nPagine: <>\r\nChapitoli: <>\r\nNote: <>\r\n\r\nGrazie!', 'email'),
('circulation', 'AR_SLIP', '', 'Richiesta articolo - ricevuta a stampa', 0, 'Richiesta articolo', 'Richiesta articolo\r\n\r\n<> <> (<>),\r\n\r\nTitolo: <>\r\nBarcode: <>\r\n\r\nArticolo rechiesto:\r\nTitle: <>\r\nAutore: <>\r\nVolume: <>\r\nFascicolo: <>\r\nData: <>\r\nPagine: <>\r\nChapitoli: <>\r\nNote: <>\r\n', 'print'),
('circulation', 'AR_PROCESSING', '', 'Richiesta articolo - in lavorazione', 0, 'La richiesta di un articolo è in lavorazione', 'Salve <> <> (<>),\r\n\r\nStiamo ora lavorando la tua richiesta di un articolo da <> (<>).\r\n\r\nL\'articolo richiesto:\r\nTitolo: <>\r\nAutore: <>\r\nVolume: <>\r\nFascicolo: <>\r\nData: <>\r\nPagine: <>\r\nChapitoli: <>\r\nNote: <>\r\n\r\nGrazie!', 'email'),
-('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<> <> has added a note to the item <> - <> (<>).','email');
+('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<> <> has added a note to the item <> - <> (<>).','email'),
+('circulation','RETURN_RECALLED_ITEM','','Notification to return a recalled item','0','Notification to return a recalled item','Date: <>
+
+<> <>,
+
+A recall has been placed on the following item: <> / <> (<>). The due date has been updated, and is now <>. Please return the item before the due date.
+
+Thank you!','email'),
+('circulation','PICKUP_RECALLED_ITEM','','Recalled item awaiting pickup','0','Recalled item awaiting pickup','Date: <