Bug 1064593

Summary: RFE: Ask topic type and format when creating new topic
Product: [Community] PressGang CCMS Reporter: Lee Newson <lnewson>
Component: Web-UIAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: mcaspers
Target Milestone: ---   
Target Release: 1.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-01 21:39:56 UTC 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:

Description Lee Newson 2014-02-12 23:05:20 UTC
Currently when you create a new topic you need to manually select the Topic Type and Format, then in some cases delete the initial template and insert a correct one. As such we should be asking users the information initially and then presenting a useful template for them to use.

Examples:

- DocBook 5.0 template should have the default namespaces.
- Revision History topics should have the base appendix/revhistory setup.
- Author Groups should be an <authorgroup> block instead of a <section>
- Legal Notice should be a <legalnotice> block instead of a <section>
- Abstract should be an <abstract> block instead of a <section>

Comment 1 Lee Newson 2014-03-30 13:02:07 UTC
Added in 1.5-SNAPSHOT build 201403281527

Clicking the "Create Topic" button in either the menu of search results panel will now open a Dialog box which asks the user the following:

- Topic Title
- Topic Format
- Topic Type
- Topic Locale

From the above values a template is then selected and used to provide a more accurate template. To do this a number of new server entities have been added to the RESTServerEntitiesV1 representation that define the new templates.

Note: This version is currently live on the test/development server.

Comment 2 Matthew Casperson 2014-03-30 21:34:17 UTC
Confirmed that topics created with the tag templates work correctly.

I assume tags like "Content Specification" will be removed from the topic types category on the prod server with the upgrade to prevent them from showing up in this wizard?

Comment 3 Lee Newson 2014-03-30 22:07:59 UTC
Yeah that was the plan, I just couldn't do it before because of BZ#1079172.

Comment 4 Matthew Casperson 2014-03-30 22:11:47 UTC
The info template should be changed to:

<sectioninfo>
    <abstract>
        <para></para>
    </abstract>
    <keywordset>
        <keyword></keyword>
    </keywordset>
</sectioninfo>

I was caught out adding text directly to the abstract.