From c4a3398d5a2fb85aafc2a8cade2fc0977ad2772e Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 6 Mar 2024 09:55:18 +0000 Subject: [PATCH] Bug 36241: Fix wrong cud-search This line is supposed to searhc for plugins with the method 'provides_api' which returns a {type => 'search'} entry among others. This has nothing to do with search vs cud-search from in forms Signed-off-by: Martin Renvoize --- ill/ill-requests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index d9278b6db8f..1179c854255 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -531,7 +531,7 @@ sub get_metadata_enrichment { my @services = (); foreach my $plugin(@candidates) { my $supported = $plugin->provides_api(); - if ($supported->{type} eq 'cud-search') { + if ($supported->{type} eq 'search') { push @services, $supported; } } -- 2.44.0