View Single Post
Old 12-18-2020, 03:48 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,837
Karma: 6120478
Join Date: Nov 2009
Device: many
Unfortunately that was designed behaviour as we did not want metadata editors users to play with any dc:identifier that was designated as the unique identifier of the book because if changed this needs to be properly updated in any ncx uid metadata and can have an impact on font obfuscation.

So the only intended way for users to play around with the book unique dc:identifier was for them to directly edit it in the opf and ncx.

This was all designed and coded up when even epub3's were forced to keep an ncx for epub2 backward compatibility.

I will look into changing this at some future point.



Quote:
Originally Posted by elibrarian View Post
When using this construction in the .opf:

Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="BookId" xml:lang="en" xmlns="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
  <metadata>
    <dc:identifier id="BookId">urn:isbn:9788779797215</dc:identifier>
the metadata editor in Sigil seems to ignore the identifier. If I remove the id="BookId" from the <dc:identifier id="BookId"> the metadata editor will recognise the identifier.

Is this an error? (I think it must be, since the id="whatever"-construction is legal according to the specs.)

Regards,

Kim
KevinH is offline   Reply With Quote