https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44073
Bug ID: 44073
Summary: Automatic linker ignores the INVALID_METADATA status
returned for unrepairable records
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Cataloging
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Target Milestone: ---
Follow-up to bug 43776.
Bug 43776 changes svc/cataloguing/automatic_linker.pl to return { "status":
"INVALID_METADATA" } when the posted form data cannot be turned into a valid
record. The caller in
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt only handles
the statuses UNAUTHORIZED and OK in its success switch, so INVALID_METADATA is
silently ignored: the cataloguer clicks the automatic linker and nothing
visibly happens.
Fix: add an INVALID_METADATA case to the switch that tells the cataloguer the
record contains data that cannot be saved, and that the heading links could not
be updated.
Test plan:
1. Apply the patch (and bug 43776).
2. Open a record in the basic cataloguing editor.
3. Make the form data unrepairable (for example put a control character in the
leader, field 000).
4. Run the automatic linker.
5. Confirm a clear message is shown instead of nothing happening.
6. Run the automatic linker on a valid record and confirm it still updates the
heading links.
Sponsored-by: OpenFifth
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/