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
ad4584d1
Commit
ad4584d1
authored
Jun 26, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes for php api
parent
c4b46d94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
default_div.php
LOCALDB/default_div.php
+3
-4
parameters_details.php
LOCALDB/parameters_details.php
+7
-0
No files found.
LOCALDB/default_div.php
View file @
ad4584d1
...
...
@@ -3,7 +3,6 @@
// default informations
$thedb
=
$graphdb
;
$gexf
=
$_GET
[
"gexf"
];
$max_item_displayed
=
6
;
$type
=
$_GET
[
"type"
];
$TITLE
=
"ISITITLE"
;
$query
=
str_replace
(
'__and__'
,
'&'
,
$_GET
[
"query"
]
);
...
...
@@ -97,9 +96,10 @@ $count=0;
$all_terms_from_selected_projects
=
array
();
// list of terms for the top 6 project selected
$output
=
""
;
// to filter under some conditions
$to_display
=
true
;
$count
=
0
;
foreach
(
$wos_ids
as
$id
=>
$score
)
{
if
(
$total_count
<
$count_max
)
{
// retrieve publication year
...
...
@@ -112,7 +112,6 @@ foreach ($wos_ids as $id => $score) {
$sql
=
'SELECT data FROM ISITITLE WHERE id='
.
$id
.
' group by data'
;
$output
=
""
;
foreach
(
$base
->
query
(
$sql
)
as
$row
)
{
$external_link
=
"<a href=http://google.com/webhp?#q="
.
urlencode
(
'"'
.
$row
[
'data'
]
.
'"'
)
.
" target=blank>"
.
' <img width=15px src="libs/img2/google.png"></a>'
;
$output
.=
"<li title='"
.
$score
.
"'>"
;
...
...
@@ -133,7 +132,7 @@ foreach ($wos_ids as $id => $score) {
}
}
else
{
continue
;
break
;
}
}
...
...
LOCALDB/parameters_details.php
View file @
ad4584d1
...
...
@@ -11,6 +11,7 @@ $gexf_db["data/AXA/RiskV2PageRank2500.gexf"] = "data/AXA/data.db";
$gexf_db
[
"data/AXA/RiskV2PageRank5000.gexf"
]
=
"data/AXA/data.db"
;
$gexf_db
[
"data/test/mini_for_csv.gexf"
]
=
"data/test/mini_for_csv.csv"
;
$gexf_db
[
"data/gargistex/shale_and_ice.gexf"
]
=
"data/gargistex/shale_and_ice.csv"
;
$gexf_db
[
"data/gargistex/model_calibration.gexf"
]
=
"data/gargistex/model_calibration.csv"
;
// $gexf_db["data/ProgrammeDesCandidats.gexf"] = "foobar";
...
...
@@ -19,9 +20,15 @@ $gexf= str_replace('"','',$_GET["gexf"]);
$mainpath
=
dirname
(
getcwd
())
.
"/"
;
$graphdb
=
$gexf_db
[
$gexf
];
// for csv parsing
$csvsep
=
"
\t
"
;
$csvquote
=
'"'
;
// for csv caching (optional)
$memserver
=
'localhost'
;
$memport
=
11211
;
// number of docs to display setting
$max_item_displayed
=
7
;
...
...
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