From 65bb70cfc24f262ad5227c38e1d4a2ae08ca174a Mon Sep 17 00:00:00 2001 From: Andy Lassiter Date: Thu, 19 Dec 2024 14:11:18 -0700 Subject: [PATCH] PIXI-157: Need to supply the url for patient derived tumors. --- .../resources/scripts/xnat/plugin/pixi/pixi-xenograft.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/resources/META-INF/resources/scripts/xnat/plugin/pixi/pixi-xenograft.js b/src/main/resources/META-INF/resources/scripts/xnat/plugin/pixi/pixi-xenograft.js index c410b75..253d2d3 100644 --- a/src/main/resources/META-INF/resources/scripts/xnat/plugin/pixi/pixi-xenograft.js +++ b/src/main/resources/META-INF/resources/scripts/xnat/plugin/pixi/pixi-xenograft.js @@ -60,13 +60,14 @@ XNAT.plugin.pixi.pdxs = getObject(XNAT.plugin.pixi.pdxs || {}); } class XenograftManager { - constructor(xenograftType) { + constructor(xenograftType, urlRoot) { this.xenograftType = xenograftType; + this.urlRoot = urlRoot; this.data = []; } url(append) { - let url = '/xapi/pixi/' + this.xenograftType.toLowerCase().replaceAll(/\s/g,'') + '/'; + let url = this.urlRoot url = append ? url + append : url; return restUrl(url); } @@ -354,7 +355,7 @@ XNAT.plugin.pixi.pdxs = getObject(XNAT.plugin.pixi.pdxs || {}); class PDXManager extends XenograftManager { constructor() { - super('Patient-Derived Tumor'); + super('Patient-Derived Tumor', '/xapi/pixi/pdx/'); } getSpawnerElements() { @@ -374,7 +375,7 @@ XNAT.plugin.pixi.pdxs = getObject(XNAT.plugin.pixi.pdxs || {}); class CellLineManager extends XenograftManager { constructor() { - super('Cell Line'); + super('Cell Line', '/xapi/pixi/cellline/'); } getSpawnerElements() {