[Bug 22410] New: Software error while adding order on a MARC file record without an author
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 Bug ID: 22410 Summary: Software error while adding order on a MARC file record without an author Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Acquisitions Assignee: pierre-marc.thibault@inlibro.com Reporter: pierre-marc.thibault@inlibro.com QA Contact: testopia@bugs.koha-community.org CC: philippe.blouin@inlibro.com Target Milestone: --- When one wants to add an order on a record from a MARC file, if the record doesn't have a filled tag 100, it leads to a software error. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 --- Comment #1 from Pierre-Marc Thibault <pierre-marc.thibault@inlibro.com> --- Created attachment 85667 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=85667&action=edit Bug 22410: Skip normalizing author if the author is undefined Since a record can have a defined author or not and the code needs it at some point, a condition has been added. It verifies if records have an defined author (tag 100). If it's the case, the author is normalized. If not, that is skipped. Test plan: 1) Set the system preference z3950NormalizeAuthor at Copy. 2) Have at least one tag in the field. 3) Have a MARC file with at least 2 records without tag 100. They don't have to be in the same file. 4) Go to Tools > Stage MARC records for import. 5) Stage your file with the character encoding: MARC 8. 4) Go to Acquisitions and add an order to a basket from a staged file. 5) Click on "Add orders" from your file. 6) Click on "Add order" for a record. 7) Software error occurs. 8) Apply patch. 9) Click on "Add order" for another record. 10) Software error doesn't occur. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 Pierre-Marc Thibault <pierre-marc.thibault@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 Devinim <kohadevinim@devinim.com.tr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kohadevinim@devinim.com.tr --- Comment #2 from Devinim <kohadevinim@devinim.com.tr> --- Hi Pierre-Marc, We have followed your steps. However we didn't get any error as you mentioned in step 7. The MARC file without tag 100 inserted into the system without any error. Devinim Koha Team -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 --- Comment #3 from Pierre-Marc Thibault <pierre-marc.thibault@inlibro.com> --- This is strange because I get it consistently. On my own side, I create MARC files with records without tag 100 by going to "tools > Export data" and I can confirm there are no tags 100 in records before the software error with the MARC link after step 5. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wizzyrea@gmail.com --- Comment #4 from Liz Rea <wizzyrea@gmail.com> --- Hi Pierre, Are you cataloguing in UNIMARC? Could you provide some UNIMARC import files for us to test with, if so? Cheers, Liz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 --- Comment #5 from Pierre-Marc Thibault <pierre-marc.thibault@inlibro.com> --- (In reply to Liz Rea from comment #4)
Are you cataloguing in UNIMARC? Could you provide some UNIMARC import files for us to test with, if so?
If I check my preference marcflavour which is set at MARC21, I don't think so, but either way I will add my test file so I can have more feedback if it doesn't work, which I don't hope. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 --- Comment #6 from Pierre-Marc Thibault <pierre-marc.thibault@inlibro.com> --- Created attachment 87012 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=87012&action=edit MARC file test To use since test plan is not always reproductible. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion --- Comment #7 from Liz Rea <wizzyrea@gmail.com> --- Ok, Question. z3950NormalizeAuthor z3950AuthorAuthFields (modified) Copy|don't copy authors from the UNIMARC tags (separated by commas) [list of tags] to the correct author tags when importing a record using Z39.50. This feature is UNIMARC only? If your catalogue is MARC21, why would you have this preference set at all? Cheers, Liz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22410 Pierre-Marc Thibault <pierre-marc.thibault@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |RESOLVED Resolution|--- |INVALID --- Comment #8 from Pierre-Marc Thibault <pierre-marc.thibault@inlibro.com> --- Hi Liz, I read your last comment and it seems like the patch problem wasn't a problem in the end. By talking with a co-worker, I realize the software error occurred because z3950NormalizeAuthor was set to Copy while marcflavour was at MARC21. I didn't think a configuration problem could lead to this so I tried to make the error disappears with this configuration. I will close this ticket since the problem is irrelevant and I can change z3950NormalizeAuthor to fix my problem. Thank you for your feedback. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org