Opened 14 years ago

Closed 14 years ago

#87 closed defect (fixed)

Replace Help in Attenuation Relationship App, add Help to Hazard Curve Apps

Reported by: Ned Field Owned by: Kevin Milner
Priority: major Milestone: OpenSHA 1.1
Component: sha Version: 1.0.x
Keywords: Cc: Kevin Milner, Peter Powers


The "Get Info" button on the attenuation relationship app is not working, both because the getInfoURL() method in each model is out of date since Peter updated the glossary, and because Peter's pages don't look good in what we're using to show those pages in what pops up. I'm trying to submit a ticket buy I'm getting a very cryptic error.

Change History (6)

comment:1 Changed 14 years ago by Kevin Milner

Cc: Kevin Milner Peter Powers added; milner removed
Owner: changed from Peter Powers to Kevin Milner

I'll update all of the getInfoURL instances, but we need to think about how we should display them. Currently, java help uses java's JEditorPane class for rendering HTML...but that class only supports HTML 3.2 (hello 1997!!!).

I see two options:

  1. Drop JavaHelp?, and just launch the attenuation relationship webpage in the user's browser when they hit "Get Info". This is the easy way.
  2. Look into a way to have drupal render a separate version of the page for java-help (at a different URL) that doesn't have any fancy HTML. Is something like this even possible Peter? Having multiple views of the same drupal content. It'd probably be similar to having a mobile version of a site, and maybe there's a plugin for it. This is a more difficult and complicated approach though.

What do you guys think?

comment:2 Changed 14 years ago by Peter Powers

It's bigger.... it's badder.....

java.awt.Desktop !!!!

Use browse() to open the getInfoURL().

For that matter there are many places where Desktop methods could probably be used that woudl save us the hassle of using clunky swing components.

comment:3 Changed 14 years ago by Kevin Milner

note that this still requires removing the help interface and just launching in a browser. Is that OK Ned?

comment:4 Changed 14 years ago by Ned Field

I think we still want a link to the user guide ( somewhere in the application.

Could we have this page pop up from a "User Guide" option listed under the "HELP" menu?

I think we can live without that "Online Help" sub-app (which also gave access to the OpenSHA Overview, the Glossary, etc). These things will be accessible from the web page that pops up.

Make sense?

comment:5 Changed 14 years ago by Kevin Milner

Status: newassigned

OK sounds good, I'll get on that. I also fixed all of the URLs.

comment:6 Changed 14 years ago by Kevin Milner

Resolution: fixed
Status: assignedclosed
Summary: "Get Info" button on the attenuation relationship appReplace Help in Attenuation Relationship App, add Help to Hazard Curve Apps

fixed in [7266]. Also added new help menu to hazard curve apps

Note: See TracTickets for help on using tickets.