Home
Blog
Overview of all products
SalesData
LibraryData
CataList
Loan Stars
BiblioShare
Webform
EDI
Products for publishers
Products for retailers
Products for libraries
Information for authors
BNC Research
Canadian literary awards
SalesData & LibraryData Research Portal
Events
Tech Forum
Webinars & Training
Code of Conduct
Standards
EDI standards
Product identifiers
Classification schemes
ONIX standards
About
Contact us
Media
Bestseller lists
Newsletters
Podcast
Jobs
SalesData
LibraryData
CataList
BiblioShare
Webform
EDI

BookNet Canada

Home
Blog
Overview of all products
SalesData
LibraryData
CataList
Loan Stars
BiblioShare
Webform
EDI
Products for publishers
Products for retailers
Products for libraries
Information for authors
BNC Research
Canadian literary awards
SalesData & LibraryData Research Portal
Events
Tech Forum
Webinars & Training
Code of Conduct
Standards
EDI standards
Product identifiers
Classification schemes
ONIX standards
About
Contact us
Media
Bestseller lists
Newsletters
Podcast
Jobs
SalesData
LibraryData
CataList
BiblioShare
Webform
EDI
Graham Bell, EDItEUR
November 23, 2023
ONIX, Standards & Metadata

Checking a problematic ONIX file: Part two

Graham Bell, EDItEUR
November 23, 2023
ONIX, Standards & Metadata

The following post was featured in the international ONIX implementation group — a mailing list that you really should follow for ONIX announcements and discussion. Want to stay on top of ONIX implementation issues in a global discussion led by EDItEUR? Join the group here.

This is a continuation of Checking a problematic ONIX file: Part one.

5. Validation of the ONIX file did not reveal that imprint and publisher composites were not correctly structured, but a quick visual check of the file did:

<Imprint>

    <NameCodeType>01</NameCodeType>

    <NameCodeValue>Grylloidea Books</NameCodeValue>

</Imprint>

Amazingly this appears to be valid in ONIX 2.1 if you validate it with the DTD, but it doesn’t really match the requirements of the Specification. The name of the imprint — presumed to be “Grylloidea Books” — should be in an <ImprintName> tag. It is valid to include a <NameCodeType> of 01, but this should be accompanied by a <NameCodeTypeName> (that is, the name of the code scheme that identifies various imprints), and a proper <NameCodeValue>, something like this...

<Imprint>

    <NameCodeType>01</NameCodeType>

    <NameCodeTypeName>Orthoptera Publishing Imprint Code</NameCodeTypeName>

    <NameCodeValue>GRYL</NameCodeValue>

    <ImprintName>Grylloidea Books</ImprintName>

</Imprint>

This error may betray a misunderstanding of the difference between a name and an identifier. Names are primarily textual, and as such they can be subject to some level of ambiguity and are prone to typing errors, whereas identifiers are usually short alphanumeric codes that *stand in* for the name when no ambiguity can be allowed. There are many other people with the name “Graham Bell,” but only I can be identified with the ISNI 0000000427566266. Additionally, since there isn’t any global standard for imprint identifiers, this is a proprietary identifier scheme (type 01) within which GRYL is Grylloidea Books and maybe ACRD is a different imprint Acridoidea Books. Here the imprint identifiers GRYL and ACRD are there to guard against misspellings in the imprint names, and they can be taken from a controlled vocabulary (i.e., from an exhaustive list of all the publisher's imprints).

 

6. Finally in the problematic ONIX file, the <SupplyDetail> composite has a range of issues. One of the main reasons for sending ONIX metadata is to communicate the commercial details necessary to buy and sell the product — markets and distribution arrangements, suppliers, prices, and so on — and the ONIX is useless to many recipients unless those commercial details are correct. (Of course there are some recipients, some libraries for example, for whom the commercial details are less important.)

First, in ONIX, the <Supplier> is the organisation that supplies copies to a retailer. In this case, the <Supplier> is named as Amazon. Of course, Amazon is (we can assume) the retailer. Given that this is (according to <ProductForm> and <EpubType>) an ebook in the Kindle format, and thus may in fact be exclusive to Amazon, some leeway must be allowed. And this may well explain the fact that the file is ONIX 2.1, since that is what Amazon still expects in its Kindle ecosystem (though it accepts ONIX 3.0 for most or all Audible data, and requires ONIX 3.0 for physical product…). Yet ONIX 2.1 isn’t ideal for ebooks — better description of digital products was perhaps the main reason that ONIX 3.0 was developed in the first place!

Second, the book is saleable everywhere — the <SalesRights> are specified as being WORLD — but only a single Canadian price is supplied:

<Price>

<PriceTypeCode>41</PriceTypeCode> <!-- This should match the price type that you are configured to sell -->

<PriceAmount>8.74</PriceAmount>

<CurrencyCode>CDN</CurrencyCode>

<CountryCode>CA</CountryCode>

<!-- Note, if you supply CountryCode, do not also supply Territory -->

</Price>

Again, some leeway might be allowed, as the retailer will most likely convert prices to other currencies for sales to customers other countries. However, the price is deliberately marked with the CA country code, indicating it is only valid in Canada. There is some confusion here — can the book be sold elsewhere? If so, at what price? It's an agency price too (Price type code 41), so the publisher is claiming complete control over the price set for sales to all global consumers — without specifying what those prices are.

 

7. Lastly, and perhaps most difficult to understand, the currency code supplied is...

<CurrencyCode>CDN</CurrencyCode>

The correct code for Canadian Dollars is CAD.

Now, I’ve also deliberately left a couple of comments in the <Price> sample above. These, and the CDN mistake suggest that perhaps this ONIX was edited by hand, most likely based on some template created by or supplied to the publisher, where the template itself contains some basic instructions on how to fill it in. Editing ONIX by hand is possible — after all, and XML is just plain text, and it can be edited in software as simple as Windows Notepad or in TextEdit on a Mac. However, editing by hand is fraught with issues unless you have a very good understanding of ONIX, and a template-driven approach isn’t usually a good one — it might work provided the template were customised to a particular publisher which only publishes a narrow range of product types or book genres, but a single template covering the needs of a broad range of publishers and publishing sectors is going to be complex. Kids’ books demand some data elements that adult books don’t. STEM textbooks are different from scholarly Open Access. In any case, hand editing is always error-prone.

Most publishers will use some kind of in-house or online application to enter, collate and export their ONIX metadata, and the developers of that application build their knowledge of ONIX into the system — ideally ensuring that the system cannot output invalid ONIX. Codes like CAD would be picked from menus, the structure of composites like <Imprint> would be controlled so they meet the requirements of the Specification, and applications can use XML validation and cross-check dependencies like prices and sales rights.

And one final point. The problematic ONIX was sent to us by an EDItEUR member, but their (and our) attempts to get in touch with the original publisher that created the data — in order to help them improve their output — were unsuccessful. EDItEUR encourages recipients of poor ONIX to feed guidance back to the original data suppliers wherever possible, and similarly data senders should push back against non-standard requirements set by recipients. Without this, the standard itself loses cohesion and leads to the much-discussed “flavours of ONIX” issues that add cost to the supply chain. So if you’re a data sender, do provide the necessary details to get in touch, within the ONIX <Header> — in the Sender Contact name and email address (<FromPerson> and <FromEmail> in ONIX 2.1) — and monitor the responses from your data recipients. It can also be useful to add the name of the IT system, application, or software developer in the <MessageNote>.

 

Graham Bell is Executive Director of EDItEUR, responsible for the overall development of EDItEUR’s standards and the management services it provides on behalf of other standards agencies (including the International ISNI agency and the International DOI Foundation).

He joined EDItEUR as its Chief Data Architect in 2010, focused on the continuing development and application of ONIX for Books, and on other EDItEUR standards for both the book and serials sectors.

Subscribe

Don’t miss any new blog posts. Sign up for our weekly eNews to receive updates.

You can unsubscribe at any time. We respect your privacy.

Thank you!
Recent posts
Podcast: A conversation about the present and future of audiobooks
Podcast: A conversation about the present and future of audiobooks

What’s trending for audiobooks in 2026?

Read more →
Have you heard? There's a new way to identify Canadian publishers using BISAC Merchandising Codes
Have you heard? There's a new way to identify Canadian publishers using BISAC Merchandising Codes

ICYMI, the Book Industry Study Group (BISG) published the 2025 update to its book publishing subject codes.

Read more →
Scrolling stories: Ebook use in Canada 2025
Scrolling stories: Ebook use in Canada 2025

Get a free copy of the study today!

Read more →
July 2026 Loan Stars Adult Canadian top picks
July 2026 Loan Stars Adult Canadian top picks

Find out which titles made it to the July 2026 Loan Stars Adult Canadian list.

Read more →
You are special: Using ONIX to effectively identify special editions in the marketplace
You are special: Using ONIX to effectively identify special editions in the marketplace

If you’ve struggled to properly define what makes your book “special,” this Application Note will help to end the struggle.

Read more →
Tips to help independent booksellers and independent publishers better collaborate
Tips to help independent booksellers and independent publishers better collaborate

Practical strategies that allow indie booksellers and publishers to strengthen their partnerships and sell more books.

Read more →
Registering for an ISNI
Registering for an ISNI

What is ISNI and why should you register for it?

Read more →
What's selling for summer?
What's selling for summer?

What have Canadians been buying for their summer reads?

Read more →
New SalesData &amp; LibraryData features: Quick Search improvements
New SalesData & LibraryData features: Quick Search improvements

Users can now narrow down their results further and use them to directly build other reports in SalesData & LibraryData.

Read more →
Subject Spotlight: Satire
Subject Spotlight: Satire

Sales and library circulation data of Satire titles during the the first quarter of 2026.

Read more →
How are you approaching AI? Take the AI use in the North American book industry survey 2026
How are you approaching AI? Take the AI use in the North American book industry survey 2026

Whether you’re all in on AI, all out, or somewhere in between, we want to hear from you.

Read more →
Can we give up completely on ONIX 2.1?
Can we give up completely on ONIX 2.1?

This year, some major industry players have announced their intent to end their support of the ONIX 2.1 version leaving everyone asking the same question.

Read more →

Tagged: book metadata best practices, onix 3.0

Newer PostTech Forum content library spotlight: Metadata
Older PostChecking in with Canadian contributors: Young Adult
No results found
Blog RSS

The Canadian Book Market 2025 is the comprehensive guide to the Canadian market with in-depth category data.

Get your copy now

Listen to our latest podcast episode


  • Research & Analysis 486
  • Ebooks 304
  • Tech Forum 280
  • Conferences & Events 262
  • Standards & Metadata 255
  • Bookselling 222
  • Publishing 201
  • ONIX 197
  • Marketing 153
  • Podcasts 129
  • ebookcraft 112
  • BookNet News 107
  • Loan Stars 79
  • Libraries 67
  • BiblioShare 59
  • 5 Questions With 53
  • SalesData 52
  • Thema 47
  • CataList 44
  • Awards 30
  • Diversity & Inclusion 21
  • Sustainability 19
  • Publishing & COVID-19 18
  • EU Regulations 16
  • LibraryData 10
  • ISNI 5

 

 

BookNet Canada is a non-profit organization that develops technology, standards, and education to serve the Canadian book industry. Founded in 2002 to address systemic challenges in the industry, BookNet Canada supports publishing companies, booksellers, wholesalers, distributors, sales agents, industry associations, literary agents, media, and libraries across the country.

 

Privacy Policy | Accessibility Policy | About Us

BOOKNET CANADA

Contact us | (416) 362-5057 or toll free 1 (877) 770-5261

We acknowledge the financial support of the Government of Canada through the Canada Book Fund (CBF) for this project.

Back to Top

BookNet Canada acknowledges that its operations are remote and our colleagues contribute their work from the traditional territories of the Mississaugas of the Credit First Nation, the Anishnawbe, the Haudenosaunee, the Wyandot, the Mi’kmaq, the Ojibwa of Fort William First Nation, the Three Fires Confederacy of First Nations (which includes the Ojibwa, the Odawa, and the Potawatomie), and the Métis, the original nations and peoples of the lands we now call Beeton, Brampton, Guelph, Halifax, Thunder Bay, Toronto, Vaughan, and Windsor. We endorse the Calls to Action from the Truth and Reconciliation Commission of Canada (PDF) and support an ongoing shift from gatekeeping to spacemaking in the book industry.