From 6d6c4cc12c574e0b659046c36163352b78188e07 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 3 Jul 2024 17:46:50 +0000 Subject: [PATCH] Bug 37235: Fix export of single authority record When viewing an authority record, you have the option to "Save" in several different formats. This operation is a GET operation and the script should not be looking for a "cud-" operation. To test you should have at least one authority record. - Apply the patch and go to Authorities. - Perform an authority search which will return one or more records. - View the details of an authority record. - From the toolbar, test the "Save" option* * Note: In my test the export choice "MADS (XML)" resulted in a zero-byte file but I'm assuming that is a separate issue. Sponsored-by: Athens County Public Libraries Signed-off-by: Caroline Cyr La Rose Signed-off-by: Pedro Amorim Signed-off-by: Katrin Fischer --- authorities/export.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/export.pl b/authorities/export.pl index 70a5157140..0703da840b 100755 --- a/authorities/export.pl +++ b/authorities/export.pl @@ -20,7 +20,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $op = $query->param("op"); my $format = $query->param("format"); my $error = ''; -if ( $op eq "cud-export" ) { +if ( $op eq "export" ) { my $authid = $query->param("authid"); if ($authid) { -- 2.39.5