Clarification in Imagemap
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 49
- Joined: Mon Mar 28, 2016 3:54 pm
Clarification in Imagemap
Post by Raga Mounika »
Hi Team,
I need some clarifications when an imagemap is inserted.
1) When an <imagemap> is inserted and <keyref> is used for image is it possible to have imagemap editor?
Currently imagemap editor is shown only for href in image.
2) In Imagemap editor in linking part is it possible to change the menu options.I need to add 1 more option to support my requirement.
Regards,
Mounika.
I need some clarifications when an imagemap is inserted.
1) When an <imagemap> is inserted and <keyref> is used for image is it possible to have imagemap editor?
Currently imagemap editor is shown only for href in image.
2) In Imagemap editor in linking part is it possible to change the menu options.I need to add 1 more option to support my requirement.
Regards,
Mounika.
-
- Posts: 49
- Joined: Mon Mar 28, 2016 3:54 pm
Re: Clarification in Imagemap
Post by Raga Mounika »
Hi Team,
For your information I am using oXygen Author 18 with Eclipse plugin.
Regards,
Mounika
For your information I am using oXygen Author 18 with Eclipse plugin.
Regards,
Mounika
-
- Posts: 1008
- Joined: Wed Nov 16, 2005 11:11 am
Re: Clarification in Imagemap
Post by alex_jitianu »
Hi Mounika,
Best regards,
Alex
This is an issue on our part. We will fix it for the next version of Oxygen. If it is time we will try to push a fix into a maintenence build for 18.1 too. If needed, I think you can implement an workaround though a custom Edit Map action. Please let me know if you are interested in this approach so I can give you more details.1) When an <imagemap> is inserted and <keyref> is used for image is it possible to have imagemap editor?
Currently imagemap editor is shown only for href in image.
Are you refering to the menu associated with the Target field? The one that presents: Cross Reference, FileReference and WebLink as possible values? Unfortunately we don't have an extension point for contributing additional actions. What action would you like to contribute?In Imagemap editor in linking part is it possible to change the menu options.I need to add 1 more option to support my requirement.
Best regards,
Alex
-
- Posts: 49
- Joined: Mon Mar 28, 2016 3:54 pm
Re: Clarification in Imagemap
Post by Raga Mounika »
We would like to know more about the workaround solution which is custom Edit Map action.This is an issue on our part. We will fix it for the next version of Oxygen. If it is time we will try to push a fix into a maintenence build for 18.1 too. If needed, I think you can implement an workaround though a custom Edit Map action. Please let me know if you are interested in this approach so I can give you more details.
Also let us know the 18.1 maintenance date and the next major release planned datewith the bug fix.
We have our own custom action for some external links which is used in our documentation. The custom action we are already using in the main DITA->Link menu and context menu. We would like to add that to the Link option in Image map editor. Also we may need to remove some existing options in the item. Let us know if it is feasible in any way (document type association change or some extensions)Are you refering to the menu associated with the Target field? The one that presents: Cross Reference, FileReference and WebLink as possible values? Unfortunately we don't have an extension point for contributing additional actions. What action would you like to contribute?
-
- Posts: 1008
- Joined: Wed Nov 16, 2005 11:11 am
Re: Clarification in Imagemap
Post by alex_jitianu »
Hi,
You must process these fragments and replace @keyref with the corresponding @href. You can use ro.sync.ecss.dita.DITAAccess.getKeys(URL) for that.
The second point of interest is this one:
You must process the returned fragment and replace the @href with the original @keyref. At this point you could also process all <xref> and change them according with your restrictions (local references with @href and regerences to other topics with @keyref - if I remember correctly)
Best regards,
Alex
After creating the sample SDK project, focus on the oxygen-sample-framework module. Inside oxygen-sample-framework\samples\Oxygen Default Frameworks you will find the sample code for our built-in frameworks, including DITA. The class that corresponds to the Image Map Editor... action is ro.sync.ecss.extensions.dita.EditImageMapOperation . The first code of interest is in its super class: ro.sync.ecss.extensions.commons.operations.EditImageMapOperation:We would like to know more about the workaround solution which is custom Edit Map action.
Code: Select all
String[] asXML = new String[nodes.length];
for (int i = 0; i < asXML.length; i++) {
fragments[i] = documentController.createDocumentFragment(nodes[i], true);
asXML[i] = documentController.serializeFragmentToXML(fragments[i]);
}
The second point of interest is this one:
Code: Select all
String[] result = ImageMapAccess.getInstance().editMap(
authorAccess,
framework,
authorAccess.getEditorAccess().getEditorLocation(),
uri2ProxyMappings,
ImageMapUtil.getFontOfNodeSize(authorAccess, nodes[0]),
asXML);
Version 19.0 will be released sometimes in spring. We've just released a maintenance build for 18.1 so the next one might be in January or February.Also let us know the 18.1 maintenance date and the next major release planned datewith the bug fix.
Unfortunately, right now you can't customize that menu. Bu you can fix the references as described above (in the fragment received from the ImageMapAccess, before inserting it in the document).Also we may need to remove some existing options in the item. Let us know if it is feasible in any way (document type association change or some extensions)
Best regards,
Alex
-
- Posts: 398
- Joined: Mon May 09, 2016 9:37 am
Re: Clarification in Imagemap
Post by sorin_carbunaru »
Hello,
Just wanted to mention that a new maintenance build for 18.1 was released at the very end of January (build2017013018). Version 19.0 is also now available. Both of them have the problem with images and keyrefs fixed.
Kind regards,
Sorin Carbunaru
oXygen XML
Just wanted to mention that a new maintenance build for 18.1 was released at the very end of January (build2017013018). Version 19.0 is also now available. Both of them have the problem with images and keyrefs fixed.
Kind regards,
Sorin Carbunaru
oXygen XML
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service