Ticket #1026 (closed Enhancement: worksforme)

Opened 8 years ago

Last modified 8 years ago

dm4-webclient: link into topicmap and reveal, select or open topic for editing

Reported by: Malte Owned by: jri
Priority: Minor Milestone: Release 4.8.4
Component: DeepaMehta Standard Distribution Version: 4.8.3
Keywords: Cc: jri, dgf, JuergeN
Complexity: 3 Area:
Module: deepamehta-webclient

Description (last modified by Malte) (diff)

When working on alternative graphical index to support PIM i often want to to be able to continue to work with a selected topic.

Currently one is unable to display or start editing a selected topic directly in the webclient just through linking into the webclient.

Could you build support for this?

Linking in a topicmap should work in both case, if the topic is not yet revealed/part of the topicmap and if it is.

Furthermore, it would be nice to be able to pass an "action" parameter so a topics edit form may be directly rendered when opening the link.

This is useful for many use-cases, e.g. if i would want to render an "Edit" button under a webpage for a logged in user. The same case would support my new experimental dm4 frontpage which just shows me a random excerpt of my research.

Assumption: The client who wants to link into the webclient knows a valid topicmap id in which one wants to start working with the selected topic.

I envision to built a command, "Open" or "Start editing this topic in Topicmap X" (while Topicmap X is some kind of dropdown menu).

Thanks for your support.

Attachments

Screenshot from 2016-10-28 21:49:54.png (237.4 KB) - added by Malte 8 years ago.
Not logged into frontscreen
Screenshot from 2016-10-28 21:49:09.png (294.6 KB) - added by Malte 8 years ago.
Logged into frontscreen

Change History

Changed 8 years ago by Malte

Not logged into frontscreen

Changed 8 years ago by Malte

Logged into frontscreen

comment:1 Changed 8 years ago by Malte

  • Description modified (diff)

Thanks for your

comment:2 Changed 8 years ago by jri

The first case -- view topic X in topicmap Y -- you can do yourself: provide a resource method that adds a topic to a topicmap if not already added. You can do so by using the TopicmapsService?:

boolean isTopicInTopicmap(long topicmapId, long topicId);

void addTopicToTopicmap(long topicmapId, long topicId, int x, int y, boolean visibility);

Your client-side "Open" command would send a request to your resource method and then redirect to the Webclient:

location.pathname = "/topicmap/<mapID>/topic/<topicID>"

comment:3 Changed 8 years ago by Malte

  • Status changed from new to closed
  • Resolution set to worksforme

Great, thanks for the tip!

comment:4 Changed 8 years ago by jri

See also #428

Note: See TracTickets for help on using tickets.