WebHelp Search does not find title containing angle brackets

Post here questions and problems related to editing and publishing DITA content.
AJOwens
Posts: 11
Joined: Wed Apr 10, 2013 5:09 pm

WebHelp Search does not find title containing angle brackets

Post by AJOwens »

I'm using DITA to document some XML. I've noticed that if the title contains angle brackets (As in

Code: Select all

<title>Using the <Line> element</title>
, the title is not included in the Search results. There is some text from the topic, but no title and no link.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: WebHelp Search does not find title containing angle brac

Post by sorin_ristache »

Hi,

Any word between angle brackets is handled as an HTML tag (which it shouldn't be, of course!) which in your case (<Line>) is ignored because it does not have HTML meaning. We will fix the problem in the next maintenance build. For fixing the problem yourself please replace the following line:

Code: Select all

  var tempTitle = tempInfo.substring(pos1 + 3, pos2);
with this line:

Code: Select all

  var tempTitle = tempInfo.substring(pos1 + 3, pos2)
.replace(/</g, "<").replace(/>/g, ">");
in the file:

Code: Select all

[Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\oxygen-webhelp\search\nwSearchFnt.js

Regards,
Sorin
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: WebHelp Search does not find title containing angle brac

Post by ionela »

Hello,

I just wanted to let you know that this problem has been resolved in the latest maintenance build of Oxygen 15.0, 2013071613 (released on July 16th):
WebHelp: The search did no locate words placed between the characters < and > in titles.
You can download it from our web site:
http://www.oxygenxml.com/download.html

The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2013071613

You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml

Let us know if you encounter further problems with this new build.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
Post Reply