Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
Loading