From 961cdd90cd89cdf2c379e833be185e0d5aede622 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Wed, 6 Jan 2016 06:35:35 +0100 Subject: [PATCH] Bug 15288: (followup) Better wording for OPAC error page This patch changes the wording of the OPAC error page (See Bug 14573). Additionally, it displays the link to the login page only if the system preference 'opacuserlogin' is set. To test: - Apply patch - Review koha-tmpl/opac-tmpl/bootstrap/en/modules/errors/errorpage.tt Signed-off-by: Bernardo Gonzalez Kriegel No errors Signed-off-by: Marcel de Rooy Amended: Replaced following reasons by 'the following reasons'. Reads better. Signed-off-by: Brendan A Gallagher --- .../bootstrap/en/modules/errors/errorpage.tt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/errors/errorpage.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/errors/errorpage.tt index 63ede2d97d..bfd6275481 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/errors/errorpage.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/errors/errorpage.tt @@ -1,4 +1,4 @@ -NCLUDE 'doc-head-open.inc' %] +[% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › An error has occurred [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] @@ -27,23 +27,22 @@ NCLUDE 'doc-head-open.inc' %]

Sorry, the requested page is not available

Error [% errno %]

-

This message can have following reason(s)

+

This message can have the following reason(s):

    [% IF ( errno == 400 ) %] -
  • Koha is pointed an invalid link.
  • +
  • The link is broken and the page does not exist.
  • [% END %] [% IF ( errno == 401 ) %] -
  • You are trying to access a link that you're not authorized to see.
  • -
  • Try logging in to the catalog.
  • +
  • You are not authorized to view this page.
  • [% END %] [% IF ( errno == 402 ) %] -
  • Koha is pointed an invalid link.
  • +
  • The link is invalid.
  • [% END %] [% IF ( errno == 403 ) %] -
  • You are forbidden for some reason to see this page.
  • +
  • You are forbidden to view this page.
  • [% END %] [% IF ( errno == 404 ) %] @@ -53,13 +52,13 @@ NCLUDE 'doc-head-open.inc' %]
  • An internal link in our catalog home page is broken and the page does not exist.
  • [% END %] [% IF ( errno == 500 ) %] -
  • An error occurred while try to process your request.
  • +
  • An error occurred while processing your request.
  • [% END %]

What's next?

    - [% IF ( errno == 401 ) %] -
  • Try logging in to the catalog.
  • + [% IF ( errno == 401 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) %] +
  • Please log in to the catalog and try again. Login page
  • [% END %]
  • You can use the menu and links at the top of the page
  • You can search our catalog using the search form at the top of this page.
  • -- 2.39.5