Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5243:f00811d14348 | 5244:72dfa0ac84eb |
---|---|
483 !s.IsHttpServerSecure) { | 483 !s.IsHttpServerSecure) { |
484 $('.warning-insecure').show(); | 484 $('.warning-insecure').show(); |
485 } else { | 485 } else { |
486 $('.warning-insecure').hide(); | 486 $('.warning-insecure').hide(); |
487 } | 487 } |
488 | |
489 // New in Orthanc 1.12.0 | |
490 if ('HasLabels' in s && | |
491 s.HasLabels) { | |
492 $('#lookup-study-labels-div').show(); | |
493 } else { | |
494 $('#lookup-study-labels-div').hide(); | |
495 } | |
488 } | 496 } |
489 }); | 497 }); |
490 }); | 498 }); |
491 | 499 |
492 | 500 |
553 else if (input.id == 'lookup-study-description') { | 561 else if (input.id == 'lookup-study-description') { |
554 lookup['Query']['StudyDescription'] = input.value; | 562 lookup['Query']['StudyDescription'] = input.value; |
555 } | 563 } |
556 else if (input.id == 'lookup-study-date-specific') { | 564 else if (input.id == 'lookup-study-date-specific') { |
557 // Ignore | 565 // Ignore |
566 } | |
567 else if (input.id == 'lookup-study-labels') { | |
568 // New in Orthanc 1.12.0 | |
569 lookup['WithLabels'] = input.value.split(' '); | |
558 } | 570 } |
559 else { | 571 else { |
560 console.error('Unknown lookup field: ' + input.id); | 572 console.error('Unknown lookup field: ' + input.id); |
561 } | 573 } |
562 } | 574 } |