Bug 18304: Do not mail cart or list contents to the library
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 20 Mar 2017 11:58:42 +0000 (12:58 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 31 Mar 2017 14:27:36 +0000 (14:27 +0000)
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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt

index fed5013..0ca5498 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Sending your cart</title>
 [% INCLUDE 'doc-head-close.inc' %]
@@ -36,6 +37,7 @@
                                     <input type="hidden" name="bib_list" value="[% bib_list %]" />
                                     <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
                                 </fieldset>
+                                [% IF Koha.Preference('RequestOnOpac') || Koha.Preference('OpacRenewalAllowed') %]<p>Please do not use this mail to request or renew books.</p>[% END %]
                                 <fieldset class="action">
                                     <input type="submit" class="btn" value="Send" />
                                     <a class="cancel close" href="#">Cancel</a>
index c5e9fe8..ab16bd5 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Sending your list</title>
 [% INCLUDE 'doc-head-close.inc' %]
@@ -40,6 +41,7 @@
 
                                         <input type="hidden" name="shelfid" value="[% shelfid %]" />
                                     </fieldset>
+                                    [% IF Koha.Preference('RequestOnOpac') || Koha.Preference('OpacRenewalAllowed') %]<p>Please do not use this mail to request or renew books.</p>[% END %]
                                     <fieldset class="action">
                                         <input type="submit" value="Send" class="btn" />
                                         <a class="cancel close" href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelfid %]">Cancel</a>