Skip to content

Commit

Permalink
Merge pull request #1072 from camicroscope/fix-port-xml
Browse files Browse the repository at this point in the history
Fix port xml
  • Loading branch information
birm authored Jan 15, 2025
2 parents 722a9b9 + 74649ba commit 8c14a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/port/import.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ <h3 class="h2">File Contents</h3>
<br>
<div class="btns">
<button id="convert_btn btn1" class="buttons" onclick="xml2geo()" type="button">Convert from XML</button>
<button id="prepare_btn btn2" class="buttons" onclick="prepareAnnot()" type="button">Prepare JSON</button>
</div>
<br>
<textarea name="input" class="slide" id="output" rows="5" cols="75" placeholder="Output:"></textarea><br>
Expand Down
2 changes: 2 additions & 0 deletions apps/port/xml2geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ function xml2geo() {
output['provenance']['image']['slide'] = document.getElementById('slide_id').value;
output['provenance']['analysis']['execution'] = document.getElementById('annot_name').value;
output['properties']['annotations']['name'] = document.getElementById('annot_name').value;
output['provenance']['analysis']['name'] = document.getElementById('annot_name').value;
output['provenance']['analysis']['execution_id'] = document.getElementById('annot_name').value;
document.getElementById('output').innerHTML = JSON.stringify(output);
}

0 comments on commit 8c14a93

Please sign in to comment.