Wondering where and how to suggest changes to Stone Viewer ?

30 views
Skip to first unread message

Stephen Douglas Scotti

unread,
May 1, 2021, 8:19:48 PM5/1/21
to Orthanc Users
Started playing around with the front-end for the Stone Viewer.  Not really a React or VueJS person, but I made a little change in my code to display the Title / Description of a PDF document on hovering over the PDF icon in the series list.

Looks like it is line 214-215 in the mercurial repo:

<i v-if="series[seriesIndex].type == stone.ThumbnailType.PDF" class="wvSerieslist__placeholderIcon fa fa-file-pdf"></i>

changed to this:

<i v-if="series[seriesIndex].type == stone.ThumbnailType.PDF"
class="wvSerieslist__placeholderIcon fa fa-file-pdf" v-bind:title="series[seriesIndex].tags[SERIES_DESCRIPTION]"></i>

Probably would vary depending up how the PDF's are attached, but in my development setup the series tags for a PDF report are like this for now.  Will probably edit Manufacturer and Description to be something more meaningful, but the code change sets the title for the element to the SeriesDescription.

{
   "ExpectedNumberOfInstances" : null,
   "ID" : "f48d542b-e51d76eb-08f23a05-89a7b97b-d2bd0975",
   "Instances" : [ "61b53390-5eb8e3f0-a2990acd-78ee3010-081f6ccc" ],
   "IsStable" : true,
   "LastUpdate" : "20210501T233816",
   "MainDicomTags" : {
      "Manufacturer" : "REPORT",
      "Modality" : "OT",
      "OperatorsName" : "1:",
      "SeriesDate" : "20210501",
      "SeriesDescription" : "PRELIM",
      "SeriesInstanceUID" : "1.2.276.0.7230010.3.1.3.313263616.1.1619912296.738752",
      "SeriesTime" : "233816.000000"
   },
   "ParentStudy" : "ffee6954-c5e90bfc-01bdde15-5ec3e67c-68014205",
   "Status" : "Unknown",
   "Type" : "Series"
}

Reply all
Reply to author
Forward
0 new messages