From d5960ec6f1a01068763cb980c21bfafe7ed84dfb 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 Signed-off-by: Katrin Fischer --- opac/opac-illrequests.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 26be90a546..bb746547a3 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.39.5