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
352523d2
Commit
352523d2
authored
Jun 28, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tina integration procedure: loose ends 2/2
parent
921a2b30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
settings_explorerjs.js
settings_explorerjs.js
+17
-9
settings_explorerjs.comex.js
twpresets/settings_explorerjs.comex.js
+9
-1
No files found.
settings_explorerjs.js
View file @
352523d2
...
...
@@ -6,8 +6,8 @@ TW.conf = (function(TW){
let
TWConf
=
{}
TWConf
.
branding
=
'
Community Explorer 2'
// <---
name displayed in upper left
TWConf
.
brandingLink
=
'https://
communityexplorer.org
'
// <--- link to "home"
TWConf
.
branding
=
'
ProjectExplorer'
// <--- the
name displayed in upper left
TWConf
.
brandingLink
=
'https://
github.com/moma/ProjectExplorer
'
// <--- link to "home"
// ==========================
...
...
@@ -17,10 +17,10 @@ TW.conf = (function(TW){
// Graph data source
// -----------------
// the graph input depends on TWConf.sourcemode (or manual url arg 'sourcemode')
TWConf
.
sourcemode
=
"
api
"
// accepted: "api" | "serverfile" | "servermenu" | "localfile"
TWConf
.
sourcemode
=
"
servermenu
"
// accepted: "api" | "serverfile" | "servermenu" | "localfile"
// server-side .gexf|.json default source
TWConf
.
sourceFile
=
""
TWConf
.
sourceFile
=
"
data/politoscope/ProgrammeDesCandidats.enrichi.gexf
"
// ...or server-side gexf default source list
TWConf
.
sourceMenu
=
"db.json"
...
...
@@ -34,13 +34,21 @@ TW.conf = (function(TW){
// Related documents (topPapers) data source
// -----------------------------------------
TWConf
.
getRelatedDocs
=
fals
e
TWConf
.
getRelatedDocs
=
tru
e
TWConf
.
relatedDocsMax
=
10
TWConf
.
relatedDocsAPI
=
"http://127.0.0.1:5000/twitter_search"
TWConf
.
relatedDocsType
=
"twitter"
// accepted: "twitter" | "wosLocalDB"
// POSSible: "elastic"
TWConf
.
relatedDocsAPIS
=
{
// routes by corresponding type
"wosLocalDB"
:
"twbackends/phpAPI"
,
"twitter"
:
"http://127.0.0.1:5000/twitter_search"
}
// fallback topPapers API if none found by type
TWConf
.
relatedDocsAPI
=
"twbackends/phpAPI"
// =======================
// DATA FACETS AND LEGENDS
// =======================
...
...
@@ -147,15 +155,15 @@ TW.conf = (function(TW){
// =============
// Node typology: categories (resp. 0 and 1) will get these default labels
TWConf
.
catSem
=
"
Terms
"
;
TWConf
.
catSoc
=
"
Document
"
;
TWConf
.
catSem
=
"
term
"
;
TWConf
.
catSoc
=
"
person
"
;
// NB: these labels may be superseded by the input data's node types values
// cf. sortNodeTypes()
// Modules path
// ------------
TWConf
.
paths
=
{
'ourlibs'
:
'
static/tinawebJS/
twlibs'
,
'ourlibs'
:
'twlibs'
,
'modules'
:
'twmodules'
}
Object
.
freeze
(
TWConf
.
paths
)
// /!\ to prevent path modification before load
...
...
twpresets/settings_explorerjs.comex.js
View file @
352523d2
...
...
@@ -36,11 +36,19 @@ TW.conf = (function(TW){
TWConf
.
getRelatedDocs
=
false
TWConf
.
relatedDocsMax
=
10
TWConf
.
relatedDocsAPI
=
"http://127.0.0.1:5000/twitter_search"
TWConf
.
relatedDocsType
=
"twitter"
// accepted: "twitter" | "wosLocalDB"
// POSSible: "elastic"
TWConf
.
relatedDocsAPIS
=
{
// routes by corresponding type
"wosLocalDB"
:
"twbackends/phpAPI"
,
"twitter"
:
"http://127.0.0.1:5000/twitter_search"
}
// fallback topPapers API if none found by type
TWConf
.
relatedDocsAPI
=
"twbackends/phpAPI"
// =======================
// DATA FACETS AND LEGENDS
// =======================
...
...
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