PWV-3: Creating ohif:log package and partially refactoring ohif:measurements

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:21:46 +01:00
1 parent f3f32518c6
commit 60aa1d0982
76 files changed
+410 -479

No files matched your search

@@ -1,3 +1,5 @@
import { OHIF } from 'meteor/ohif:core';
Session.setDefault('showLoadingText', true);
Template.studylistResult.helpers({
@@ -149,7 +151,7 @@ function search() {
Meteor.call('StudyListSearch', filter, (error, studies) => {
console.log('StudyListSearch');
if (error) {
log.warn(error);
OHIF.log.warn(error);
return;
}
@@ -1,9 +1,11 @@
import { OHIF } from 'meteor/ohif:core';
// Maybe we should use regular StudyList collection?
StudyListSelectedStudies = new Meteor.Collection(null);
StudyListSelectedStudies._debugName = 'StudyListSelectedStudies';
function handleShiftClick(studyRow, data) {
//log.info('shiftKey');
//OHIF.log.info('shiftKey');
var studyInstanceUid = studyRow.attr('studyInstanceUid');
// Select all rows in between these two rows
@@ -60,7 +62,7 @@ function handleShiftClick(studyRow, data) {
}
function handleCtrlClick(studyRow, data) {
//log.info('ctrlKey');
//OHIF.log.info('ctrlKey');
var studyInstanceUid = studyRow.attr('studyInstanceUid');
if (studyRow.hasClass('active')) {
@@ -78,7 +80,7 @@ function handleCtrlClick(studyRow, data) {
// Set this as the previously selected row, so the user can
// use Shift to select from this point onwards
StudyList.previouslySelected = studyRow;
log.info('StudyList PreviouslySelected set: ' + studyRow.index());
OHIF.log.info('StudyList PreviouslySelected set: ' + studyRow.index());
}
}
@@ -113,7 +115,7 @@ Template.studylistStudy.events({
handleCtrlClick(studyRow, data);
} else {
// Select a single study
//log.info('Regular click');
//OHIF.log.info('Regular click');
// Clear all selected studies
StudyListSelectedStudies.remove({});
@@ -121,7 +123,7 @@ Template.studylistStudy.events({
// Set the previous study to the currently clicked-on study
StudyList.previouslySelected = studyRow;
//log.info('StudyList PreviouslySelected set: ' + studyRow.index());
//OHIF.log.info('StudyList PreviouslySelected set: ' + studyRow.index());
// Set the current study as selected
StudyListSelectedStudies.insert(data);
@@ -163,4 +165,4 @@ Template.studylistStudy.events({
}
}
});
});