Commit afef3ef6 authored by Daniel Suarez Souto's avatar Daniel Suarez Souto
Browse files

fixed bug on dashboard.env

parent b0156629
Pipeline #1154 passed with stages
in 29 seconds
......@@ -541,7 +541,7 @@ H2020 RIA Action Grant No. 740934 under the call SEC-06-FCT-2016 — Developing
},
'categories.name': {
terms: {
field: "taxonomies.rdfs:label.keyword"
field: "taxonomies.rdfs:label.keyword",
size:8,
order: {
_count:"desc"
......@@ -579,22 +579,9 @@ H2020 RIA Action Grant No. 740934 under the call SEC-06-FCT-2016 — Developing
var myids = []
resp.hits.hits.forEach(function(entry){myids.push(entry._id)})
that.ids = myids;
//console.log(that.sources)
/*var sources=that.sources
for (var i=0; i<resp['aggregations']['schema:author']['buckets'].length;i++) {
var key=resp['aggregations']['schema:author']['buckets'][i]["key"]
console.log(key)
if(key in sources)
console.log(sources)
resp['aggregations']['schema:author']['buckets'][i]["key"]=sources[key]
}*/
//resp['aggregations']['schema:author']['buckets'][1]["key"]="Dabiq"
//resp['aggregations']['schema:author']['buckets'][2]["key"]="Rumiyah"
that.data = resp;
//console.log(that.data);
});
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment