Commit 6f601f3a authored by Daniel Suarez Souto's avatar Daniel Suarez Souto
Browse files

updated prograganda chart for categories

parent 609014b6
......@@ -385,8 +385,8 @@
},
setPDF: function(news, index) {
function loadPDF() {
/*var uri= "http://trivalent-resources.cluster.gsi.dit.upm.es/"+news['magazine'].toLowerCase()+"/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];*/
var uri= "http://localhost:8080/magazines/"+news['magazine'].toLowerCase()+"/data/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];
var uri= "http://trivalent-resources.cluster.gsi.dit.upm.es/"+news['magazine'].toLowerCase()+"/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];
/*var uri= "http://localhost:8080/magazines/"+news['magazine'].toLowerCase()+"/data/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];*/
//console.log(uri)
$('#article'+index).off();
$('#article'+index+' li#tabArticle a').on('shown.bs.tab', function(event) {
......@@ -451,6 +451,10 @@
$('#'+element.parentElement.id).animate({scrollTop: $('#'+element.parentElement.id).scrollTop() + $('#'+element.parentElement.id + ' span').position().top - 200}, 400)
},
getCategory: function(category){
var arr=category["rdfs:label"].split("/")
return arr[arr.length-1]
}
});
</script>
......
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