Create, close, cancel, Purchase Orders (UXPROD-1141)

[ISBNUTIL-9] Add method to explicitly strip hyphens Created: 08/Oct/19  Updated: 05/Nov/19  Resolved: 09/Oct/19

Status: Closed
Project: isbn-util
Components: None
Affects versions: None
Fix versions: 1.2.0
Parent: Create, close, cancel, Purchase Orders

Type: Story Priority: P3
Reporter: Craig McNally Assignee: Craig McNally
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to MODINV-166 ISBN API - explicitly strip hyphens w... Open
Sprint: ACQ Sprint 74
Story Points: 1
Development Team: Thunderjet
Tester Assignee: Craig McNally
Epic Link: Create, close, cancel, Purchase Orders

 Description   

Overview

Currently the utils don't provide a way to remove hyphens from a valid ISBN (10 or 13), without also converting them.

The use case is:
Given an ISBN, validate and convert to ISBN 13 w/o hyphens.

  • if a valid ISBN 10, convert to an ISBN 13 w/o hyphens
  • if a valid ISBN 13, return the ISBN 13 w/o hyphens

The convertTo13DigitNumber(String) function only accepts valid ISBN 10s. Anything else (including a valid ISBN 13) will give you null.

The ability to insert hyphens already exists with the insertHyphens(String) method. We should have a corresponding removeHyphens(String) method.

Acceptance Criteria

  • the ability to explicitly remove hyphens from either a 10 or 13 digit ISBN has been added
  • unit tests are updated
  • a new version of the utils has been released (v1.1.1?)


 Comments   
Comment by Ann-Marie Breaux (Inactive) [ 08/Oct/19 ]

Oleksii Kuzminov and Kateryna Senchenko Just FYI - Thunderjet is dong the work on this. Hopefully you saw lots of good things with all the Thunderjet usage of the ISBN utility during the sprint demo!!

Comment by Craig McNally [ 09/Oct/19 ]

This made it into https://github.com/folio-org/folio-isbn-util/releases/tag/v1.2.0

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