-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Description
The EPUB 3 metadata for identifiers uses the ONIX codelist 5 scheme to indicate the product identifier type (e.g., ISBN or DOI etc.). The pandoc supported list of scheme values could be updated to support newer values from ONIX codelist Issue 72 (published January 2026). The last supported value OLCC in the list has been added in ONIX codelist Issue 18 (published August 2012).
schemeToOnix :: Text -> Text
schemeToOnix "ISBN-10" = "02"
schemeToOnix "GTIN-13" = "03"
schemeToOnix "UPC" = "04"
schemeToOnix "ISMN-10" = "05"
schemeToOnix "DOI" = "06"
schemeToOnix "LCCN" = "13"
schemeToOnix "GTIN-14" = "14"
schemeToOnix "ISBN-13" = "15"
schemeToOnix "Legal deposit number" = "17"
schemeToOnix "URN" = "22"
schemeToOnix "OCLC" = "23"
schemeToOnix "ISMN-13" = "25"
schemeToOnix "ISBN-A" = "26"
schemeToOnix "JP" = "27"
schemeToOnix "OLCC" = "28"
schemeToOnix _ = "01"There is an HTML version available of the latest ONIX codelist Issue 72 at https://ns.editeur.org/onix/en/5. New additions to pandoc could be:
| Code | Heading |
|---|---|
29 |
JP Magazine ID |
30 |
UPC-12+5 |
31 |
BNF Control number |
34 |
ISSN-13 |
35 |
ARK |
36 |
Digital file internal version number |
I also noticed that code 24 Co-publisher’s ISBN-13 is missing from pandoc.
Reactions are currently unavailable