Mercurial > hg > orthanc
diff OrthancServer/OrthancExplorer/explorer.js @ 5244:72dfa0ac84eb db-protobuf
lookup for labels in orthanc explorer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Apr 2023 16:55:55 +0200 |
parents | f00811d14348 |
children | b36f82260f41 |
line wrap: on
line diff
--- a/OrthancServer/OrthancExplorer/explorer.js Thu Apr 06 16:04:23 2023 +0200 +++ b/OrthancServer/OrthancExplorer/explorer.js Thu Apr 06 16:55:55 2023 +0200 @@ -485,6 +485,14 @@ } else { $('.warning-insecure').hide(); } + + // New in Orthanc 1.12.0 + if ('HasLabels' in s && + s.HasLabels) { + $('#lookup-study-labels-div').show(); + } else { + $('#lookup-study-labels-div').hide(); + } } }); }); @@ -556,6 +564,10 @@ else if (input.id == 'lookup-study-date-specific') { // Ignore } + else if (input.id == 'lookup-study-labels') { + // New in Orthanc 1.12.0 + lookup['WithLabels'] = input.value.split(' '); + } else { console.error('Unknown lookup field: ' + input.id); }