PROBLEM:
The checker does not select the correct title when multiple dc:title elements
are present in the OPF metadata, according to EPUB 3.0 spec. The spec allows
for meta properties "title-type" and "display-seq" to be attached to a dc:title
element using the "refines" attribute, but the checker seems to ignore these
and always uses the last value seen. The spec also says that, in lieu of other
selection criteria, the first dc:title element should be selected as the main
title, whereas the checker appears to choose the last.
METHOD:
What steps will reproduce the problem?
1. Create an OPF with the following metadata:
<dc:title id='title'>My Main Title</dc:title>
<meta refines="#title" property="title-type">main</meta>
<meta refines="#title" property="display-seq">1</meta>
<dc:title id='subtitle2'>First Subtitle</dc:title>
<meta refines="#subtitle2" property="title-type">subtitle</meta>
<meta refines="#subtitle2" property="display-seq">2</meta>
<dc:title id='subtitle3'>Another subtitle</dc:title>
<meta refines="#subtitle3" property="title-type">subtitle</meta>
<meta refines="#subtitle3" property="display-seq">3</meta>
2. Run epubcheck against the created document, outputting to an XML log file.
RESULT:
The XML log from epubcheck reports that the Title property is "Another
subtitle".
EXPECTED:
Expected the Title Property to be "My Main Title"
PLATFORM:
Epubcheck v3.0, Java v1.7.0_17, Windows XP
Original issue reported on code.google.com by mearn...@gmail.com on 1 May 2013 at 2:11
Original issue reported on code.google.com by
mearn...@gmail.com
on 1 May 2013 at 2:11