![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2013
Location: Belgrade, Serbia
Device: Kobo Glo
|
dc:date metadata importing from EPUB
I know there's been a lot discussion regarding published date meatadata.
But I haven't found an answer to this. I author my EPUB books in Sigil. Here is an extract of the date metadata from opf file inside the EPUB: Code:
<dc:date opf:event="publication">1995-03-23</dc:date> <dc:date opf:event="creation">1967-05-08</dc:date> publication: date of the publication of this edition (translation) creation: date of the publication of original book. When I import this book in Calibre, pubdate field gets the value from <dc:date opf:event="creation"> (May 1967). Is there a way to control which date gets mapped to pubdate? Or a way to import this "creation" date into some user defined field (column). Otherwise one has to manually change the pubdate to other value. |
![]() |
![]() |
![]() |
#2 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
According to the specs, we have this:
Quote:
Quote:
Last edited by thiago.eec; 09-20-2019 at 09:39 AM. Reason: typo |
||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Calibre will basically consider only one DC:date you can put dates into Calibre custom columns the easiest way to do so is to add the date to Calibre and then use save to disk to see how Calibre saves the matadata in the exported epub. Use the same technique in your epubs
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2013
Location: Belgrade, Serbia
Device: Kobo Glo
|
Thanks a lot for clarification guys!
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Aug 2013
Location: Belgrade, Serbia
Device: Kobo Glo
|
OK, I have tried. Created a custom column named #original.
Filled it with date, and saved EPUB to disk. The resulting meta tag in the EPUB is a bit impractical for use, because it's content is a long JSON string with a full description of a custom column, not just the date value. It is just one line of course, I have broken it just for better display in a code block. Code:
<meta name="calibre:user_metadata:#original" content="{"link_column": "value", "is_multiple2": {}, "search_terms": ["#original"], "is_csp": false, "rec_index": 22, "column": "value", "datatype": "datetime", "label": "original", "name": "Originaly published", "kind": "field", "is_custom": true, "is_category": false, "#extra#": null, "is_editable": true, "display": {"description": "Date of original publishing", "date_format": "dd.MM.yyyy."}, "is_multiple": null, "table": "custom_column_4", "category_sort": "value", "#value#": null, "colnum": 4}"/> |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Hi, eevan.
Looks like you didn't put any value on the custom field before saving it, right? If you had, there would be a date there on the #value# attribute, like this: Code:
"#value#": {"__value__": "2019-09-25T12:31:45.812000+00:00", "__class__": "datetime.datetime"} |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What date is used in the 'Date' field of CC Metadata window? | ShaunBlake | Library Management | 2 | 06-18-2019 05:32 PM |
Importing Books: Getting date from file attributes | ownedbycats | Library Management | 3 | 11-09-2018 05:59 PM |
Edit metadata publish date for a date BC | RickLeFeuvre | Calibre | 2 | 08-28-2014 11:53 PM |
Importing Books RESETS Date! | paralion | Library Management | 1 | 03-25-2012 12:53 AM |
Importing metadata when creating epub | photoluminations | Conversion | 2 | 08-03-2011 06:08 PM |