View Single Post
Old 01-19-2019, 05:03 PM   #1
Trane
Groupie
Trane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensions
 
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
@DiapDealer ISBN vs UUID

Hello DiapDealer...

Found an old thread where you answered the question I have, which is how to use the ISBN in the metadata, vs the UUID... but I am new to opf and metadata code and am too dense ... I kindly need an example of what you mean. You said in this previous post in 2013):

"It's quite trivial to change your ePub to use the ISBN identifier as the unique identifier (in Sigil) and get rid of the autogenerated UUID at any time, however:

"Add the ISBN metadata (either through the metadata editor or add it manually in the OPF). Open the OPF file and add an id attribute to the isbn dc:indentifier entry you just created (I often use "isbn" but just so long as it's not the same as the "unique-identifier" attribute of the "package" element). Then change the "unique-identifier" attribute of the "package" element to match the id you just created for your ISBN entry. Save the epub and delete the entire <dc:identifier></dc:identifier> entry for the old UUID from the OPF."

You lost me at "add an id attribute to the isbn identifier..."

This is the relevant code (I think):

<package version="2.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf">

<metadata xmlnspf="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/">

<dc:identifier opf:scheme="ISBN">ISBN [isbn # here]</dc:identifier>


I don't know the protocol for adding an attribute to a dc element.. ? If it needs dashes or underscores or colons or a single space or what? Sorry! Could you give an example...? I'd really appreciate it.
Trane is offline   Reply With Quote