Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Sep 30, 2024
1 parent 05c3599 commit 8506df4
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,12 @@ <h3 id="relationtitle">Relationview</h3>
"types":{
"class":{"icon":baseurl+"icons/class.png"},
"geoclass":{"icon":baseurl+"icons/geoclass.png"},
"halfgeoclass":{"icon":baseurl+"icons/halfgeoclass.png"},
"instance":{"icon": baseurl+"icons/instance.png"},
"geoinstance":{"icon":baseurl+"icons/geoinstance.png"}
"geoinstance":{"icon":baseurl+"icons/geoinstance.png"},
"collectionclass":{"icon":baseurl+"icons/collectionclass.png"},
"geocollection":{"icon":baseurl+"icons/geometrycollection.png"},
"featurecollection":{"icon":baseurl+"icons/featurecollection.png"}
},
"core": { "themes": {"responsive": true},"check_callback":true, "data" :[]}}
tree["core"]["data"].push({ "id" : "http://www.w3.org/2002/07/owl#Thing", "icon" : baseurl+"icons/class.png","parent" : "#", "type":"class", "text" : "owl:Thing" })
Expand Down Expand Up @@ -375,17 +379,6 @@ <h3 id="relationtitle">Relationview</h3>
updateTableFromInstance(node)
}
}
}
menuitems["show in map view"]= {
"separator_before": false,
"separator_after": false,
"label": "Show instances in Map View",
"action": function (obj) {
console.log(node)
console.log("Show instances in map view")
var win = window.open("${server_base.toString()}"+"values/-rdf:type/"+node.id.substring(node.id.lastIndexOf('/')+1), '_blank');
win.focus();
}
}
menuitems["lookupdefinition"]= {
"separator_before": false,
Expand All @@ -410,9 +403,11 @@ <h3 id="relationtitle">Relationview</h3>
var data = node[0].id
console.log(data)
console.log(node)
if(data.includes("${server_base.toString()}")){
}
window.open(data, '_blank');
if(node[0].type=="instance" || node[0].type=="geoinstance"){
updateTableFromInstance(node)
}else{
window.open(data, '_blank');
}
});
var to = false;
$('#classsearch').keyup(function () {
Expand Down Expand Up @@ -572,14 +567,14 @@ <h3 id="relationtitle">Relationview</h3>
"id": results[res]["con"]["value"],
"text": results[res]["label"]["value"],
"type": "instance",
"icon": baseurl+"icons/instance.png",
"icon": baseurl+"icons/instance.png"
},0,null,true);
}else{
newnode=ref.create_node(node.id,{
"id":results[res]["con"]["value"],
"type":"instance",
"text": shortenURI(results[res]["con"]["value"]),
"icon": baseurl+"icons/instance.png",
"icon": baseurl+"icons/instance.png"
},0,null,true);
}
}
Expand Down

0 comments on commit 8506df4

Please sign in to comment.