Ticket #612 (closed Enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

Topicmaps: make the topicmap viewmodel class portable

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.2
Component: DeepaMehta Standard Distribution Version: 4.1.3
Keywords: Cc: dgf, Malte, joern
Complexity: 3 Area: Application Framework / API
Module: deepamehta-topicmaps


... so that it can be used by 3rd party webclients.

Change History

comment:1 Changed 10 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Jörg Richter

Topicmaps: make TopicmapViewmodel? portable (#612).

The class TopicmapViewmodel? can be used by a 3rd party webclient.
To do so it must pass its RESTClient instance to the TopicmapViewmodel? constructor:

var restc = new RESTClient()
var topicmap = new TopicmapViewmodel(1234, {is_writable: true, customizers: []}, restc)

In your plugin's main page don't forget to load 3 scripts from the standard distro:

<script src="/de.deepamehta.webclient/script/util/rest_client.js"></script>
<script src="/de.deepamehta.webclient/script/model/topic.js"></script>
<script src="/de.deepamehta.topicmaps/script/topicmap_viewmodel.js"></script>

That is the DM4 Webclient and DM4 Topicmaps modules must be part of your DM installation.
Alternatively you could include these 3 scripts in your plugin.

See #612.

comment:3 Changed 10 years ago by jri

This is regarded resolved for the moment. Further aspects should be addressed in a separate ticket.

comment:4 Changed 10 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.