From 75d123d760d86f0e0d9f58d65874b40f6816008d Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 21 Jul 2015 00:29:52 +0000 Subject: [PATCH] Bug 14574: Fixing error messages on staff client so they make more sense To test: 1) Go to cgi-bin/koha/errors/errornumber.pl to see the error messages which currently don't make sense (ie cgi-bin/koha/errors/401.pl etc). Have only made changes to 401, 403 and 404 2) Apply patch 3) Go to cgi-bin/koha/errors/401.pl --> Check that it now says "This error means that you aren't authorized to view this page." and "Please log in and try again.". Check that 'log in' redirects to the log in page (mainpage.pl). 4) Go to cgi-bin/koha/errors/403.pl --> Check that it now says "This error means that you are forbidden to view this page." 5) Go to cgi-bin/koha/errors/404.pl --> This page should be very different. Check that the 'Error 404' is now in italics and not bold. Check that the page gives a list of reasons the user may have been given this error and some options for their next step. Signed-off-by: Catherine Signed-off-by: Jonathan Druart Amended patch: replace tab with 4 spaces. Note: I am not sure the em tag is useful here. Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/errors/401.tt | 3 ++- .../intranet-tmpl/prog/en/modules/errors/403.tt | 2 +- .../intranet-tmpl/prog/en/modules/errors/404.tt | 17 ++++++++++++----- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/errors/401.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/errors/401.tt index aa421d731b..5c0d3cf686 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/errors/401.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/errors/401.tt @@ -17,7 +17,8 @@

An error has occurred!

Error 401

    -
  • This error means that you aren't authorized to view this page
  • +
  • This error means that you aren't authorized to view this page.
  • +
  • Please log in and try again.
  • To report this error, you can email the Koha administrator.
  • Use top menu bar to navigate to another part of Koha.
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/errors/403.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/errors/403.tt index 66dc92dc3a..6ed5c3a19a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/errors/403.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/errors/403.tt @@ -17,7 +17,7 @@

An error has occurred!

Error 403

    -
  • This error means that the link was broken and that the page doesn't exist
  • +
  • This error means that you are forbidden to view this page.
  • To report this error, you can email the Koha administrator.
  • Use top menu bar to navigate to another part of Koha.
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/errors/404.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/errors/404.tt index d461462a6e..422aba3aa7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/errors/404.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/errors/404.tt @@ -15,11 +15,18 @@

An error has occurred!

-

Error 404

-
    -
  • This error means that the link was broken and that the page doesn't exist
  • -
  • To report this error, you can email the Koha administrator.
  • -
  • Use top menu bar to navigate to another part of Koha.
  • +

    Error 404

    +

    This message may have been caused by any of the following reasons:

    +
      +
    • You made use of an external link to an item that is no longer available
    • +
    • You followed an outdated link e.g. from a search engine or a bookmark
    • +
    • You tried to access a page that needs authentification
    • +
    • An internal link in the client is broken and the page does not exist
    • +
    +

    What's next?

    +
-- 2.39.5