Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
68ba456f
Commit
68ba456f
authored
Oct 23, 2023
by
Traboulsi
Browse files
Update public/js/add_paper.js
parent
549f2bcd
Pipeline
#8721
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/js/add_paper.js
View file @
68ba456f
...
...
@@ -3,6 +3,8 @@ var item_id = 0
function
addpaper
(
item
)
{
var
new_row
=
document
.
getElementById
(
"
cont_paper
"
)
if
(
item
===
undefined
)
{
}
else
{
...
...
@@ -23,6 +25,10 @@ function addpaper(item) {
authors
=
authors
.
substring
(
0
,
authors
.
length
-
2
);
last_item
=
item
// check if abstract is available in the item object
var
abstract
=
item
.
item
.
abtract
?
'
<p>
'
+
item
.
item
.
abstract
+
'
</p>
'
:
''
;
var
PDF_HTML
=
''
var
PDF_HTML
=
item
.
links
.
pdf
!=
""
?
`<a type="button" href="
${
item
.
links
.
pdf
}
" class="btn btn-outline-success btn-circle" target="_blank"> <i class="far fa-file-pdf"> </i></a> PDF `
:
""
...
...
@@ -67,6 +73,7 @@ function addpaper(item) {
keywords
+
'
</small>
'
+
'
</h5>
'
+
abstract
+
// Include the abstract here
doi
+
'
<br>
'
+
PDF_HTML
+
'
'
+
...
...
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