From 2631eb337e6758e7c8aad3105048168564237f0c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 29 Oct 2024 14:37:52 +0000 Subject: [PATCH] Bug 38288: Fallback to Standard if FreeForm A regular openURL works fine: http://localhost:8080/cgi-bin/koha/opac-illrequests.pl?backend=Standard&title=Koha%20is%20cool&method=create&genre=article&openurl=1 Problem is existing third-party systems may be linking to Koha using FreeForm, not Standard Test plan: 1) Access the OPAC URL from above. 2) Notice it works. 3) Replace the word 'Standard' with 'FreeForm'. It no longer works. 4) Apply patch. Repeat. Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- opac/opac-illrequests.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 26be90a546b..bb746547a31 100755 --- a/opac/opac-illrequests.pl +++ b/opac/opac-illrequests.pl @@ -117,6 +117,7 @@ if ( $op eq 'list' ) { backends => $req->available_backends ); } else { + $params->{backend} = 'Standard' if $params->{backend} eq 'FreeForm'; my $request = Koha::ILL::Request->new ->load_backend($params->{backend}); -- 2.47.0