From 2d3e94fab064bbf558bbff452d2d3478c5537737 Mon Sep 17 00:00:00 2001 From: Erich Bremer Date: Wed, 11 Nov 2020 09:49:31 -0500 Subject: [PATCH] Update convert_heatmaps.js fix delimiter for csv and uuencode path parameters to PathDB --- convert_heatmaps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert_heatmaps.js b/convert_heatmaps.js index 770697f..76389e4 100644 --- a/convert_heatmaps.js +++ b/convert_heatmaps.js @@ -73,7 +73,7 @@ url = clio.host; const fileTemps = {}; var manifest = []; const mfData = [] -manifest = fs.readFileSync(inputFolder + '/' + clio.manifest).toString().split('\n'); +manifest = fs.readFileSync(inputFolder + '/' + clio.manifest).toString().split('\r\n'); console.log('Reading manifest file.'); @@ -163,7 +163,7 @@ function convert(filename,metadata){ var options = { host: url, port: 80, - path: '/idlookup/' + clio.collection + '/' + study_id + '/' + subject_id + '/' + image_id + '?_format=json', + path: encodeURI('/idlookup/' + clio.collection + '/' + study_id + '/' + subject_id + '/' + image_id + '?_format=json'), // authentication headers headers: { // Authorization: 'Basic ',