Page 1 of 1

Listing Topics Not Referenced in Bookmap or Map

Posted: Wed Mar 06, 2013 12:02 am
by mstrubberg
Is there a way to create a list of all topics in a project that either are referenced by the bookmap or map or are not referenced by the bookmap or map. I'm trying to identify any topics in the project folder that are not in use.

Re: Listing Topics Not Referenced in Bookmap or Map

Posted: Wed Mar 06, 2013 10:59 am
by Radu
Hi,

We already use such a tool internally (for our own DITA-written user manual) to identify extra image files, extra topics which should be deleted because they are not used anymore.
We have plans to also make the tool available in Oxygen in a future version.
I will update the forum thread when this happen.

Regards,
Radu

Re: Listing Topics Not Referenced in Bookmap or Map

Posted: Wed Jul 01, 2015 6:46 pm
by lorriconkin
Was the tool implemented? If so, in what version?

Thanks!

Re: Listing Topics Not Referenced in Bookmap or Map

Posted: Thu Jul 02, 2015 8:33 am
by Radu
Hi,

The tool was implemented in Oxygen 17.0 and it's called Find Unreferenced Resources in DITA Projects. It is available when you right click inside a DITA Map opened in the DITA Maps manager:

http://www.oxygenxml.com/whatisnew17.0. ... TA_Support

Regards,
Radu

Re: Listing Topics Not Referenced in Bookmap or Map

Posted: Tue Mar 17, 2020 10:39 pm
by smithies
Hi, I have a similar question, but reversed.
I have some topics that are reused in various bookmaps. Is there a way I can list all of the bookmaps that any given topic is included in?

Re: Listing Topics Not Referenced in Bookmap or Map

Posted: Wed Mar 18, 2020 8:30 am
by Radu
Hi,

Assuming you are using the latest Oxygen 22.0:

1) Go to the Project view, right click the root and enable master files support.
2) Add all your top level DITA Maps to the master files folder.
3) Open the topic in the main editing area, right click the title and use the "Search references" action. It should locate all references to it, across all those master maps.
4) In the results view you can select all results, right click and export them as XML for further processing or as HTML.

Regards,
Radu