Bug 796540 - RFE: htmlview command for csprocessor
Summary: RFE: htmlview command for csprocessor
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-23 07:04 UTC by Joshua Wulf
Modified: 2014-10-19 23:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-01 07:41:35 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 796009 0 unspecified CLOSED RFE: Improve client to accommodate User Workflow 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 796010 0 low CLOSED RFE: Add the ability to render a content spec via skynet 2021-02-22 00:41:40 UTC

Internal Links: 796009 796010

Description Joshua Wulf 2012-02-23 07:04:28 UTC
Parse the Content spec and turn it into an html representation.

Make a html file and then do this:

1. Substitute   for all spaces to preserve the indentation
2. Turn the line items into links

&nbsp;&nbsp;<a href="http://skynet.bne.redhat.com:8080/TopicIndex/Topic.seam?topicTopicId=TOPIC_ID">Here's a line in a Content Spec [TOPIC_ID]</a>

Make the url of the Skynet instance configurable in the config file.

Comment 1 Joshua Wulf 2012-02-23 14:30:13 UTC
The link should probably be 

<a target="_new" href="....

to open it in a new window.

Comment 2 Joshua Wulf 2012-02-23 14:33:45 UTC
So a user can create a content spec file, then run:

csprocessor create My_New_Book.spec

This creates a "project", which consists of a server stored Content Spec, and a local directory called My_New_Book containing a populated csprocessor.cfg file, and the latest post-processed spec file.

Then the user can do:

cd My_New_Book
csprocessor htmlview

The result is that an html version of the latest Content Spec opens in a browser, and they can start writing the topics by clicking on the topic titles in the html page, which then opens the topic in the relevant Skynet instance in another tab.

Boom - magic workflow is magic.

Comment 3 Joshua Wulf 2012-02-23 14:48:39 UTC
...and the url of the skynet instance should come from the SERVER attribute in the csprocessor.cfg file of the project. Ref: https://bugzilla.redhat.com/show_bug.cgi?id=796708

Comment 4 Joshua Wulf 2012-03-21 04:27:55 UTC
Maybe this can be done by requesting the Content Spec from the Skynet REST interface, and using a Greasemonkey script to rewrite it?


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