From 7040a0ed72ffdf529ec2f14368948e98d4ee8b1f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 20 Jun 2024 12:54:31 -0400 Subject: [PATCH] Bug 37145: Koha ERM data provider name search broken This is broken because the FQDN for the service has changed and we do not handle the 301 gracefully. Test Plan: 1) Browser to ERM / eUsage / Data roviders 2) Click "New data provider" 3) Start typing anything into "Data provider name" 4) Note the error: "Something went wrong: Error: Internal Server Error." 5) Apply this patch 6) Restart all the things! 7) Repeat step 3 8) No error! --- Koha/REST/V1/ERM/EUsage/CounterRegistry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1/ERM/EUsage/CounterRegistry.pm b/Koha/REST/V1/ERM/EUsage/CounterRegistry.pm index d29ebd29a82..3804b79749e 100644 --- a/Koha/REST/V1/ERM/EUsage/CounterRegistry.pm +++ b/Koha/REST/V1/ERM/EUsage/CounterRegistry.pm @@ -47,7 +47,7 @@ sub list { my $search_string = $query_params_array[0]->{name}; - my $url = 'https://registry.projectcounter.org/api/v1/platform/'; + my $url = 'https://registry.countermetrics.org/api/v1/platform/'; my $request = HTTP::Request->new( GET => $url, ); -- 2.30.2