Skip to content

Commit

Permalink
Merge pull request #47 from HsuTzu26/master
Browse files Browse the repository at this point in the history
Add WSI viewer config and fit its server URL
  • Loading branch information
cylien authored Jan 11, 2025
2 parents 665c62e + 7711e16 commit 42b4529
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions search/data/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"enableRetrieveURI": true,
"includefield": false,
"target": "../../bluelight/html/start.html",
"target-SM": "../../bluelight/html/start.html",
"target-SM": "https://ditto-wsiviewer.dicom.tw/viewer",
"server-SM": "RACCOONORG",
"token": {
"apikey":"",
"bearer":""
Expand All @@ -34,7 +35,8 @@
"enableRetrieveURI": true,
"includefield": false,
"target": "../../bluelight/html/start.html",
"target-SM": ".../../bluelight/html/start.html",
"target-SM": "https://ditto-wsiviewer.dicom.tw/viewer",
"server-SM": "RACCOONORG",
"token": {
"apikey":"",
"bearer":""
Expand Down
3 changes: 2 additions & 1 deletion search/scripts/onload.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ function createTable() {
if (!this.Modality.includes("SM"))
cell.alt = ConfigLog.QIDO.target + '?' + "StudyInstanceUID=" + this.Study.StudyUID;
else
cell.alt = ConfigLog.QIDO.targetSM + '?' + "StudyInstanceUID=" + this.Study.StudyUID;
// cell.alt = ConfigLog.QIDO.targetSM + '?' + "StudyInstanceUID=" + this.Study.StudyUID;
cell.alt = ConfigLog.QIDO.targetSM + "?server=" + ConfigLog.QIDO.serverSM + '&' + "studyUid=" + this.Study.StudyUID;

cell.onclick = function () { window.open(this.alt, '_blank'); }
var cell = row1.insertCell(1); cell.innerHTML = "StudyInstanceUID=" + this.Study.StudyUID;
Expand Down
3 changes: 3 additions & 0 deletions search/scripts/readsome.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ function readConfigJson(url, onLosdSerch) {
tempConfig.includefield = tempDicomResponse["includefield"];
tempConfig.target = tempDicomResponse["target"];
tempConfig.targetSM = tempDicomResponse["target-SM"];
tempConfig.serverSM = tempDicomResponse["server-SM"];
tempConfig.enableRetrieveURI = tempDicomResponse["enableRetrieveURI"];
tempConfig.token = tempDicomResponse["token"];

Expand All @@ -156,6 +157,7 @@ function readConfigJson(url, onLosdSerch) {
tempConfig.includefield = tempDicomResponse["includefield"];
tempConfig.target = tempDicomResponse["target"];
tempConfig.targetSM = tempDicomResponse["target-SM"];
tempConfig.serverSM = tempDicomResponse["server-SM"];
tempConfig.enableRetrieveURI = tempDicomResponse["enableRetrieveURI"];
tempConfig.token = tempDicomResponse["token"];

Expand All @@ -171,6 +173,7 @@ function readConfigJson(url, onLosdSerch) {
tempConfig.includefield = tempDicomResponse["includefield"];
tempConfig.target = tempDicomResponse["target"];
tempConfig.targetSM = tempDicomResponse["target-SM"];
tempConfig.serverSM = tempDicomResponse["server-SM"];
tempConfig.enableRetrieveURI = tempDicomResponse["enableRetrieveURI"];
tempConfig.token = tempDicomResponse["token"];

Expand Down

0 comments on commit 42b4529

Please sign in to comment.