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
0564f787
Commit
0564f787
authored
Mar 30, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] Adding metasearch engine. Next step: integrate it to Gargantext as a module.
parent
e0fb0063
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
searx.png
static/img/searx.png
+0
-0
extras_explorerjs.js
static/js/extras_explorerjs.js
+4
-4
No files found.
static/img/
google
.png
→
static/img/
searx
.png
View file @
0564f787
File moved
static/js/extras_explorerjs.js
View file @
0564f787
...
...
@@ -499,7 +499,7 @@ function genericGetTopPapers(theids , corpus_id , thediv) {
var
output
=
"<ul style='padding: 0px; margin: 13px;'>"
for
(
var
i
in
arraydata
)
{
var
pub
=
arraydata
[
i
]
var
gquery
=
"http
://www.google.com/#
q="
+
pub
[
"title"
].
replace
(
" "
+
"+"
)
var
gquery
=
"http
s://searx.laquadrature.net/?categories=general&
q="
+
pub
[
"title"
].
replace
(
" "
+
"+"
)
var
getpubAPI
=
window
.
location
.
origin
+
"/nodeinfo/"
+
pub
[
"id"
]
var
ifjournal
=
""
,
ifauthors
=
""
,
ifkeywords
=
""
,
ifdate
=
""
,
iftitle
=
""
;
...
...
@@ -521,7 +521,7 @@ function genericGetTopPapers(theids , corpus_id , thediv) {
jsstuff
+=
"wnws_buffer = window.open('"
+
getpubAPI
+
"', 'popUpWindow' , '"
+
jsparams
+
"')"
;
output
+=
"<li><a onclick=
\"
"
+
jsstuff
+
"
\"
target=_blank>"
+
pub
[
"title"
]
+
"</a>. "
+
ifauthors
+
". "
+
ifjournal
+
". "
+
ifkeywords
+
". "
+
ifdate
+
"
\n
"
;
output
+=
'<a href="'
+
gquery
+
'" target=_blank><img title="Query t
o Google" src="'
+
window
.
location
.
origin
+
'/static/img/google
.png"></img></a>'
output
+=
'<a href="'
+
gquery
+
'" target=_blank><img title="Query t
he anonymous web" src="'
+
window
.
location
.
origin
+
'/static/img/searx
.png"></img></a>'
output
+=
"</li>
\n
"
;
// for(var j in pub) {
// if(j!="abstract")
...
...
@@ -584,7 +584,7 @@ function getTopPapers(type){
for
(
var
i
in
data
)
{
var
pub
=
data
[
i
]
if
(
pub
[
"title"
])
{
var
gquery
=
"http
://www.google.com/#
q="
+
pub
[
"title"
].
replace
(
" "
+
"+"
)
var
gquery
=
"http
s://searx.laquadrature.net/?categories=general&
q="
+
pub
[
"title"
].
replace
(
" "
+
"+"
)
var
url_elems
=
window
.
location
.
href
.
split
(
"/"
)
var
url_mainIDs
=
{}
...
...
@@ -615,7 +615,7 @@ function getTopPapers(type){
jsstuff
+=
"wnws_buffer = window.open('"
+
getpubAPI
+
"', 'popUpWindow' , '"
+
jsparams
+
"')"
;
output
+=
"<li><a onclick=
\"
"
+
jsstuff
+
"
\"
target=_blank>"
+
pub
[
"title"
]
+
"</a>. "
+
ifauthors
+
". "
+
ifjournal
+
". "
+
ifkeywords
+
". "
+
ifdate
+
"
\n
"
;
output
+=
'<a href="'
+
gquery
+
'" target=_blank><img title="Query to Google" src="'
+
window
.
location
.
origin
+
'/static/img/
google
.png"></img></a>'
output
+=
'<a href="'
+
gquery
+
'" target=_blank><img title="Query to Google" src="'
+
window
.
location
.
origin
+
'/static/img/
searx
.png"></img></a>'
output
+=
"</li>
\n
"
;
// for(var j in pub) {
// if(j!="abstract")
...
...
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