Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Present title along with reference location #26

Open
raducoravu opened this issue Sep 3, 2019 · 4 comments
Open

Present title along with reference location #26

raducoravu opened this issue Sep 3, 2019 · 4 comments

Comments

@raducoravu
Copy link
Collaborator

Feedback from Pierre on the DITA Users List:

 Whenever a title/title classified element is available, to add it in front of the reference.
@raducoravu
Copy link
Collaborator Author

So if the link refers to a DITA element containing a "*[contains(@Class,' topic/title ')]" element then the text of the element should be displayed.
We'd probably need some API in DITAAccess for this in order to reuse the link text resolver. And this would probably not work when editing DITA content in the Text editing mode.

@raducoravu
Copy link
Collaborator Author

👍 from Chris on the DITA Users List

@raducoravu
Copy link
Collaborator Author

We seem to already have some API which could help with this:

LinkTextResolver linkTextResolver = authorAccess.getEditorAccess().getExtensionsBundle().createLinkTextResolver();
linkTextResolver.activated(authorAccess);
linkTextResolver.resolveReference(node);

The API would only work for the Author visual editing mode.

@raducoravu
Copy link
Collaborator Author

We would somehow need to do this operation on a thread as computing the reference titles implies parsing the referenced topics. An alternative could be to get the styles for each reference AuthorNode and there we'll find the link text already computed in the mixed content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant