Bug 28955: (follow-up) Set to fall back
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / errors / errorpage.tt
1 [% USE AdditionalContents %]
2 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
3 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>An error has occurred &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
8 </head>
9 <body id="error[% errno | html %]" class="error">
10 [% INCLUDE 'masthead.inc' %]
11
12     <div class="main">
13         <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
14             <ol class="breadcrumb">
15                 <li class="breadcrumb-item">
16                     <a href="/cgi-bin/koha/opac-main.pl">Home</a>
17                 </li>
18                 <li class="breadcrumb-item active">
19                     <a href="#" aria-current="page">Error [% errno | html %]</a>
20                 </li>
21             </ol>
22         </nav> <!-- /#breadcrumbs -->
23
24         <div class="container-fluid">
25             <div class="row">
26                 [% IF ( OpacNav || OpacNavBottom ) %]
27                     <div class="col-lg-2">
28                         <div id="navigation">
29                             [% INCLUDE 'navigation.inc' %]
30                         </div>
31                     </div>
32                    <div class="col-10 order-first order-md-first order-lg-2">
33                 [% ELSE %]
34                     <div class="col order-first order-md-first order-lg-2">
35                 [% END %]
36                     <div id="errormsg[% errno | html %]">
37                         <h1>Sorry, the requested page is not available</h1>
38                         <h2>Error [% errno | html %]</h2>
39                         <p><strong>This message can have the following reason(s):</strong></p>
40                         <ul>
41                             [% IF ( errno == 400 ) %]
42                                 <li>The link is broken and the page does not exist.</li>
43                             [% END %]
44
45                             [% IF ( errno == 401 ) %]
46                                 <li>You are not authorized to view this page.</li>
47                             [% END %]
48
49                             [% IF ( errno == 402 ) %]
50                                <li>The link is invalid.</li>
51                             [% END %]
52
53                             [% IF ( errno == 403 ) %]
54                                 <li>You are forbidden to view this page.</li>
55                             [% END %]
56
57                             [% IF ( errno == 404 ) %]
58                                 <li>You made use of an external link to a catalog item that is no longer available.</li>
59                                 <li>You followed an outdated link e.g. from a search engine or a bookmark.</li>
60                                 <li>You tried to access a page that needs authentication.</li>
61                                 <li>An internal link in our catalog home page is broken and the page does not exist.</li>
62                             [% END %]
63                             [% IF ( errno == 500 ) %]
64                                 <li>An error occurred while processing your request.</li>
65                             [% END %]
66                         </ul>
67                         <h2>What's next?</h2>
68                         <ul>
69                             [% IF ( errno == 401 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
70                                 <li>Please log in to the catalog and try again. <a href="/cgi-bin/koha/opac-user.pl">Login page</a></li>
71                             [% END %]
72                             <li>You can use the menu and links at the top of the page</li>
73                             <li>You can search our catalog using the search form at the top of this page.</li>
74                             <li><a href="/cgi-bin/koha/opac-main.pl">Return to the catalog home page.</a></li>
75                         </ul>
76                         <h2>Report issues and broken links</h2>
77                         <ul>
78                             <li>To report this error, please contact the Koha Administrator.
79                                     <a href="mailto:[% admin | uri %]">Send email</a>.</li>
80                         </ul>
81                     </div> <!-- / #errormsg[% errno | html %] -->
82                 </div> <!-- / .col-lg10/12 -->
83             </div> <!-- / .row -->
84         </div> <!-- / .container-fluid -->
85     </div> <!-- / .main -->
86
87 [% INCLUDE 'opac-bottom.inc' %]
88 [% BLOCK jsinclude %]
89 [% END %]