Bugzilla – Attachment 169953 Details for
Bug 37546
We should output error messages alongside error codes for z39.50 errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37546: Output error message from ZOOM in Z3950 errors
Bug-37546-Output-error-message-from-ZOOM-in-Z3950-.patch (text/plain), 2.44 KB, created by
Martin Renvoize (ashimema)
on 2024-08-01 15:38:33 UTC
(
hide
)
Description:
Bug 37546: Output error message from ZOOM in Z3950 errors
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-08-01 15:38:33 UTC
Size:
2.44 KB
patch
obsolete
>From 80c7a9fcf4e45224e86f44b063bbf96bb36986c0 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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' ) %]<li>Connection failed to [% errcon.server | html %]</li> > [% ELSIF ( errcon.error == '10007' ) %]<li>Connection timeout to [% errcon.server | html %]</li> > [% ELSIF errcon.error.match( '^XSLTH' ) %]<li>[% errcon.server | html %] record [% errcon.seq | html %]: [% PROCESS 'xslt-handler.inc' code=errcon.error %]</li> >- [% ELSE %]<li>[% errcon.server | html %] record [% errcon.seq | html %]: [% errcon.error | html %]</li> >+ [% ELSE %]<li>[% errcon.server | html %] record [% errcon.seq | html %]: [% errcon.error | html %] - [% errcon.error_msg | html %]</li> > [% END %] > [% END %] > </ul> >-- >2.45.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37546
: 169953