Red Hat Bugzilla – Bug 839461
RFE: Inject metadata tags to topic <section> role attribute
Last modified: 2014-10-26 21:14:01 EDT
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:
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).
The Docbook TC is considering enabling microdata or RDFa support for schema.org metadata markup.
How that shakes out will have an impact on the best way to inject metadata into topics for discovery.
This is not slotted for any cycles at this time.