From 37550a1d690c91465789920f64800c28bdc9a6ec Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 20 Mar 2017 12:58:42 +0100 Subject: [PATCH] Bug 18304: Do not mail cart or list contents to the library Sometimes we receive mails from patrons, sent from opac-sendbasket or opac-sendshelf. Instead of placing a hold on books they send the contents of the cart (or even a list). This patch simply puts a note on both forms saying that they should not use the mail to request or renew books. If both options are disabled on the OPAC, the message is not shown. Test plan: [1] Enable RequestOnOPAC. [2] Put a book in the cart. [3] Open the cart, click on Send. Verify presence of the message. [4] Open a list. [5] Click on Send list. Verify presence of the message. Signed-off-by: Marcel de Rooy Signed-off-by: Jesse Maseto Signed-off-by: Jonathan Druart --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt | 2 ++ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt index fed5013093..0ca54980da 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Sending your cart [% INCLUDE 'doc-head-close.inc' %] @@ -36,6 +37,7 @@ + [% IF Koha.Preference('RequestOnOpac') || Koha.Preference('OpacRenewalAllowed') %]

Please do not use this mail to request or renew books.

[% END %]
Cancel diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt index c5e9fe8fb7..ab16bd50f6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Sending your list [% INCLUDE 'doc-head-close.inc' %] @@ -40,6 +41,7 @@
+ [% IF Koha.Preference('RequestOnOpac') || Koha.Preference('OpacRenewalAllowed') %]

Please do not use this mail to request or renew books.

[% END %]
Cancel -- 2.11.4.GIT