OHIF-157 Use OHIF.utils.absoluteUrl which removes the leading “/” from path before calling Meteor.absoluteUrl

This commit is contained in:
Evren Ozkan committed 2017-03-01 16:43:11 -05:00
1 parent 583147c542
commit 82876ddbe7
8 files changed
+23 -13

No files matched your search

@@ -1,4 +1,4 @@
import { Meteor } from "meteor/meteor";
import { OHIF } from 'meteor/ohif:core';
import { getWADORSImageId } from './getWADORSImageId';
/**
@@ -18,7 +18,7 @@ export function getImageId(instance, frame) {
}
if (instance.wadouri) {
var imageId = 'dicomweb:' + Meteor.absoluteUrl(instance.wadouri);
var imageId = 'dicomweb:' + OHIF.utils.absoluteUrl(instance.wadouri);
if (frame !== undefined) {
imageId += '&frame=' + frame;
}
@@ -1,10 +1,9 @@
import { Meteor } from 'meteor/meteor';
import { OHIF } from 'meteor/ohif:core';
/**
* Obtain an imageId for Cornerstone based on the WADO-RS scheme
*
* @param {object} instance metadata object (InstanceMetadata)
* @param {object} instanceMetada metadata object (InstanceMetadata)
* @returns {string} The imageId to be used by Cornerstone
*/
@@ -28,7 +27,7 @@ export function getWADORSImageId(instanceMetada) {
}
const image = {
uri: Meteor.absoluteUrl(instance.wadorsuri),
uri: OHIF.utils.absoluteUrl(instance.wadorsuri),
//imageId : '',
//minPixelValue : 0,
//maxPixelValue : 255,