Commit 94b7c701 authored by Romain Loth's avatar Romain Loth

Merge branch 'master' of github.com:moma/ProjectExplorer

parents e64c1dfa 696ab17b
...@@ -108,7 +108,7 @@ foreach ($wos_ids as $id => $score) { ...@@ -108,7 +108,7 @@ foreach ($wos_ids as $id => $score) {
$sql = 'SELECT data FROM ISITITLE WHERE id='.$id.' group by data'; $sql = 'SELECT data FROM ISITITLE WHERE id='.$id.' group by data';
foreach ($base->query($sql) as $row) { foreach ($base->query($sql) as $row) {
$external_link="<a href=http://google.com/webhp?#q=".urlencode('"'.$row['data'].'"')." target=blank>".' <img width=15px src="'.$twjs.'img/google.png"></a>'; $external_link="<a href=http://google.com/webhp?#q=".urlencode('"'.$row['data'].'"')." target=blank>".' <img width=15px src="'.'img/google.png"></a>';
$output.="<li title='".$score."'>"; $output.="<li title='".$score."'>";
$output.=$external_link.imagestar($score,$factor,$twjs).' '; $output.=$external_link.imagestar($score,$factor,$twjs).' ';
$output.='<a href="JavaScript:newPopup(\''.$twjs.'default_doc_details.php?gexf='.urlencode($gexf).'&index='.$table.'&query='.urlencode($query).'&type='.urlencode($_GET["type"]).'&id='.$id.' \')">'.$row['data']." </a> "; $output.='<a href="JavaScript:newPopup(\''.$twjs.'default_doc_details.php?gexf='.urlencode($gexf).'&index='.$table.'&query='.urlencode($query).'&type='.urlencode($_GET["type"]).'&id='.$id.' \')">'.$row['data']." </a> ";
...@@ -294,10 +294,10 @@ function imagestar($score,$factor,$twjs) { ...@@ -294,10 +294,10 @@ function imagestar($score,$factor,$twjs) {
if ($score > .5) { if ($score > .5) {
$star_image = ''; $star_image = '';
for ($s = 0; $s < min(5,$score/$factor); $s++) { for ($s = 0; $s < min(5,$score/$factor); $s++) {
$star_image.='<img src="'.$twjs.'img/star.gif" border="0" >'; $star_image.='<img src="'.'img/star.gif" border="0" >';
} }
} else { } else {
$star_image.='<img src="'.$twjs.'img/stargrey.gif" border="0">'; $star_image.='<img src="'.'img/stargrey.gif" border="0">';
} }
return $star_image; return $star_image;
} }
......
...@@ -32,7 +32,7 @@ echo ' ...@@ -32,7 +32,7 @@ echo '
<div id="tabs"> <div id="tabs">
<ul> <ul>
<li><a href="#tabs-1">Selected Document</a></li> <li><a href="#tabs-1">Selected Document</a></li>
<li><a href="full_doc_list.php?'.'gexf='.urlencode($gexf).'&query='.urlencode($_GET["query"]).'&type='.urlencode($_GET["type"]).'">Full list</a></li>'; <li><a href="full_doc_list.php?'.'gexf='.urlencode($gexf).'&query='.urlencode($_GET["query"]).'&index='.$_GET["index"].'&type='.urlencode($_GET["type"]).'">Full list</a></li>';
echo '</ul>'; echo '</ul>';
echo '<div id="tabs-1">'; echo '<div id="tabs-1">';
......
...@@ -23,7 +23,7 @@ foreach ($base->query($sql) as $row) { ...@@ -23,7 +23,7 @@ foreach ($base->query($sql) as $row) {
$table = ""; $table = "";
$column = ""; $column = "";
$id=""; $id="";
$twjs="API_CNRS/"; // submod path of TinaWebJS $twjs=end( explode("/",getcwd()) )."/"; // LOCALDB folder.
if($type=="social"){ if($type=="social"){
$table = "ISIAUTHOR"; $table = "ISIAUTHOR";
...@@ -34,7 +34,7 @@ if($type=="social"){ ...@@ -34,7 +34,7 @@ if($type=="social"){
} }
if($type=="semantic"){ if($type=="semantic"){
$table = "ISItermsListV1"; $table = $_GET["index"];
$column = "data"; $column = "data";
$id = "id"; $id = "id";
$restriction=''; $restriction='';
...@@ -55,7 +55,6 @@ FROM '.$table.' where ('; ...@@ -55,7 +55,6 @@ FROM '.$table.' where (';
GROUP BY '.$id.' GROUP BY '.$id.'
ORDER BY count('.$id.') DESC ORDER BY count('.$id.') DESC
LIMIT 1000'; LIMIT 1000';
#$queryparsed=$sql;##### #$queryparsed=$sql;#####
$wos_ids = array(); $wos_ids = array();
......
...@@ -7,9 +7,8 @@ $gexf_db = array(); ...@@ -7,9 +7,8 @@ $gexf_db = array();
# $gexf_db["data/ClimateChange/ClimateChangeV1.gexf"] = "data/ClimateChange/wosclimatechange-61715-1-wosclimatechange-db(2).db"; # $gexf_db["data/ClimateChange/ClimateChangeV1.gexf"] = "data/ClimateChange/wosclimatechange-61715-1-wosclimatechange-db(2).db";
$gexf_db["data/ClimateChange/Maps_S_800.gexf"] = "data/ClimateChange/wos_climate-change_title_2014-2015.db"; $gexf_db["data/ClimateChange/Maps_S_800.gexf"] = "data/ClimateChange/wos_climate-change_title_2014-2015.db";
$gexf_db["data/AXA/RiskV2PageRank1000.gexf"] = "data/AXA/data.db";
$gexf_db["data/AXA/EditedJan20151980 nodes V2 PageRank.gexf"] = "data/AXA/data.db"; $gexf_db["data/AXA/RiskV2PageRank2500.gexf"] = "data/AXA/data.db";
$gexf_db["data/AXA/RiskV2PageRank.gexf"] = "data/AXA/data.db";
$gexf_db["data/AXA/RiskV2PageRank5000.gexf"] = "data/AXA/data.db"; $gexf_db["data/AXA/RiskV2PageRank5000.gexf"] = "data/AXA/data.db";
$gexf= str_replace('"','',$_GET["gexf"]); $gexf= str_replace('"','',$_GET["gexf"]);
......
...@@ -4,16 +4,21 @@ ...@@ -4,16 +4,21 @@
"title":"ISITITLE", "title":"ISITITLE",
"date":"ISIpubdate", "date":"ISIpubdate",
"abstract":"ISIABSTRACT", "abstract":"ISIABSTRACT",
"first" : "RiskV2PageRank5000.gexf", "first" : "RiskV2PageRank1000.gexf",
"gexfs": { "gexfs": {
"RiskV2PageRank5000.gexf": { "RiskV2PageRank1000.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"}, "social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"} "semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
}, },
"RiskV2PageRank.gexf": { "RiskV2PageRank2500.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
},
"RiskV2PageRank5000.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"}, "social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"} "semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
} }
} }
}, },
"data/ClimateChange": { "data/ClimateChange": {
......
...@@ -21,7 +21,7 @@ var TW = {} ...@@ -21,7 +21,7 @@ var TW = {}
// // "data/Elisa__Omodei.gexf", // // "data/Elisa__Omodei.gexf",
]; ];
TW.APINAME = "LOCALDB/"; TW.APINAME = "LOCALDB/";
TW.tagcloud_limit = 20; TW.tagcloud_limit = 50;
TW.bridge={}; TW.bridge={};
TW.bridge["forFilteredQuery"] = "php/bridgeClientServer_filter.php"; TW.bridge["forFilteredQuery"] = "php/bridgeClientServer_filter.php";
TW.bridge["forNormalQuery"] = "php/bridgeClientServer.php"; TW.bridge["forNormalQuery"] = "php/bridgeClientServer.php";
......
...@@ -295,8 +295,11 @@ function dictfyGexf( gexf , categories ){ ...@@ -295,8 +295,11 @@ function dictfyGexf( gexf , categories ){
var attention = false var attention = false
if( TW.Clusters.length == 0 ) { if( TW.Clusters.length == 0 ) {
if( nodes[1].attributes["cluster_index"] ) { for( var i in nodes ) {
attention = true; if( nodes[i].attributes["cluster_index"] ) {
attention = true;
}
break
} }
} }
......
Markdown is supported
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