Hi
I have a couple of questions related to opening DITA maps in combination with a custom protocol handler.
In our system Dita maps are stored with an “.xml” extension on the file system. No difference with regular topics.
Some stuff I had to do:
·
I had to change a setting in the preferences
File Types => DITA maps file patterns = “*.ditamap, *.bookmap , .xml”
·
Next thing I did was adding following override in my CustomProtocolHandler
@Override
public String getContentType() {
// Set ditamap mimetype for maps
// This changes oXygen behavior so it shows the question to open in map manager or editor
WorkItem workItem = AuthoringBridge.getWorkArea().getWorkItemByPath(url);
if (workItem.getObjectType().equals(SelectableObjectTypes.Map)) {
return "application/ditamap";
}
return super.getContentType();
}
Some questions/remarks I have:
·
When I did an “Open map in editor” from the map manager panel I got a popup asking to open in the map manager or editor. Would expect it to open it in the editor immediately.
·
Is it possible to set the “DITA maps file patterns” through code? Otherwise all users have to do this manually.
Thanks in advance.
Regards
Jan Bevers
| Developer
| SDL |
Content Management Technologies Division |
+32 (0)15 400 970 | jbevers@sdl.com
This message has been scanned for malware by Websense. www.websense.com