From 37740c696e9161639d68752c61620f53c8c0fcbc Mon Sep 17 00:00:00 2001 From: Aleisha Date: Sun, 13 Mar 2016 23:40:53 +0000 Subject: [PATCH] Bug 16029: Hide patron toolbar if patron does not exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: 1) Create a patron, take note of the borrower number 2) Delete the patron 3) Navigate to the page of the patron you just deleted by typing the url (ie /cgi-bin/koha/members/moremember.pl?borrowernumber=X) 4) Confirm that the patron toolbar is not showing on the page 5) The message now has a link that says 'Find another patron?'. Click this link and confirm you are taken to the member home pgae. Sponsored-by: Catalyst IT Followed test plan, works as expected. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com (cherry picked from commit 1870141874667d854f9b5508c563169baefb2328) Signed-off-by: Julian Maurice (cherry picked from commit e0ad205512af9dba2a9d5cad70bf6fdffecc6e17) Signed-off-by: Frédéric Demians --- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 1a28f0d35d..f8354ee3a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -139,7 +139,10 @@ function validate1(date) {
+ +[% UNLESS ( unknowuser ) %] [% INCLUDE 'members-toolbar.inc' %] +[% END %] [% IF ( error ) %]
@@ -164,7 +167,7 @@ function validate1(date) {
[% IF ( unknowuser ) %] -
This patron does not exist.
+
This patron does not exist. Find another patron?
[% ELSE %] [% IF ( was_renewed ) %]
Patron's account has been renewed until [% dateexpiry | $KohaDates %]
[% END %] -- 2.39.5