https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44073
--- Comment #2 from Adolfo RodrÃguez Taboada <[email protected]> --- Created attachment 211548 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211548&action=edit Bug 44073: Tell the cataloguer when the automatic linker cannot run Bug 43776 makes svc/cataloguing/automatic_linker.pl return { "status": "INVALID_METADATA" } when the posted form data cannot be turned into a valid record. The caller in addbiblio.tt only handled UNAUTHORIZED and OK, so for INVALID_METADATA nothing visible happened when the cataloguer clicked "Link authorities automatically". Add an INVALID_METADATA case that shows a clear message. To test: 1. Apply the patch (and bug 43776) and restart_all 2. Open a new record in the basic cataloguing editor 3. Make the data unrepairable, for example put a control character (0x1F) in the leader 4. Click "Link authorities automatically" => A message says the heading links could not be updated because the record contains data that cannot be saved 5. On a valid record, click it again => Heading links are updated as before 6. yarn cypress run --spec t/cypress/integration/Cataloguing/AutomaticLinker_spec.ts => SUCCESS: Tests pass Sponsored-by: OpenFifth Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Adolfo RodrÃguez <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
