Bug 1083834 - ODT Import - Title blocks aren't imported correctly
Summary: ODT Import - Title blocks aren't imported correctly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: ImportTool
Version: 1.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.6
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-03 04:30 UTC by Lee Newson
Modified: 2014-08-04 22:28 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-28 21:56:19 UTC
Embargoed:


Attachments (Terms of Use)
Example Book (10.42 KB, application/vnd.oasis.opendocument.text)
2014-04-03 04:30 UTC, Lee Newson
no flags Details

Description Lee Newson 2014-04-03 04:30:27 UTC
Created attachment 882082 [details]
Example Book

If you have a "Title" formatted string in an ODT then it is imported as a <para> with an emphasis. To me this should be the title of the section/chapter or even the title of the book.

Comment 3 Matthew Casperson 2014-05-12 01:44:42 UTC
This bug was caused by incorrectly processing the style hierarchy. There was no way to identify the title in the supplied book with this bug.

Now you identify the title either by the font name "Liberation Sans", the font size "28pt" or just by identifying it as bold text.

This bug has been fixed in Build 1.6-SNAPSHOT 201405121141.

Comment 4 Lee Newson 2014-05-12 02:00:18 UTC
This doesn't address the issue I mentioned in comment #2, that the rules should be pulled from the ODT and then you select the rules from a dropdown list (or something similar). Atm it is highly confusing and something I don't see anyone being able to use without directly talking to you (or reading a heap of documentation)

Comment 5 Matthew Casperson 2014-05-12 02:11:01 UTC
Fixed in Build 1.6-SNAPSHOT 201405121209

Font and size selections are now combo boxes that list any fonts or sizes defined in the document.

Comment 6 Lee Newson 2014-05-19 23:35:38 UTC
This is still messy and confusing. You should be able to pull the styles from the <office:styles> element and present them instead of having to recall what you set for every title. Doing this is would be a lot friendlier and easier (I imagine it could probably be an automated step as well). In saying that however we'd still need the ability that is in place now for titles that don't use the standard formatting styles.

As an example of the automated part I mentioned, anything that uses a style that is a child of the "Header" style could automatically be set as a heading/title.

Anyways I could import the ODT with the title correctly being identified now, however it's still rather hard which is where this bug was aimed at. So I'm moving back to ASSIGNED, but feel free to split the bug up.

Comment 7 Lee Newson 2014-05-19 23:36:17 UTC
Correction "Header" should have been "Heading".

Comment 8 Matthew Casperson 2014-05-22 01:48:54 UTC
Created BZ#1100091 for the addition of style names to the wizard steps.

Comment 9 Lee Newson 2014-05-22 02:32:01 UTC
Moving to Verified since this was split into two bugs.


Note You need to log in before you can comment on or make changes to this bug.