From cd4aa38525dac7ce73052b721eccccb0f31452eb 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.
Signed-off-by: Jared Camins-Esakov
---
.../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.2.5