Bug 22616: Updating error text messages
authorLiz Rea <wizzyrea@gmail.com>
Fri, 29 Mar 2019 16:31:14 +0000 (16:31 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 17 Apr 2019 12:25:24 +0000 (12:25 +0000)
To test:

Apply this patch
Go to a borrower that doesn't exist, check that the error message is
displayed and looks correct. (i.e. http://127.0.0.1:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=9999999999999999)
Go to an item, subscription, biblio that don't exist, check that the
error message is correct and the links work
Go to a borrower that the logged in user doesn't have permission to see, check that the error message is correct and the links work.

Signed-off-by: Bin Wen <bin.wen@inlibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

index c734706..68eb554 100644 (file)
@@ -1,16 +1,16 @@
 [% IF blocking_error %]
     [% SWITCH blocking_error %]
     [% CASE 'unknown_patron' %]
-        <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
-    [% CASE 'cannot_see_patron_infos' %]You are not allowed to see the information of this patron.
+        <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
+    [% CASE 'cannot_see_patron_infos' %]This account cannot view requested patron information.
     [% CASE 'unknown_biblio' %]
-        <div class="dialog message">This bibliographic record does not exist.</div>
+        <div class="dialog message">Bibliographic record not found.</div>
     [% CASE 'unknown_item' %]
-        <div class="dialog message">This item does not exist.</div>
+        <div class="dialog message">Item not found.</div>
     [% CASE 'unknown_subscription' %]
-        <div class="dialog message">This subscription does not exist.</div>
+        <div class="dialog message">Subscription not found.</div>
     [% CASE 'unknown_basket' %]
-        <div class="dialog message">This basket does not exist.</div>
+        <div class="dialog message">Basket not found.</div>
     [% CASE 'wrong_csrf_token' %]
         <div class="dialog message">The form submission failed (Wrong CSRF token). Try to come back, refresh the page, then try again.</div>
     [% CASE %][% blocking_error | html %]
index 056a8f9..309e51f 100644 (file)
@@ -940,7 +940,7 @@ No patron matched <span class="ex">[% message | html %]</span>
 [% END %]
 
 [% ELSIF borrowernumber %]
-    <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
+    <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
 [% END %]
 </div></div>
 [% END %]