Study metadata is added on study browser click

This commit is contained in:
Erik Ziegler committed 2016-07-22 11:03:01 +02:00
1 parent 757513906c
commit 521de2fad3
13 files changed
+117 -179

No files matched your search

@@ -9,7 +9,7 @@ $inputPlaceholderColor = lightgray
$studyListToolbarHeight = 75px
$theadBackgroundColor = #151a1f
$tablePadding = 60px
$tablePadding = 8%
$bodyCellHeight = 40px
.studyListToolbar
@@ -47,6 +47,7 @@ $bodyCellHeight = 40px
z-index: 1
#studyListContainer
width: 100%
padding: 0 $tablePadding
position: absolute
z-index: 2
@@ -49,6 +49,17 @@ getStudyMetadata = function(studyInstanceUid, doneCallback, failCallback) {
// and instance number in ascending order
sortStudy(study);
// Add additional metadata to our study from the worklist
var worklistStudy = WorklistStudies.findOne({
studyInstanceUid: study.studyInstanceUid
});
if (!worklistStudy) {
return;
}
$.extend(study, worklistStudy);
// Then we store this data in the cache variable
StudyMetaData[studyInstanceUid] = study;