[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
Fri Apr 9 18:10:12 CEST 2021


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #117329|0                           |1
        is obsolete|                            |

--- Comment #4 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 119413
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119413&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

Signed-off-by: Frank Hansen <frank.hansen at ub.lu.se>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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


More information about the Koha-bugs mailing list