Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
UGL
website
Commits
d795d9f3
Commit
d795d9f3
authored
4 years ago
by
Santhanavanich
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
89b9dc1a
Pipeline
#3150
passed with stage
in 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/content/paper2.json
+1
-4
public/content/paper2.json
public/js/add_paper.js
+56
-53
public/js/add_paper.js
public/js/search.js
+5
-4
public/js/search.js
with
62 additions
and
61 deletions
+62
-61
public/content/paper2.json
+
1
-
4
View file @
d795d9f3
...
@@ -634,11 +634,8 @@
...
@@ -634,11 +634,8 @@
"lastName"
:
"Coors"
"lastName"
:
"Coors"
}
}
],
],
"journal"
:
{}
,
"journal"
:
{}
"keywords"
:
[
"..."
]
},
},
"links"
:
{}
"links"
:
{}
},
},
...
...
This diff is collapsed.
Click to expand it.
public/js/add_paper.js
+
56
-
53
View file @
d795d9f3
function
addpaper
(
item
){
function
addpaper
(
item
)
{
var
new_row
=
document
.
getElementById
(
"
cont_paper
"
)
var
new_row
=
document
.
getElementById
(
"
cont_paper
"
)
if
(
item
===
undefined
)
{
if
(
item
===
undefined
)
{
}
else
{
}
else
{
var
authors
=
""
;
var
authors
=
""
;
for
(
var
i
=
0
;
i
<
item
.
item
.
authors
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
item
.
item
.
authors
.
length
;
i
++
)
{
console
.
log
(
i
);
authors
+=
item
.
item
.
authors
[
i
].
lastName
+
"
,
"
+
item
.
item
.
authors
[
i
].
firstName
.
substring
(
0
,
1
)
+
"
.,
"
//Do something
}
var
keywords
=
""
;
// check if there is keywords in item
if
(
"
keywords
"
in
item
.
item
)
{
for
(
var
i
=
0
;
i
<
item
.
item
.
keywords
.
length
;
i
++
)
{
console
.
log
(
i
);
console
.
log
(
i
);
auth
ors
+=
item
.
item
.
authors
[
i
].
lastName
+
"
,
"
+
item
.
item
.
auth
ors
[
i
]
.
firstName
.
substring
(
0
,
1
)
+
"
.,
"
keyw
or
d
s
+=
'
<span class="badge badge-pill badge-light">
'
+
item
.
item
.
keyw
or
d
s
[
i
]
+
'
</span>
'
//Do something
//Do something
}
}
}
var
keywords
=
""
;
for
(
var
i
=
0
;
i
<
item
.
item
.
keywords
.
length
;
i
++
)
{
console
.
log
(
i
);
keywords
+=
'
<span class="badge badge-pill badge-light">
'
+
item
.
item
.
keywords
[
i
]
+
'
</span>
'
//Do something
}
authors
=
authors
.
substring
(
0
,
authors
.
length
-
2
);
authors
=
authors
.
substring
(
0
,
authors
.
length
-
2
);
// Prepare YouTube Link
// Prepare YouTube Link
// var array_contains_youtube = true
// var array_contains_youtube = true
var
YouTubeHTML
=
''
var
YouTubeHTML
=
''
if
(
'
pdf
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
if
(
'
pdf
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
var
YouTubelink
=
item
.
links
.
youtube
// to be replaced by item.YouTubelink or so...
var
YouTubelink
=
item
.
links
.
youtube
// to be replaced by item.YouTubelink or so...
YouTubeHTML
=
`<button type="button" href="
${
YouTubelink
}
" class="btn btn-outline-info btn-circle"> <i class="fas fa-globe"></i> </button>Link`
YouTubeHTML
=
`<button type="button" href="
${
YouTubelink
}
" class="btn btn-outline-info btn-circle"> <i class="fas fa-globe"></i> </button>Link`
}
}
// Do Authors and Keywords
// Do Authors and Keywords
var
doi
var
doi
if
(
'
journal
'
in
item
.
item
){
if
(
'
journal
'
in
item
.
item
)
{
doi
=
'
<small class="text-muted">
'
+
item
.
item
.
journal
.
name
+
'
,
'
+
doi
=
'
<small class="text-muted">
'
+
item
.
item
.
journal
.
name
+
'
,
'
+
item
.
item
.
journal
.
volume
+
'
,
'
+
item
.
item
.
journal
.
pages
+
'
,
'
+
item
.
item
.
DOI
item
.
item
.
journal
.
volume
+
'
,
'
+
item
.
item
.
journal
.
pages
+
'
,
'
+
item
.
item
.
DOI
}
}
if
(
'
conference
'
in
item
.
item
){
if
(
'
conference
'
in
item
.
item
)
{
doi
=
'
<small class="text-muted">
'
+
item
.
item
.
conference
.
name
+
'
,
'
+
item
.
item
.
conference
.
date
+
'
,
'
+
item
.
item
.
DOI
doi
=
'
<small class="text-muted">
'
+
item
.
item
.
conference
.
name
+
'
,
'
+
item
.
item
.
conference
.
date
+
'
,
'
+
item
.
item
.
DOI
}
}
// Prepare Explore Link
// Prepare Explore Link
// var array_contains_explore_link = true
// var array_contains_explore_link = true
var
ExploreHTML
=
''
var
ExploreHTML
=
''
if
(
'
demo
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
if
(
'
demo
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
var
ExploreLink
=
item
.
links
.
demo
// to be replaced by item.ExploreLink or so...
var
ExploreLink
=
item
.
links
.
demo
// to be replaced by item.ExploreLink or so...
ExploreHTML
=
`<button type="button" href="
${
ExploreLink
}
" class="btn btn-outline-success btn-circle"> <i class="far fa-file-pdf"> </i></button>PDF`
ExploreHTML
=
`<button type="button" href="
${
ExploreLink
}
" class="btn btn-outline-success btn-circle"> <i class="far fa-file-pdf"> </i></button>PDF`
}
}
new_row
.
innerHTML
=
new_row
.
innerHTML
+
'
<div class="card" style="max-width: 1080px;">
'
+
new_row
.
innerHTML
=
new_row
.
innerHTML
+
'
<div class="card" style="max-width: 1080px;">
'
+
'
<div class="row">
'
+
'
<div class="row">
'
+
'
<div class="col-md-3">
'
+
'
<div class="col-md-3">
'
+
'
<img src="
'
+
item
.
item
.
imageLink
+
'
" alt="..." style="width:100%">
'
+
'
<img src="
'
+
item
.
item
.
imageLink
+
'
" alt="..." style="width:100%">
'
+
'
</div>
'
+
'
</div>
'
+
'
<div class="col-md-9">
'
+
'
<div class="col-md-9">
'
+
'
<div class="card-body">
'
+
'
<div class="card-body">
'
+
'
<h5 class="card-title" style="margin-bottom:0px">
'
+
'
<h5 class="card-title" style="margin-bottom:0px">
'
+
'
<small>
'
+
authors
+
'
</small>
'
+
'
<small>
'
+
authors
+
'
</small>
'
+
'
<br>
'
+
'
<br>
'
+
item
.
item
.
title
+
item
.
item
.
title
+
'
<br>
'
+
'
<br>
'
+
'
<small>
'
+
'
<small>
'
+
keywords
+
keywords
+
'
</small>
'
+
'
</small>
'
+
'
</h5>
'
+
'
</h5>
'
+
doi
+
doi
+
'
<br>
'
+
'
<br>
'
+
ExploreHTML
+
ExploreHTML
+
'
<button type="button" class="btn btn-outline-danger btn-circle" data-toggle="collapse" data-target="#bibtex-paper-vision" aria-expanded="false" aria-controls="bibtex-paper-vision"> <i class="fas fa-code"></i> </button>BIB
'
+
'
<button type="button" class="btn btn-outline-danger btn-circle" data-toggle="collapse" data-target="#bibtex-paper-vision" aria-expanded="false" aria-controls="bibtex-paper-vision"> <i class="fas fa-code"></i> </button>BIB
'
+
YouTubeHTML
+
YouTubeHTML
+
'
</small>
'
+
'
</small>
'
+
'
<pre id="bibtex-paper-vision" class="pre-style collapse">@article{santhanavanich20203d,
'
+
'
<pre id="bibtex-paper-vision" class="pre-style collapse">@article{santhanavanich20203d,
'
+
'
title={3D SAFE ROUTING NAVIGATION APPLICATION FOR PEDESTRIANS AND CYCLISTS BASED ON OPEN SOURCE TOOLS.},
'
+
'
title={3D SAFE ROUTING NAVIGATION APPLICATION FOR PEDESTRIANS AND CYCLISTS BASED ON OPEN SOURCE TOOLS.},
'
+
'
author={Santhanavanich, T and Wuerstle, P and Silberer, J and Loidl, V and Rodrigues, P and Coors, V},
'
+
'
author={Santhanavanich, T and Wuerstle, P and Silberer, J and Loidl, V and Rodrigues, P and Coors, V},
'
+
'
journal={ISPRS Annals of Photogrammetry, Remote Sensing
\
& Spatial Information Sciences},
'
+
'
journal={ISPRS Annals of Photogrammetry, Remote Sensing
\
& Spatial Information Sciences},
'
+
'
volume={6},
'
+
'
volume={6},
'
+
'
year={2020}
'
+
'
year={2020}
'
+
'
}
'
+
'
}
'
+
'
}</pre>
'
+
'
}</pre>
'
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
+
'
</div>
'
'
</div>
'
+
'
</div>
'
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
public/js/search.js
+
5
-
4
View file @
d795d9f3
...
@@ -77,10 +77,11 @@ $(document).ready(function(){
...
@@ -77,10 +77,11 @@ $(document).ready(function(){
var
arrayLength
=
stuff_paper
.
length
;
var
arrayLength
=
stuff_paper
.
length
;
for
(
var
i
=
0
;
i
<
arrayLength
;
i
++
)
{
for
(
var
i
=
0
;
i
<
arrayLength
;
i
++
)
{
if
(
Math
.
abs
(
arrayLength
-
i
)
<=
2
){
// if(Math.abs(arrayLength - i) <= 2){
console
.
log
(
"
close to
"
+
i
)
// console.log("close to " + i)
addpaper
(
stuff_paper
[
i
]);
// addpaper(stuff_paper[i]);
}
// }
addpaper
(
stuff_paper
[
i
]);
//Do something
//Do something
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets