Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
09561b56
Commit
09561b56
authored
Oct 17, 2014
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PATCH for duplicate-unique_ids. real-solution:fix the db
parent
95c34810
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
83 additions
and
10 deletions
+83
-10
.gitignore
.gitignore
+59
-0
explorerjs.html
explorerjs.html
+9
-0
extras_explorerjs.js
extras_explorerjs.js
+3
-7
mapael.php
geomap2/php/mapael.php
+2
-3
settings_explorerjs.js
settings_explorerjs.js
+1
-0
sigma.parseCustom.js
tinawebJS/js/sigma.parseCustom.js
+2
-0
sigmaUtils.js
tinawebJS/js/sigmaUtils.js
+7
-0
No files found.
.gitignore
0 → 100644
View file @
09561b56
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
explorerjs.html
View file @
09561b56
...
...
@@ -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>
...
...
extras_explorerjs.js
View file @
09561b56
...
...
@@ -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
(){
...
...
geomap2/php/mapael.php
View file @
09561b56
...
...
@@ -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
();
...
...
settings_explorerjs.js
View file @
09561b56
...
...
@@ -9,6 +9,7 @@ var getAdditionalInfo=false;//for topPapers div
var
mainfile
=
false
;
var
dataFolderTree
=
{};
var
gexfDict
=
{};
var
egonode
=
{}
var
bridge
=
{};
external
=
""
;
...
...
tinawebJS/js/sigma.parseCustom.js
View file @
09561b56
...
...
@@ -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
;
...
...
tinawebJS/js/sigmaUtils.js
View file @
09561b56
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment