[WIP] Changing OHIFStudyMetadataSource to StudyList namespace
This commit is contained in:
parent
6cfb4f16eb
commit
638c3df924
@ -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);
|
||||
|
||||
@ -1,8 +1,12 @@
|
||||
import { Viewerbase } from 'meteor/ohif:viewerbase';
|
||||
import { OHIFStudyMetadataSource } from './OHIFStudyMetadataSource';
|
||||
|
||||
StudyList = {
|
||||
functions: {},
|
||||
callbacks: {}
|
||||
callbacks: {},
|
||||
classes: {
|
||||
OHIFStudyMetadataSource
|
||||
}
|
||||
};
|
||||
|
||||
StudyList.callbacks.dblClickOnStudy = dblClickOnStudy;
|
||||
|
||||
@ -65,5 +65,4 @@ Package.onUse(function(api) {
|
||||
// Export the Collections
|
||||
api.export('StudyListStudies', 'client');
|
||||
api.export('StudyListSelectedStudies', 'client');
|
||||
api.export('OHIFStudyMetadataSource', 'client');
|
||||
});
|
||||
|
||||
@ -114,10 +114,7 @@ Template.viewerMain.onRendered(() => {
|
||||
// Enable hotkeys
|
||||
hotkeyUtils.enableHotkeys();
|
||||
|
||||
Session.set('OHIFViewerMainRendered', {
|
||||
instance,
|
||||
date: new Date()
|
||||
});
|
||||
Session.set('OHIFViewerMainRendered', {});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user