Bug 166016 - EPUB output requires metadata to be entered each time
Summary: EPUB output requires metadata to be entered each time
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.2.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: EPUB-Export
  Show dependency treegraph
 
Reported: 2025-04-03 02:37 UTC by Peyton R
Modified: 2025-04-08 18:06 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen shot of Kindle Previewer 3 (119.04 KB, image/png)
2025-04-03 18:24 UTC, Peyton R
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peyton R 2025-04-03 02:37:58 UTC
Description:
When exporting an EPUB from LibreOffice Writer, the metadata needs to be entered each time. Would prefer that this dialog box remember the previous values.

Steps to Reproduce:
1.File -> Export as -> Export as EPUB...
2. Enter pertinent details.
3. Proceed with export.
4. Do another File -> Export as -> Export as EPUB, notice that the input fields are blank again.

Actual Results:
The metadata fields are blank every time we do an EPUB export, requiring the user to re-enter the values.

Expected Results:
Would be helpful if the metadata fields remembered the previously entered values.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 6; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 1 Olivier Hallot 2025-04-03 11:47:17 UTC
I suggest a checkbox in the dialog with "Remember these values" or such.

Values stored in profile or in document? Question for debate.
Comment 2 m_a_riosv 2025-04-03 12:06:32 UTC
I think it only needs to use the data in Menu>File>Properties [Description]

Seems only the Title is got from properties.
Comment 3 Heiko Tietze 2025-04-03 13:47:57 UTC
We would have to distinguish between reading the metadata and editing. Only the latter should be saved, if at all. Wonder if this might become a privacy issue.
Comment 4 Peyton R 2025-04-03 18:20:39 UTC
Thankyou for considering this enhancement request.

Some of us LibreOffice users are authors who write under one or more pseudonyms. We need the ability to set the title, author, cover image, etc separately for each document.

One of the responses mentioned File->Properties, so I went to look at mine. All Description fields are blank. I suspect most Writer users never look in File -> Properties. Also, there is no 'Author' field in the Description tab.

If we begin another book by starting with the current ODT file (which we would do because all the font styles, page styles, header styles, margins, etc. would stay the same) we still need to change at least the document title, (possibly) author, cover image, and perhaps more.
Comment 5 Peyton R 2025-04-03 18:24:32 UTC
Created attachment 200154 [details]
Screen shot of Kindle Previewer 3

Screen shot of an EPUB loaded into Kindle Previewer 3 showing Title and Author, and just a thin slice of the cover image, which were manually entered during the Writer Export -> EPUB process.
Comment 6 Peyton R 2025-04-03 18:38:54 UTC
This is just For Your Information.

During the File -> Export as EPUB process, I entered the filename of a cover image, the book title, the author's name, and the language "English" into the dialog box. The attachment shows a corner of the Kindle Previewer 3 window. You can see the title, author's name, and a slim strip of the cover image (in the background).

As you surely surmise, we would want the same values which we entered in the interactive export option to be used in the "Export Directly" option.

Thank you.
Comment 7 Heiko Tietze 2025-04-07 08:51:17 UTC
The EPUB export provides the metadata 
* Identifier (not taken from #1), 
* Title (#1), 
* Author (#2), 
* Language (always empty), and 
* Date (last saved).

#1 is File > Properties > Description
#2 is Tools > Options > User Data

The recommended workflow could be to create a template with the metadata. If the author needs to be overwritten I could imagine to have this entry with the meta data at #1 filled with the default from #2. And what definitely should be done is to take the identifier from #1 into the EPUB metadata, or is it a different information?
Comment 8 Miklos Vajna 2025-04-07 11:52:20 UTC
IIRC epub identifier is meant to be a UUID, while epub title is indeed similar to the document title (that's why it's autofilled).

See writerperfect/qa/uitest/epubexport/epubexport.py:108 for a sample epub identifier.

So unless I'm missing something, autofilling the epub identifier from the document title is not a good idea.

My first thought was to check what the PDF export does (it does store these things to the user profile, it seems) and then the EPUB export could behave similarly, to be consistent.
Comment 9 Peyton R 2025-04-07 19:19:34 UTC
I'm in favor of consistency if the thing you're being consistent with is already good :-)

As a user of the product and process, I would prefer to enter (or edit) the document title, author, language and date once as I do File -> Export As -> Export as EPUB. Then, ideally, the title, author and language would be retained with the document so that I can do Export Directly after that, knowing I'll get the same values put into the ePub again.

Please keep in mind that the user may be working on different manuscripts using different author names concurrently, so it's okay initially load the author name from the (user?) profile but the process should then retain the (possibly edited) author name on a per-document basis.
Comment 10 Eyal Rozenberg 2025-04-08 18:06:47 UTC
(In reply to Peyton R from comment #0)
> Description:
> When exporting an EPUB from LibreOffice Writer, the metadata needs to be
> entered each time. Would prefer that this dialog box remember the previous
> values.

Why should it be entered even a _single_ time? Provided, that is, that the meta data has already been entered in the Document Properties?

Specifically, I noticed that:

* Identifier is not carried over from the Document Properties.
* Author is not carried over from the Document Properties.
* The Date timestamp is arbitrarily zero instead of being taken from either the current time or the last save time.
* Language... interesting field. Relates to 148257. We should be able to actually set the language of text, which currently, we can't do. In the mean time, this should probably be added to Document Properties (I would not support a style-based approach, although that's also possible).

As for cover image - that should be added to the Document Properties. And "media directory" - don't know what that is, but might probably fit in Document Properties as well.

So, bottom line - persistence of Document Properties and keeping relevant data in there should resolve this problem.