[Koha-bugs] [Bug 13952] Import and export of authority types

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 25 06:11:09 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13952

--- Comment #21 from Aleisha Amohia <aleishaamohia at hotmail.com> ---
Just to explain further:
We worked out why Import wasn't working. The patch itself appears to be fine. 

When we try to Import and exported file, the database sees that authtypecode
already exists and instead of importing into a new authority type, it simply
updates the existing authority type with that authtypecode. This is why we see
no error when it doesn't work - it still 'worked', just didn't do what we
wanted it to do.

This means we must change the file itself so that authtypecode matches the Code
of our new authority type, however after spending way too long fiddling around,
we realised that LibreOffice formatted the file weirdly after saving and caused
errors in the file, so the Import didn't work properly. This is probably a
separate bug, regarding the way the code handles incorrectly formatted files
and the error message it shows.

Changing the authtype code in Vim did not stuff up the formatting and meant we
were able to Import correctly. So, the patch itself should work as long as all
the speechmarks etc. are in the right places after you have changed the
authtypecode to match your new authority type.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list