From a733d004629b9f903c35cb08d8bfeef81aa9f8df Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 11 Jan 2019 14:50:47 +0000 Subject: [PATCH] Bug 20640: (follow-up) Make error message translatable Signed-off-by: Katrin Fischer --- ill/ill-requests.pl | 9 +++------ koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 9 +++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index 792b93d241..ed008c1e17 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -103,15 +103,12 @@ if ( $backends_available ) { # backend failure $backend_result = { stage => 'commit', - next => 'illview', - error => { - message => 'Migrating to backedn does not support migrate', - status => 'Migrating to backedn does not support migrate' - } + next => 'illview' }; $template->param( whole => $backend_result, - request => $request + request => $request, + error => 'migrate_target' ); } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 5f707fee52..63d58c7f46 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -502,6 +502,15 @@ [% ELSIF query_type == 'illview' %] [% req_status = request.status %] + + [% IF error %] + [% IF error == 'migrate_target' %] +
+ The backend you tried to migrate to does not yet support migrations, please try again with an alternative target. +
+ [% END %] + [% END %] +

Manage ILL request