How to set map title to root map field

Post here questions and problems related to oXygen frameworks/document types.
sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

How to set map title to root map field

Post by sebastienlavandier »

Hi,

I want to know if it's possible by using API or other thing to set selected map title in root map field (in DitaMaps Manager) ?

Thanks in advance for your help.
Sébastien.L
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: How to set map title to root map field

Post by alex_jitianu »

Hi Sébastien,

If I understand correctly, you would like us to render the title of the root map instead of the file name, right? Unfortunately there is no API for controlling this yet but I can add an issue for us to implement this behavior as the default behavior.

Best regards,
Alex
sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

Re: How to set map title to root map field

Post by sebastienlavandier »

Hi Alex,

If you can do that for a next version, I take it.
Thanks you for your answer.
Have a nice day.
Sébastien.L
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to set map title to root map field

Post by Radu »

Hi Sébastien,

Alex added an issue for this but we'll probably not have this available in Oxygen 18.0.
There are various problems with this approach, first of all for all maps referenced in the combo box history, Oxygen would need to compute the title. This means parsing each DITA Map. As each DITA Map title may use conkeyrefs and conrefs, we would need to fully parse the DITA Map + all its referenced submaps in order to determine a valid title. DITA maps in the root map combo may also be on a remote server so we would need to somehow use threading to asynchronously update the root map combo box.
So this would take some implementation effort on our side and it could also mean a performance penalty.
There are also cases in which the map title has profiling in it, for example in the case of our user's manual:

Code: Select all

<bookmap id="com.oxygenxml.usermanual" collection-type="sequence">
<booktitle>
<mainbooktitle>
<ph keyref="product" product="editor author developer svnClient webauthor"/>
<ph product="editorEclipse">Oxygen XML Editor Eclipse Plugin</ph>
<ph product="authorEclipse">Oxygen XML Author Eclipse Plugin</ph>
<ph product="developerEclipse">Oxygen XML Developer Eclipse Plugin</ph>
<ph keyref="minorVersion"/>
</mainbooktitle>
</booktitle>
in which case the title is something different depending on the applied DITAVAL.

Could you tell me more about your usecase? Are you using a CMS which uses unique auto-generated file names for files?
If you would have API for this, do you have a special method on the CMS side to quickly determine the title of a map avoiding to parse it entirely for this?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply