From d73d77b6f7b7ae8cad3f4f78d1458b3bde37ad82 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 16 Jul 2014 08:04:50 -0400 Subject: [PATCH] [SIGNED OFF] Bug 9011 [QA Followup 2] - Add message to OPAC * Adds warning to OPAC if StoreLastBorrower is enabled * Updates db revision * Fixes POD error Signed-off-by: Nick Clemens --- C4/Circulation.pm | 2 +- installer/data/mysql/updatedatabase.pl | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt | 14 +++++++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 832b7b4..426f501 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3770,7 +3770,7 @@ sub GetAgeRestriction { return $restriction_year; } -=head AnonymizeItemIssueHistory +=head2 AnonymizeItemIssueHistory AnonymizeItemIssueHistory({ itemnumber => $itemnumber }); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index b73027f..3467911 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -8613,7 +8613,7 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.13.00.XXX"; +$DBversion = "3.17.00.XXX"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('StoreLastBorrower','0','','If ON, the last borrower to return an item will be stored in items.last_returned_by','YesNo')"); diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt index bc731cd..624289a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt @@ -25,7 +25,13 @@

Your privacy management

[% IF ( deleted ) %] -
Your reading history has been deleted.
+
+ [% IF Koha.Preference('StoreLastBorrower') %] + Your reading history has been deleted, except for those items you are the last person to have returned. + [% ELSE %] + Your reading history has been deleted. + [% END %] +
[% ELSIF ( err_history_not_deleted ) %]
The deletion of your reading history failed, because there is a problem with the configuration of this feature. Please help to fix the system by informing your library of this error.
[% END %] @@ -43,6 +49,12 @@
  • Never: Delete my reading history immediately. This will delete all record of the item that was checked-out upon check-in.
  • Please note that information on any book still checked-out must be kept by the library no matter which privacy option you choose.

    + [% IF Koha.Preference('StoreLastBorrower') %] +

    + The library will also track the last patron to have returned an item. + If you check out and return an item, the librarian will retain a record of that checkout until another patron checks out and returns that item. +

    + [% END %]

    Please also note that the library staff can't update these values for you: it's your privacy!

    -- 1.7.10.4