Mercurial > hg > orthanc
comparison OrthancServer/OrthancExplorer/explorer.js @ 4525:8262ffb393ff
The numbering of sequences in Orthanc Explorer now uses the DICOM convention (starts at 1)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Feb 2021 15:19:40 +0100 |
parents | 22abc6851191 |
children | 569d9ef165b1 |
comparison
equal
deleted
inserted
replaced
4524:f8660649ae96 | 4525:8262ffb393ff |
---|---|
854 else if (dicom[i]["Type"] == 'Sequence') | 854 else if (dicom[i]["Type"] == 'Sequence') |
855 { | 855 { |
856 c = []; | 856 c = []; |
857 for (var j = 0; j < dicom[i]["Value"].length; j++) { | 857 for (var j = 0; j < dicom[i]["Value"].length; j++) { |
858 c.push({ | 858 c.push({ |
859 label: 'Item ' + j, | 859 label: 'Item ' + (j + 1), |
860 children: ConvertForTree(dicom[i]["Value"][j]) | 860 children: ConvertForTree(dicom[i]["Value"][j]) |
861 }); | 861 }); |
862 } | 862 } |
863 | 863 |
864 result.push({ | 864 result.push({ |