Ticket #656 (closed Enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Client-side Topicmaps API should have a add_topicmap() method

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

Description

add_topicmap(topicmap_id)

It would add a topicmap to the menu, select it, and displays it.
A 3rd-party plugin would call it once it has created a new topicmap at server-side and now wants to introduce it to the webclient GUI.

This is needed by the import/export plugin realized by Carolina.

Change History

comment:1 Changed 6 years ago by jri

  • Status changed from new to accepted

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

Topicmaps module: refactor plugin.js (#656).

In preparation of "Client-side Topicmaps API should have an add_topicmap() method".

See #656

comment:3 Changed 6 years ago by Jörg Richter

Topicmaps API: client-side add_topicmap() (#656).

The client-side Topicmaps API provides an add_topicmap() method:

dm4c.get_plugin("de.deepamehta.topicmaps").add_topicmap(topicmap_id)

Plugins can call this method when they have created a topicmap (at server-side) and now want display it.

See #656

comment:4 Changed 6 years ago by Jörg Richter

Topicmaps: some refactoring (#656).

BREAKING CHANGE

2 methods of public Topicmaps API are renamed:

do_select_topicmap() -> select_topicmap()
do_create_topicmap() -> create_topicmap()

See #656

comment:5 Changed 6 years ago by jri

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