[Koha-bugs] [Bug 27774] Always remove hyphens from ISBN when cataloging

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 24 16:49:36 CET 2021


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

--- Comment #2 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 117277
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117277&action=edit
Bug 27774: Always remove hyphens from ISBN when cataloging

Actually hyphens are removed from ISBN when using acquisition or z3950
cataloguing or with bulkmarcimport.
I propose to add this behavior in TransformMarcToKoha() so MARC data is
unchanged, but biblioitems.isbn is without hyphens. This can be used if search
using SQL and in reports.

We may after this remove other codes that remove hyphens before
cataloguing a biblio record.

Test plan :
1) Create a new record with an ISBN with hyphen, ie 978-0008376109
2) Save
3) Export to MARCXML and see ISBN has hyphen
4) Look into database : select isbn from biblioitems where
   bilionumber=xxx
5) Check you see ISBN without hyphen

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


More information about the Koha-bugs mailing list