-
-[% INCLUDE 'opac-bottom.inc' %]
-[% BLOCK jsinclude %]
-[% END %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/errors/errorpage.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/errors/errorpage.tt
@@ -0,0 +1,81 @@
+NCLUDE 'doc-head-open.inc' %]
+
+[% INCLUDE 'doc-head-close.inc' %]
+[% BLOCK cssinclude %][% END %]
+
+
+[% INCLUDE 'masthead.inc' %]
+
+
+
+
+
+
+ [% IF ( OpacNav || OpacNavBottom ) %]
+
+
+ [% INCLUDE 'navigation.inc' %]
+
+
+
+ [% ELSE %]
+
+ [% END %]
+
+
Sorry, the requested page is not available
+
Error [% errno %]
+
This message can have following reason(s)
+
+ [% IF ( errno == 400 ) %]
+ - Koha is pointed an invalid link.
+ [% END %]
+
+ [% IF ( errno == 401 ) %]
+ - You are trying to access a link that you're not authorized to see.
+ - Try logging in to the catalog.
+ [% END %]
+
+ [% IF ( errno == 402 ) %]
+ - Koha is pointed an invalid link.
+ [% END %]
+
+ [% IF ( errno == 403 ) %]
+ - You are forbidden for some reason to see this page.
+ [% END %]
+
+ [% IF ( errno == 404 ) %]
+ - You made use of an external link to a catalog 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 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.
+ [% END %]
+
+
What's next?
+
+ [% IF ( errno == 401 ) %]
+ - Try logging in to the catalog.
+ [% 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.
+ - Return to the catalog home page.
+
+
Report issues and broken links
+
+ - To report this error, please contact the Koha Administrator.
+ Send email.
+
+
+
+
+
+
+
+[% INCLUDE 'opac-bottom.inc' %]
+[% BLOCK jsinclude %]
+[% END %]
--- a/opac/errors/400.pl
+++ a/opac/errors/400.pl
@@ -28,12 +28,15 @@ my $query = new CGI;
my $admin = C4::Context->preference('KohaAdminEmailAddress');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
- template_name => "errors/400.tt",
+ template_name => "errors/errorpage.tt",
query => $query,
type => "opac",
authnotrequired => 1,
debug => 1,
}
);
-$template->param( admin => $admin );
+$template->param (
+ admin => $admin,
+ errno => 400,
+);
output_with_http_headers $query, $cookie, $template->output, 'html', '400 Bad Request';
--- a/opac/errors/401.pl
+++ a/opac/errors/401.pl
@@ -28,12 +28,15 @@ my $query = new CGI;
my $admin = C4::Context->preference('KohaAdminEmailAddress');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
- template_name => "errors/401.tt",
+ template_name => "errors/errorpage.tt",
query => $query,
type => "opac",
authnotrequired => 1,
debug => 1,
}
);
-$template->param( admin => $admin );
+$template->param (
+ admin => $admin,
+ errno => 401,
+);
output_with_http_headers $query, $cookie, $template->output, 'html', '401 Unauthorized';
--- a/opac/errors/402.pl
+++ a/opac/errors/402.pl
@@ -28,12 +28,15 @@ my $query = new CGI;
my $admin = C4::Context->preference('KohaAdminEmailAddress');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
- template_name => "errors/402.tt",
+ template_name => "errors/errorpage.tt",
query => $query,
type => "opac",
authnotrequired => 1,
debug => 1,
}
);
-$template->param( admin => $admin );
+$template->param (
+ admin => $admin,
+ errno => 402,
+);
output_with_http_headers $query, $cookie, $template->output, 'html', '402 Payment Required';
--- a/opac/errors/403.pl
+++ a/opac/errors/403.pl
@@ -28,12 +28,15 @@ my $query = new CGI;
my $admin = C4::Context->preference('KohaAdminEmailAddress');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
- template_name => "errors/403.tt",
+ template_name => "errors/errorpage.tt",
query => $query,
type => "opac",
authnotrequired => 1,
debug => 1,
}
);
-$template->param( admin => $admin );
+$template->param (
+ admin => $admin,
+ errno => 403,
+);
output_with_http_headers $query, $cookie, $template->output, 'html', '403 Forbidden';
--- a/opac/errors/404.pl
+++ a/opac/errors/404.pl
@@ -28,12 +28,15 @@ my $query = new CGI;
my $admin = C4::Context->preference('KohaAdminEmailAddress');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
- template_name => "errors/404.tt",
+ template_name => "errors/errorpage.tt",
query => $query,
type => "opac",
authnotrequired => 1,
debug => 1,
}
);
-$template->param( admin => $admin );
+$template->param (
+ admin => $admin,
+ errno => 404,
+);
output_html_with_http_headers $query, $cookie, $template->output, '404 Not Found';
--- a/opac/errors/500.pl
+++ a/opac/errors/500.pl
@@ -28,12 +28,15 @@ my $query = new CGI;
my $admin = C4::Context->preference('KohaAdminEmailAddress');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
- template_name => "errors/500.tt",
+ template_name => "errors/errorpage.tt",
query => $query,
type => "opac",
authnotrequired => 1,
debug => 1,
}
);
-$template->param( admin => $admin );
+$template->param (
+ admin => $admin,
+ errno => 500,
+);
output_with_http_headers $query, $cookie, $template->output, 'html', '500 Internal Server Error';
--