doi_from_isbn#
- doi_from_isbn(value, *, strict=False)#
Creates a DOI (ISBN-A) from an ISBN.
The syntax of a the DOI (ISBN-A) corresponding to an ISBN is specified in DOI® System and the ISBN System.
Added in version 0.3.0.
Warning
This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.
- Parameters:
- valuestr
The ISBN to be converted.
- strictbool, default=False
If set, a
ValueErroris raised if an invalid ISBN is passed, otherwiseNoneis returned.
- Returns:
- str
The DOI (ISBN-A) of the given value.
Examples
>>> from marc21_learn.pid import doi_from_isbn >>> >>> doi_from_isbn("978-3-10-031815-2") '10.978.310/0318152'