Bug 1112060

Summary: Titles in ODT are being converted into a topic, plus nesting issues.
Product: [Community] PressGang CCMS Reporter: Jared MORGAN <jmorgan>
Component: ImportToolAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.7   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
source doc none

Description Jared MORGAN 2014-06-23 04:53:03 UTC
Created attachment 911255 [details]
source doc

Description of problem:

http://skynet.usersys.redhat.com:8080/pressgang-ccms-ui/#ContentSpecFilteredResultsAndContentSpecView;query;contentSpecIds=22798

If an ODT contains a Title (correctly styled), it is added as a topic, instead of being parsed out of the conversion, or added as the book name in the part of the import wizard that specifies Product and Book Name.

The structure inside the erroneous topic (in this case 38730) is:

<section>
	<title>Untitled</title>
	<para>
		Red Hat Enterprise Linux OpenStack Platform Certification Test Suite 5.0 User Guide
	</para>
</section>

Additionally, there is unnecessary nesting happening upon import as well. The structure originally imported is:

Chapter: Untitled
  Initial Text:
    Untitled [38730]
  Section: Untitled
    Section: Untitled
      Section: Abstract
        Initial Text:
          Abstract [38731]
        Section: Introduction

In this case, Introduction is the first chapter element.

Nesting below this does not conform to the nesting in the document (attached for reference):

Chapter: Untitled
  Initial Text:
    Untitled [38730]
  Section: Untitled
    Section: Untitled
      Section: Abstract
        Initial Text:
          Abstract [38731]
        Section: Introduction
          Initial Text:
            Introduction [38732]
          Section: Reporting a Product Bug
            Initial Text:
              Reporting a Product Bug [38733]
            Section: Release Notes
              Initial Text:
                Release Notes [38734]
              Section: Installation and Configuration
                Section: Partner Prerequisites
                  Initial Text:
                    Partner Prerequisites [38735]
                  Install and Configure Red Hat Enterprise Linux OpenStack Platform [38736]
                  Install the Test Suite using Subscription Manager [38737]
                  Install the Test Suite using RHN or CDN [38738]
                  Modify Configuration Files [38739]
                  Certification Workflow [38740]
                  Running Tests [38741]
                  Submitting Data Logs [38742]
                  Submitting Data Logs Automatically [38743]
                  Provide Specific Software Details [38744]
                  Submitting Data Logs Manually [38745]
                  Bugzilla Status Reference [38746]
                  Responding to Reviewer Feedback (Subset Tests) [38747]
                  Configuring the Subset Tests [38748]
                  Running and Uploading Subset Tests [38749]
                  Configuring Tempest with Red Hat Enterprise Linux OpenStack Platform [38750]
                  Configuring Tempest for Network, Block Storage, and Object Storage Tests [38751]
                  Procedure: Block Storage (Cinder) Test Configuration [38752]
                  Procedure: Networking (Neutron) Test Configuration [38753]
                  Procedure: Object Storage (swift) Test Configuration [38754]

It would be great if any headings titled "Abstract" could be auto-added using the Abstract metadata element when imported.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Lee Newson 2014-06-23 05:01:09 UTC
For the titles part that isn't a bug and is an import configuration issue. See BZ#1083834 for more information.