From 80c7a9fcf4e45224e86f44b063bbf96bb36986c0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 1 Aug 2024 16:37:45 +0100 Subject: [PATCH] Bug 37546: Output error message from ZOOM in Z3950 errors --- C4/Breeding.pm | 2 +- .../intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Breeding.pm b/C4/Breeding.pm index 8dbaae9fff3..86c5cbb5880 100644 --- a/C4/Breeding.pm +++ b/C4/Breeding.pm @@ -191,7 +191,7 @@ sub Z3950Search { push @errconn, { server => $servers[$k]->{servername}, error => $error, seq => $i+1 } if $error; } else { - push @errconn, { 'server' => $servers[$k]->{servername}, error => ( ( $oConnection[$k]->error_x() )[0] ), seq => $i+1 }; + push @errconn, { 'server' => $servers[$k]->{servername}, error => ( ( $oConnection[$k]->error_x() )[0] ), error_msg => ( ( $oConnection[$k]->error_x() )[1] ), seq => $i+1 }; } } } #if $numresults 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 d6b35e41b24..87dcc30f1a9 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 @@ -148,7 +148,7 @@ [% IF ( errcon.error == '10000' ) %]
  • Connection failed to [% errcon.server | html %]
  • [% ELSIF ( errcon.error == '10007' ) %]
  • Connection timeout to [% errcon.server | html %]
  • [% ELSIF errcon.error.match( '^XSLTH' ) %]
  • [% errcon.server | html %] record [% errcon.seq | html %]: [% PROCESS 'xslt-handler.inc' code=errcon.error %]
  • - [% ELSE %]
  • [% errcon.server | html %] record [% errcon.seq | html %]: [% errcon.error | html %]
  • + [% ELSE %]
  • [% errcon.server | html %] record [% errcon.seq | html %]: [% errcon.error | html %] - [% errcon.error_msg | html %]
  • [% END %] [% END %] -- 2.45.2