Bug 759981 - <subtitle> issues with skynet
Summary: <subtitle> issues with skynet
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: Web-UI
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-05 04:45 UTC by Emma Le Strange
Modified: 2014-08-04 22:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-02 00:40:45 UTC


Attachments (Terms of Use)

Description Emma Le Strange 2011-12-05 04:45:11 UTC
/CustomSearchTopics.xhtml

Actions:
1. Click Topic Search
2. Click Fields
3. Put 5574 into the Topic ID field
4. Click Docbook button
5. Unzip resulting Book.zip
6. cd to Book directory
7. publican build --format=html --langs=en-US
8. google-chrome tmp/en-US/html/index.html

When an xml containing the tag <subtitle></subtitle> is used the following error occurs.

ERROR: Topic failed docbook validation after the injection points were processed. The error was The content of element type "section" must match "(sectioninfo?,(title,subtitle?,titleabbrev?),(toc|lot|index|glossary|bibliography)*,(((calloutlist|glosslist|bibliolist|itemizedlist|orderedlist|segmentedlist|simplelist|variablelist|caution|important|note|tip|warning|literallayout|programlisting|programlistingco|screen|screenco|screenshot|synopsis|cmdsynopsis|funcsynopsis|classsynopsis|fieldsynopsis|constructorsynopsis|destructorsynopsis|methodsynopsis|formalpara|para|simpara|address|blockquote|graphic|graphicco|mediaobject|mediaobjectco|informalequation|informalexample|informalfigure|informaltable|equation|example|figure|table|msgset|procedure|sidebar|qandaset|task|anchor|bridgehead|remark|highlights|abstract|authorblurb|epigraph|indexterm|beginpage)+,(refentry*|simplesect*))|refentry+|simplesect+),(toc|lot|index|glossary|bibliography)*)". The XML after the injections points were processed is:

<!-- Topic ID: 5574 -->
<section id="TopicID5574" role="IATriage">
    <title>ECS Writing Lab Exercise 1: Direct and Indirect Quotes</title>
    <para>
        <xref linkend="TopicID-1"/> : <xref
            linkend="TopicID-2"/> : <xref linkend="TopicID-3"/>
    </para>
    <subtitle>Is this going to break?</subtitle>
    <formalpara>
        <title>Task</title>
        <para>
In your most professional voice, write 1 page about the differences in usage and strategy between Summarizing, Paraphrasing and Quoting with examples. 
		</para>
etc.....

It seems that when skynet replaces <title> with topic title it does not know what to do with the <subtitle> tag so it puts a <para> before it.

Can this be fixed?

Thanks

Comment 1 Matthew Casperson 2011-12-06 21:35:24 UTC
Fixed in 20111207-0734

The breadcrumbs are now placed after the title and subtitle.


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