From 1870141874667d854f9b5508c563169baefb2328 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 --- .../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 591dbfaca7..8355bf5614 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -141,7 +141,10 @@ function validate1(date) {
+ +[% UNLESS ( unknowuser ) %] [% INCLUDE 'members-toolbar.inc' %] +[% END %] [% IF ( error ) %]
@@ -166,7 +169,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