Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
55187150
Commit
55187150
authored
Sep 13, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] total count of relevant publications shown in graphExplorer pub tab
parent
637d6208
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
extras_explorerjs.js
static/lib/graphExplorer/extras_explorerjs.js
+11
-2
explorer.html
templates/graphExplorer/explorer.html
+1
-1
No files found.
static/lib/graphExplorer/extras_explorerjs.js
View file @
55187150
...
@@ -597,8 +597,10 @@ function getTopPapers(type){
...
@@ -597,8 +597,10 @@ function getTopPapers(type){
// pr(window.location.origin+'/api/tfidf/'+corpus_id+'/'+theids.join("a") )
// pr(window.location.origin+'/api/tfidf/'+corpus_id+'/'+theids.join("a") )
// var arraydata = $.parseJSON(data)
// var arraydata = $.parseJSON(data)
var
output
=
"<ul style='padding: 0px; margin: 13px;'>"
var
output
=
"<ul style='padding: 0px; margin: 13px;'>"
for
(
var
i
in
data
)
{
var
nDocsHavingNgram
=
data
.
count
;
var
pub
=
data
[
i
]
var
nDocsShown
=
data
.
records
.
length
;
for
(
var
i
in
data
.
records
)
{
var
pub
=
data
.
records
[
i
]
if
(
pub
[
"title"
])
{
if
(
pub
[
"title"
])
{
var
gquery
=
"https://search.iscpif.fr/?categories=general&q="
+
pub
[
"title"
].
replace
(
" "
+
"+"
)
var
gquery
=
"https://search.iscpif.fr/?categories=general&q="
+
pub
[
"title"
].
replace
(
" "
+
"+"
)
...
@@ -645,6 +647,13 @@ function getTopPapers(type){
...
@@ -645,6 +647,13 @@ function getTopPapers(type){
}
}
output
+=
"</ul>"
output
+=
"</ul>"
$
(
"#tab-container-top"
).
show
();
$
(
"#tab-container-top"
).
show
();
$
(
"#pubs-count-info"
).
remove
()
var
countInfo
=
$
(
'<span />'
).
attr
(
'id'
,
'pubs-count-info'
)
countInfo
.
html
(
" ("
+
nDocsShown
+
"/"
+
nDocsHavingNgram
+
")"
)
$
(
"#pubs-legend"
).
append
(
countInfo
)
// $('#tab-container-top').easytabs({updateHash:false});
// $('#tab-container-top').easytabs({updateHash:false});
$
(
"#topPapers"
).
html
(
output
);
$
(
"#topPapers"
).
html
(
output
);
},
},
...
...
templates/graphExplorer/explorer.html
View file @
55187150
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
<div
id=
"tab-container-top"
class=
'tab-container'
style=
"display: none;"
>
<div
id=
"tab-container-top"
class=
'tab-container'
style=
"display: none;"
>
<ul
class=
'etabs'
>
<ul
class=
'etabs'
>
<li
id=
"tabmed"
class=
'tab active'
><a
href=
"#tabs3"
>
Pubs
</a></li>
<li
id=
"tabmed"
class=
'tab active'
><a
id=
"pubs-legend"
href=
"#tabs3"
>
Pubs
</a></li>
<li
id=
"tabgps"
class=
'tab'
><a
href=
"#tabs3"
></a></li>
<li
id=
"tabgps"
class=
'tab'
><a
href=
"#tabs3"
></a></li>
</ul>
</ul>
...
...
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