[WIP] Changing OHIFStudyMetadataSource to StudyList namespace

This commit is contained in:
Emanuel F. Oliveira 2017-02-07 18:08:48 -02:00 committed by Eloízio Salgado
parent 6cfb4f16eb
commit 638c3df924
4 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ const initHangingProtocol = () => {
const layoutManager = OHIF.viewerbase.layoutManager;
// Instantiate StudyMetadataSource: necessary for Hanging Protocol to get study metadata
const studyMetadataSource = new OHIFStudyMetadataSource();
const studyMetadataSource = new StudyList.classes.OHIFStudyMetadataSource();
// Creates Protocol Engine object with required arguments
const ProtocolEngine = new HP.ProtocolEngine(layoutManager, studyMetadataList, [], studyMetadataSource);

View File

@ -1,8 +1,12 @@
import { Viewerbase } from 'meteor/ohif:viewerbase';
import { OHIFStudyMetadataSource } from './OHIFStudyMetadataSource';
StudyList = {
functions: {},
callbacks: {}
callbacks: {},
classes: {
OHIFStudyMetadataSource
}
};
StudyList.callbacks.dblClickOnStudy = dblClickOnStudy;

View File

@ -65,5 +65,4 @@ Package.onUse(function(api) {
// Export the Collections
api.export('StudyListStudies', 'client');
api.export('StudyListSelectedStudies', 'client');
api.export('OHIFStudyMetadataSource', 'client');
});

View File

@ -114,10 +114,7 @@ Template.viewerMain.onRendered(() => {
// Enable hotkeys
hotkeyUtils.enableHotkeys();
Session.set('OHIFViewerMainRendered', {
instance,
date: new Date()
});
Session.set('OHIFViewerMainRendered', {});
});