Bug 839461 - RFE: Inject metadata tags to topic <section> role attribute
Summary: RFE: Inject metadata tags to topic <section> role attribute
Keywords:
Status: NEW
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 806181
Blocks: 838277
TreeView+ depends on / blocked
 
Reported: 2012-07-12 02:41 UTC by Joshua Wulf
Modified: 2023-02-21 23:19 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 861203 0 unspecified NEW Include keywordset and keyword elements in assembled content. 2023-02-21 23:19:50 UTC

Internal Links: 861203

Description Joshua Wulf 2012-07-12 02:41:01 UTC
I need a metadata category property that causes all metadata tags in that category that are assigned to a topic to be injected into the role attribute of the topic's <section> element when it is built, and for them to be injected when it's built with the csprocessor.

So, for example, I tag my topic with "Programming Language":"Python" and it comes out with:

<section role="programming-language-python">

The form should be (pseudocode):

for each Topic.Tags as Tag
  if Tag.ParentCategory.hasProperty("inject as role")
    role=role+(Category.toLowerCase()+"-"+Tag.toLowerCase).escapeSpaces("-") + " "; 

So the role attribute will be a space-separated list of injectable tags with internal spaces replaced with "-".

I know that tag names are guaranteed unique at this point, but I think putting the category will make the meaning clearer in the html output (where the role is rendered as a class attribute).

Comment 1 Joshua Wulf 2013-04-04 12:38:48 UTC
The Docbook TC is considering enabling microdata or RDFa support for schema.org metadata markup. 

http://sourceforge.net/tracker/index.php?func=detail&aid=3608790&group_id=21935&atid=384107

How that shakes out will have an impact on the best way to inject metadata into topics for discovery.

Comment 2 Misty Stanley-Jones 2013-05-29 02:37:28 UTC
This is not slotted for any cycles at this time.


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