[Koha-patches] [PATCH] Bug 7147 - Style Z39.50 search errors according to style patterns

Owen Leonard oleonard at myacpl.org
Thu Feb 2 19:01:37 CET 2012


Styles Z39.50 errors and messages in the standard style.
---
 .../prog/en/modules/acqui/z3950_search.tt          |   14 ++++++++++----
 .../prog/en/modules/cataloguing/z3950_search.tt    |   18 ++++++++++--------
 2 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt
index 1f2ad60..3ce3e63 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt
@@ -156,13 +156,19 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
 </table>
     [% ELSE %]
         [% IF ( emptyserverlist ) %]
-            You didn't select any Z39.50 target.
+            <div class="dialog alert">You didn't select any Z39.50 target.</div>
         [% ELSE %]
-            [% FOREACH errcon IN errconn %]
-                Connection failed to [% errcon.server %]
+            [% IF ( errconn ) %]
+                <div class="dialog alert">
+                    <ul>
+                    [% FOREACH errcon IN errconn %]
+                        <li>Connection failed to [% errcon.server %]</li>
+                    [% END %]
+                    </ul>
+                </div>
             [% END %]
         [% END %]
-        <p>Nothing found. <a href="javascript: history.back()">Try another search</a>.</p>
+        <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
     [% END %]
 
 
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
index 6eb4b50..7775f1f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
@@ -162,14 +162,16 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
 </table>
 <p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_search.pl"><input type="hidden" name="biblionumber" value="[% biblionumber %]"/><input type="hidden" name="frameworkcode" value="[% frameworkcode %]"/><input type="submit" value="Try Another Search"/></form></p>
     [% ELSE %]
-        [% IF ( emptyserverlist ) %]
-            You didn't select any Z39.50 target.
-        [% ELSE %]
-            [% FOREACH errcon IN errconn %]
-                Connection failed to [% errcon.server %]
-            [% END %]
-        [% END %]
-	<p>Nothing found.</p>
+        [% IF ( errconn ) %]
+            <div class="dialog alert">
+                <ul>
+                [% FOREACH errcon IN errconn %]
+                    <li>Connection failed to [% errcon.server %]</li>
+                [% END %]
+                </ul>
+            </div>
+         [% END %]
+   <div class="dialog message">Nothing found.</div>
 	<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_search.pl"><input type="hidden" name="biblionumber" value="[% biblionumber %]"/><input type="hidden" name="frameworkcode" value="[% frameworkcode %]"/><input type="submit" value="Try Another Search"/></form></p>
     [% END %]
 
-- 
1.7.3



More information about the Koha-patches mailing list