Add option to view online doc

Description

When clicking on HELP button, the application should open the UserManual.pdf.

If this is missing, clickable links to the online documentation could be prompted to the user.

Alternatively, we can open a submenu with two buttons: “Open User Manual PDF”, “See online doc”

as for the PDF version, the clickable link should link to the correct online version (GithHub branch)

Environment

None

Attachments

1

relates to

Activity

Alessandro Domanico January 19, 2023 at 3:08 PM

Maybe the issue is not clear… if the documentation file is missing (or there are errors in settings) an error message is shown.

The improvement is to redirect the user to the online doc. The idea is to provide a clickable link (that one can also not click) rather than just open the browser.

We always redirect users to the online doc, I don’t see what to discuss about.

miz January 19, 2023 at 1:03 PM
Edited

If the issue is “The issue states: if offline doc is not found, provide link to the online doc”, I don’t agree with the issue and to me it can be closed. And we did not discuss before the idea of going online for the manual.

Alessandro Domanico January 19, 2023 at 12:53 PM

  • The point has never been which one is better between online and offline.

  • The point of the issue is “IF” offline doc is not found then redirect to the online one.

  • The offline HTML could also not be found locally as PDF does, hence still we need to redirect the user online in such case

  • We further increase the size of the package (with a lot of images screnshots, wasting the planet )

  • Usually users want to print the manual or saving it in another folder, thing that with PDF is way longer easier than an HTML page for a standard user.

  • I don’t know how we reached this point for a very simple issue 😝

 

👉 The issue states: if offline doc is not found, provide link to the online doc
For HTML version we can tackle in another issue (because it changes scripts and release process also)

miz January 19, 2023 at 12:11 PM

I analyzed the topic and since I’ve been working quite a bit on the documentation part, I’ve come down to this proposal.

I think we should include both a PDF and an HTML version of the manual - as most software do - locally. The HTML manual can be generate with ascidoctor directly in build phase as we do for the pdf. If the user chooses the HTML version, a browser pops up and directly open the file:///OH_HOME/doc/html/UserManual.html

This will be render as the following:

https://www.open-hospital.org/wp-content/OH_manuals/user/UserManual.html

In this way:

  • the html manual has a builtin index that makes the navigation i the manual easier

  • the PDF version allows the user to print / read the manual

  • we don’t require internet access for the client

  • the local version of the manual is related to client version: the online manual is just the latest (we could set this into the link, something like “Manual latest version - online” or similar)

  • local access is WAY faster than browsing a remote web server

  • we save the planet (kind of just kidding, but firing up an internet connection through continents anytime an user has to check some feature is overkill )

  • we don’t associate some client configuration to the OH web server: we might change something in the future (URL, anything, etc.) and we won’t have the possibility of changing the configuration of all the deployed clients.

We can obviously leave the link or button to the online version.

Alessandro Domanico January 18, 2023 at 10:23 AM

Is there any update on this issue?

Done

Details

Assignee

Reporter

Labels

Components

Fix versions

Original estimate

Time tracking

1h 30m logged6h 30m remaining

Sprint

Priority

Created October 28, 2021 at 10:48 PM
Updated February 9, 2023 at 10:13 PM
Resolved January 24, 2023 at 5:49 PM