Batch Importer (Bib/Acq) (UXPROD-47)

[ISBNUTIL-5] Insert hyphens into ISBN Created: 21/Dec/18  Updated: 20/Mar/19  Resolved: 13/Mar/19

Status: Closed
Project: isbn-util
Components: None
Affects versions: None
Fix versions: 1.1.0
Parent: Batch Importer (Bib/Acq)

Type: Story Priority: P3
Reporter: Julian Ladisch Assignee: Ruslan Lavrov
Resolution: Done Votes: 0
Labels: ISBN, epam-folijet
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to ISBNUTIL-4 SPIKE: review the Java Apache Commons... Closed
relates to UXPROD-1394 ISBN normalization: Refinement Closed
Sprint: EPAM BatchLoader Sprint 12
Story Points: 2
Development Team: Folijet
Epic Link: Batch Importer (Bib/Acq)

 Description   

The ISBN User's Manual says: "The elements should each be separated clearly by hyphens or spaces when displayed in human readable form" https://www.isbn-international.org/content/isbn-users-manual

"The ISBN range message is available as a machine-readable xml file with built-in DTD provided for validation. […] This information provides a computer system with the necessary data to split 13 digit ISBNs issued by any national ISBN agency into the segments":
https://www.isbn-international.org/range_file_generation

Whether FOLIO wants to follow the recommendation to show ISBN with hyphens in the UI has yet to be decided.



 Comments   
Comment by Ann-Marie Breaux (Inactive) [ 02/Jan/19 ]

I'm blocking this story until we have a better understanding of whether this is needed by FOLIO users. Will post a question to Discuss.

Comment by Julian Ladisch [ 09/Jan/19 ]

Discuss post: https://discuss.folio.org/t/isbns-with-hyphens/2297

Comment by Julian Ladisch [ 10/Jan/19 ]

https://github.com/ladutsko/isbn-core is a Java Library with Apache 2.0 compatible license (MIT) and is available from https://mvnrepository.com/artifact/com.github.ladutsko/isbn-core
It has good code to hyphenate ISBNs: https://github.com/ladutsko/isbn-core/blob/master/src/main/java/com/github/ladutsko/isbn/ISBNFormat.java
Examples are in the unit tests: https://github.com/ladutsko/isbn-core/blob/master/src/test/java/com/github/ladutsko/isbn/FormatISBNTest.java

(Note that the other code in ISBN.java is worse than the Common Apache Validator code, see https://folio-org.atlassian.net/browse/ISBNUTIL-4 .)

Generated at Thu Feb 08 22:25:20 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.