Skip to content

OCLC numbers are converted to int in a way that is ... probably not right #26

@aelkiss

Description

@aelkiss

TO_INT = ->(str) do
begin
Integer(str, 10)
rescue
9999
end
end

I didn't see any in the table with OCN 9999, but it implies that OCNs are:

  • limited to 10 digits max
  • if they aren't parseable as integers, changed to 9999

That is not how OCNs should work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions