Ishremote, batch update navtitle from actual topic title

Hello

I updated the title of multiple topics in a map.

Is there a way to batch update the navtitle in the map using ISHremote?

The Ipublishpostprocess plugin can update these fields in the output, but I want to do this during the Draft stage.

Parents
  • Hi Milly,

    Not sure why you want to update / synchronize the navtitle (element or attribute) in the map as according to the DITA language reference, the navtitle should only be used in order to overwrite the topic title in the output generation process.
    (see: https://docs.oasis-open.org/dita/v1.2/os/spec/langref/navtitle.html)

    So you should not use the navtitle element or attribute, unless you want to overrule the topic title on specific topicref entries.
    The Publication manager will resolve the titles automatically when visualizing the map xml structure in the preview pane.

    Publishing will also automatically resolve these as already stated by you.

    So the best and easiest way forward would be to reduce the usage of the navtitle element (or attribute) to those topicref entries where the navigation title should differ from the actual topic title. But maybe I'm overlooking a specific business case you have to supply the navtitle values.

    ISHRemote has no single method available to update the titles as this is inside the content of a DITAMAP and our API is not targetting the content changes inside the objects. ISHRemote is targetting the maintenance of the object (metadata and checkin/checkout operations) and not actual authoring/changing the content of the object.

    However the API does support you to build the routine using check out / check in of the DITAMAP and look up / download the referenced topics (preferrably in light of the publiation baseline to retrieve the object version used by the publication)

    But you will have to code around these calls all other actions like opening the files and querying (through XPath) for the correct value to use/retrieve.

    I hope this helps,

    Kind Regards,

    Raf

  • Hi Raf,

    I see your point about navtitle. Sadly we need to have navtitles in chapters of a bookmap to view the titles in the Publication Manager. I will try to use the API for these cases.

    Thanks again for you quick, thorough answer.

    Milly

Reply Children
No Data