[Koha-patches] [PATCH] Bug 4098: Fixes missing error templates.

Garry Collum gcollum at gmail.com
Tue Feb 2 23:21:38 CET 2010


Adds the missing 402.tmpl.
Fixes the <h4> element in 400, 401, 403, and 500, all of which displayed 404.
---
 .../opac-tmpl/prog/en/modules/errors/400.tmpl      |    2 +-
 .../opac-tmpl/prog/en/modules/errors/401.tmpl      |    2 +-
 .../opac-tmpl/prog/en/modules/errors/402.tmpl      |   29 ++++++++++++++++++++
 .../opac-tmpl/prog/en/modules/errors/403.tmpl      |    2 +-
 .../opac-tmpl/prog/en/modules/errors/500.tmpl      |    2 +-
 5 files changed, 33 insertions(+), 4 deletions(-)
 create mode 100644 koha-tmpl/opac-tmpl/prog/en/modules/errors/402.tmpl

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/errors/400.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/errors/400.tmpl
index b4a0c90..49fd9e6 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/errors/400.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/errors/400.tmpl
@@ -10,7 +10,7 @@
         <div id="yui-main">
         <div class="yui-b"><div class="yui-g">
             <h3>An Error has Occurred</h3>
-            <h4>Error 404</h4>
+            <h4>Error 400</h4>
             <ul>
                 <li>This error means that the Koha is pointed an invalid link.</li>
                 <li>To report this error, you can 
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/errors/401.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/errors/401.tmpl
index 7d70c01..73ed72b 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/errors/401.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/errors/401.tmpl
@@ -10,7 +10,7 @@
         <div id="yui-main">
         <div class="yui-b"><div class="yui-g">
             <h3>An Error has Occurred</h3>
-            <h4>Error 404</h4>
+            <h4>Error 401</h4>
             <ul>
                 <li>This error means that the you are trying to access a link that you're not authorized to see.</li>
                 <li>Try logging in to the catalog</li>
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/errors/402.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/errors/402.tmpl
new file mode 100644
index 0000000..13eb795
--- /dev/null
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/errors/402.tmpl
@@ -0,0 +1,29 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  An Error Has Occurred
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body>
+<!--TMPL_INCLUDE NAME="masthead.inc" -->
+<!--TMPL_INCLUDE NAME="navigation.inc" -->
+
+<div id="doc3" class="yui-t1">
+   <div id="bd">
+        <div id="yui-main">
+        <div class="yui-b"><div class="yui-g">
+            <h3>An Error has Occurred</h3>
+            <h4>Error 402</h4>
+            <ul>
+                <li>This error means that the Koha is pointed an invalid link.</li>
+                <li>To report this error, you can 
+                        <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+                <li>Use top menu bar to navigate to another part of Koha.</li>
+            </ul>
+        </div>
+        </div>
+        </div>
+    </div>
+</div>
+
+<!-- <div id="main"> -->
+<!-- </div> -->
+</body>
+</html>
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/errors/403.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/errors/403.tmpl
index d8fc6b2..81b15da 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/errors/403.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/errors/403.tmpl
@@ -10,7 +10,7 @@
         <div id="yui-main">
         <div class="yui-b"><div class="yui-g">
             <h3>An Error has Occurred</h3>
-            <h4>Error 404</h4>
+            <h4>Error 403</h4>
             <ul>
                 <li>This error means that you are forbidden for some reason to see this page.</li>
                 <li>To report this error, you can 
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/errors/500.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/errors/500.tmpl
index 27121ff..f96e407 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/errors/500.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/errors/500.tmpl
@@ -10,7 +10,7 @@
         <div id="yui-main">
         <div class="yui-b"><div class="yui-g">
             <h3>An Error has Occurred</h3>
-            <h4>Error 404</h4>
+            <h4>Error 500</h4>
             <ul>
                 <li>An error occurred while try to process your request.</li>
                 <li>To report this error, you can 
-- 
1.5.6.5




More information about the Koha-patches mailing list