I'm getting a 500 error when I try to "save" (i.e. download) an authority record. To recreate: 1. Go to Authorities 2. Search for an authority 3. Click on the authority header to access the detailed record page (authorities/detail.pl?authid=XXXX) 4. Click Save > MADS (XML) --> Error 500 5. Redo step 4 with the other formats (MARCXML, MARC (non-Unicode/MARC-8), MARC (Unicode/UTF8) --> Error 500 I get this on KTD with both Zebra and ES7.
https://git.koha-community.org/Koha-community/Koha/src/branch/main/authorities/export.pl#L23
Created attachment 168468 [details] [review] 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
Created attachment 168469 [details] [review] 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 <caroline.cyr-la-rose@inlibro.com>
Created attachment 168551 [details] [review] 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 <caroline.cyr-la-rose@inlibro.com> Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Pushed for 24.11! Well done everyone, thank you!
Backported to 24.05.x for upcoming 24.05.06
Not for 23.11.x