changeset 1712:fb57536fcc5f

documentation
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2020 16:49:04 +0100
parents a4207b4f560b
children aec45e0b2528
files Applications/StoneWebViewer/WebApplication/configuration.json Applications/StoneWebViewer/WebApplication/index.html
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/configuration.json	Mon Nov 30 16:43:58 2020 +0100
+++ b/Applications/StoneWebViewer/WebApplication/configuration.json	Mon Nov 30 16:49:04 2020 +0100
@@ -50,6 +50,7 @@
 
     /**
      * Enables/disables the button to download the display study.
+     * Only used if "OrthancApiRoot" is properly set.
      **/
     "DownloadStudyEnabled" : true,
 
@@ -61,13 +62,16 @@
      * set, all the requests for dynamic actions will be rejected.
      * https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
      **/
-    "ExpectedMessageOrigin" : "http://localhost:8042"
+    "ExpectedMessageOrigin" : "http://localhost:8042",
 
     /**
      * The following parameter can be set if running the Stone Web
      * viewer from Orthanc, but without using the associated plugin.
-     * Using the plugin would overwrite this setting.
+     * Using the plugin would overwrite this setting. This will enable
+     * features that are only available if the Orthanc REST API is
+     * accessible (download of studies, and playing videos). This
+     * option is typically used by the developers of Stone.
      **/
-    // "OrthancApiRoot" : ".."
+    "OrthancApiRoot" : ".."
   }
 }
--- a/Applications/StoneWebViewer/WebApplication/index.html	Mon Nov 30 16:43:58 2020 +0100
+++ b/Applications/StoneWebViewer/WebApplication/index.html	Mon Nov 30 16:49:04 2020 +0100
@@ -673,7 +673,7 @@
                 
             <div v-if="status == 'video'" class="wvPaneOverlay">
               <div v-if="!('OrthancApiRoot' in globalConfiguration) || videoUri.length == 0">
-                [ cannot play videos using only DICOMweb yet ]
+                [ cannot play videos using DICOMweb yet ]
               </div>
               <div v-if="'OrthancApiRoot' in globalConfiguration && videoUri.length > 0">
                 <video class="wvVideo" autoplay="" loop="" controls="" preload="auto" type="video/mp4"