Bug 16029: Hide patron toolbar if patron does not exist
authorAleisha <aleishaamohia@hotmail.com>
Sun, 13 Mar 2016 23:40:53 +0000 (23:40 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 22 Mar 2016 00:56:56 +0000 (00:56 +0000)
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 <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt

index 591dbfa..8355bf5 100644 (file)
@@ -141,7 +141,10 @@ function validate1(date) {
    <div id="bd">
        <div id="yui-main">
        <div class="yui-b">
+
+[% UNLESS ( unknowuser ) %]
 [% INCLUDE 'members-toolbar.inc' %]
+[% END %]
 
 [% IF ( error ) %]
 <div class="dialog alert">
@@ -166,7 +169,7 @@ function validate1(date) {
 <div class="yui-g">
 
 [% IF ( unknowuser ) %]
-   <div class="dialog message">This patron does not exist.</div>
+   <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
 [% ELSE %]
     [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry | $KohaDates %]</div>[% END %]