Commit 09561b56 authored by PkSM3's avatar PkSM3

PATCH for duplicate-unique_ids. real-solution:fix the db

parent 95c34810
CSSCouncilCandidates2013.sqlite
common/*
css/*
directory_iscn.php
getgraph_iscn.php
jobs_stat-prep_from_array.php
parametres.php
search_scholar.php
watch.sh
Highcharts-2.2.0/*
community.db
custom/*
directory_iscpif.php
gexf_generator.php
js/*
print_directory.php
src/*
README.md
community_tags.html
custom_sites/*
directory_unitwin.php
labs_list.php
print_jobs_directory.php
stat-prep.php
about.html
compile.sh
directory.php
elections_directory_content.php
index.html
less/*
print_scholar_directory.php
stat-prep_from_array.php
analytics.php
councillorsECCS12.php
directory_content.php
elections_results.php
iscn/*
normalize.php
privacy.html
stats.php
comex_install/*
councilors2012.php
directory_css.php
get_scholar_graph.php
jobmarket.html
orga_list.php
script/*
tinaframe.html
comex_library.php
councilors2012.sqlite
directory_eccs12.php
getgraph.php
jobs_content.php
package.json
search_filter.php
tips.html
community_fixed.db
php/community*.db
community*.db
\ No newline at end of file
......@@ -100,6 +100,15 @@
<label style="margin:0em 2em;" for="unranged-value">selector size</label>
</a>
</li>
<!--
<li>
<a>
<button type="button" onclick="makeEdgeWeightUndef();" class="btn btn-sm">wu</button>
</a>
</li>
-->
</ul>
......
......@@ -5,7 +5,7 @@ function callGeomap(){
db=JSON.stringify('community.db');
if(is_empty(selections)){
// jsonparams='["all"]';
jsonparams='["unique_id"]&unique_id='+getUrlParam.nodeidparam;
jsonparams='["unique_id"]&unique_id='+egonode[getUrlParam.nodeidparam];
} else {
N=getNodesByAtt(catSoc).length;
......@@ -64,14 +64,13 @@ function callGeomap(){
function clickInCountry( CC ) {
pr("in extras.js: you've clicked "+CC)
// pr("in extras.js: you've clicked "+CC)
var results = []
for(var i in Nodes) {
if( !isUndef(Nodes[i].CC) && Nodes[i].CC==CC) results.push(i)
}
$.doTimeout(20,function (){
if(swclickActual=="social") {
......@@ -84,11 +83,8 @@ function clickInCountry( CC ) {
MultipleSelection(oposresults);
return;
}
});
});
}
function callTWJS(){
......
......@@ -38,7 +38,8 @@ if(count($elems)==1){
$unique_id = $_GET["unique_id"];
if($unique_id) {
$sql = "SELECT keywords_ids FROM scholars where unique_id='" . $unique_id . "'";
$unique_id = str_replace( 'D::', '', $unique_id );
$sql = "SELECT keywords_ids FROM scholars where id='" . $unique_id . "'";
#pt($sql);
foreach ($base->query($sql) as $row) {
$keywords_ids = split(',', $row['keywords_ids']);
......@@ -65,8 +66,6 @@ if(count($elems)==1){
}
}
$norm_country = array();
$InvIndCC = array();
......
......@@ -9,6 +9,7 @@ var getAdditionalInfo=false;//for topPapers div
var mainfile=false;
var dataFolderTree = {};
var gexfDict={};
var egonode = {}
var bridge={};
external="";
......
......@@ -618,6 +618,8 @@ function extractFromJson(data,seed){
labels = [];
numberOfDocs=0;
numberOfNGrams=0;
for (var uid in data.ID) egonode[uid] = data.ID[uid]
categories[catSoc]=catSoc;
categories[catSem]=catSem;
......
......@@ -324,4 +324,11 @@ function componentToHex(c) {
function rgbToHex(r, g, b) {
return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
}
//just for fun
function makeEdgeWeightUndef() {
for(var e in partialGraph._core.graph.edges) {
partialGraph._core.graph.edges[e].weight=1;
}
}
\ No newline at end of file
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