EPUB export dialog
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@82 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
0dcc851a33
commit
1e57f500c9
9 changed files with 120 additions and 83 deletions
|
@ -190,15 +190,15 @@ public class OPFWriter extends NewDOMDocument {
|
|||
}
|
||||
}
|
||||
|
||||
// Fall back values for creator and date
|
||||
// Fall back values for identifier, creator and date
|
||||
if (!bHasIdentifier) {
|
||||
// Create a universal unique ID
|
||||
sUID = UUID.randomUUID().toString();
|
||||
Element identifier = appendElement(contentDOM, metadata, "dc:identifier", sUID);
|
||||
identifier.setAttribute("id", "BookId");
|
||||
identifier.setAttribute("opf:scheme", "UUID");
|
||||
}
|
||||
if (bUseDublinCore) {
|
||||
if (!bHasIdentifier) {
|
||||
// Create a universal unique ID
|
||||
sUID = UUID.randomUUID().toString();
|
||||
Element identifier = appendElement(contentDOM, metadata, "dc:identifier", sUID);
|
||||
identifier.setAttribute("id", "BookId");
|
||||
identifier.setAttribute("opf:scheme", "UUID");
|
||||
}
|
||||
if (!bHasCreator && cr.getMetaData().getCreator().length()>0) {
|
||||
appendElement(contentDOM, metadata, "dc:creator", cr.getMetaData().getCreator());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue