Customization in v14
Are you missing a feature? Request its implementation here.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Customization in v14
Post by sorin_ristache »
Hello,
The Index tab is created in the WebHelp output only if the source XML topic files include indexterm definitions using the indexterm XML element (the same XML element name is used in both DITA and DocBook - the WebHelp transformation is available for both DITA and DocBook XML and you did not specify your document type). If there is no indexterm markup in the source XML files no Index tab will be created in the output. However if you wish to forcefully inhibit the Index tab you can do so by editing the file [Oxygen-install-dir]/frameworks/dita/DITA-OT/build.xml and removing the target name webhelp-indexterms from the definition of the dita2webhelp target (or from the definition of dita2webhelp-feedback if you run the WebHelp with Feedback transformation). That means you should remove the sub-string webhelp-indexterms, (the comma included) from the line that starts with:
Better targeted results by XML markup-based search ranking (higher ranking for keywords and title words than for regular text words, etc.) is implemented from the initial version of the WebHelp transformation. For example the highest ranking is assigned to keywords, which in a DITA topic are the words from the keywords metadata, for example myKeyword below:
The keyword ranking is double the title ranking, the indexterm ranking is 50% higher than the title ranking, title ranking is 10 times the bold ranking (that is words between the <b> and </b> tags in the source XML files), bold ranking is 5 times the regular text ranking (that is normal content words, without bold or italic style), and italic ranking (that is words between the <i> and </i> tags in the source XML files) is 3 times the regular text ranking.
Regards,
Sorin
The Index tab is created in the WebHelp output only if the source XML topic files include indexterm definitions using the indexterm XML element (the same XML element name is used in both DITA and DocBook - the WebHelp transformation is available for both DITA and DocBook XML and you did not specify your document type). If there is no indexterm markup in the source XML files no Index tab will be created in the output. However if you wish to forcefully inhibit the Index tab you can do so by editing the file [Oxygen-install-dir]/frameworks/dita/DITA-OT/build.xml and removing the target name webhelp-indexterms from the definition of the dita2webhelp target (or from the definition of dita2webhelp-feedback if you run the WebHelp with Feedback transformation). That means you should remove the sub-string webhelp-indexterms, (the comma included) from the line that starts with:
Code: Select all
<target name="dita2webhelp" depends="build-init, dita.map.webhelp.init
Better targeted results by XML markup-based search ranking (higher ranking for keywords and title words than for regular text words, etc.) is implemented from the initial version of the WebHelp transformation. For example the highest ranking is assigned to keywords, which in a DITA topic are the words from the keywords metadata, for example myKeyword below:
Code: Select all
<topic id="topic-ID">
<title>My title here</title>
<prolog>
<metadata>
<keywords>
<keyword>myKeyword</keyword>
</keywords>
</metadata>
</prolog>
<body>
...
Regards,
Sorin
Re: Customization in v14
Hi,
The build file Sorin was discussing earlier is here (was indeed renamed):
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/build_dita.xml
The Index tab should not appear if you have no index terms defined.
But anyway you could also try to remove the Index tab via CSS. You could have a custom CSS with the selector:
and then edit the WebHelp transformation scenario to set the parameter args.css to your custom CSS and the parameter args.copy.css to yes.
Regards,
Radu
The build file Sorin was discussing earlier is here (was indeed renamed):
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/build_dita.xml
The Index tab should not appear if you have no index terms defined.
But anyway you could also try to remove the Index tab via CSS. You could have a custom CSS with the selector:
Code: Select all
#index,
#index\.label{
display:none;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service