From 12d7cde5dd5833167c512c51c19f9354e10c9c91 Mon Sep 17 00:00:00 2001
From: Owen Leonard
Date: Thu, 2 Feb 2012 12:59:22 -0500
Subject: [PATCH] Bug 7147 - Style Z39.50 search errors according to style patterns
Content-Type: text/plain; charset="utf-8"
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 :
[% ELSE %]
[% IF ( emptyserverlist ) %]
- You didn't select any Z39.50 target.
+ You didn't select any Z39.50 target.
[% ELSE %]
- [% FOREACH errcon IN errconn %]
- Connection failed to [% errcon.server %]
+ [% IF ( errconn ) %]
+
+
+ [% FOREACH errcon IN errconn %]
+ - Connection failed to [% errcon.server %]
+ [% END %]
+
+
[% END %]
[% END %]
- Nothing found. Try another search.
+
[% 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 :
[% ELSE %]
- [% IF ( emptyserverlist ) %]
- You didn't select any Z39.50 target.
- [% ELSE %]
- [% FOREACH errcon IN errconn %]
- Connection failed to [% errcon.server %]
- [% END %]
- [% END %]
- Nothing found.
+ [% IF ( errconn ) %]
+
+
+ [% FOREACH errcon IN errconn %]
+ - Connection failed to [% errcon.server %]
+ [% END %]
+
+
+ [% END %]
+ Nothing found.
[% END %]
--
1.7.3