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
3dd6bb83
Commit
3dd6bb83
authored
4 years ago
by
Sini
Browse files
Options
Download
Email Patches
Plain Diff
Month added to bibtex
parent
192f4c7f
Pipeline
#3348
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/citationSheetParse.js
+8
-6
public/js/citationSheetParse.js
with
8 additions
and
6 deletions
+8
-6
public/js/citationSheetParse.js
+
8
-
6
View file @
3dd6bb83
...
@@ -52,7 +52,6 @@ xmlHttpRequest.onload = function (e) {
...
@@ -52,7 +52,6 @@ xmlHttpRequest.onload = function (e) {
"
name
"
:
"
journal
"
,
"
name
"
:
"
journal
"
,
"
volume
"
:
""
,
"
volume
"
:
""
,
"
year
"
:
""
,
"
year
"
:
""
,
"
month
"
:
""
,
"
pages
"
:
""
"
pages
"
:
""
},
},
"
conference
"
:{
"
conference
"
:{
...
@@ -124,10 +123,6 @@ xmlHttpRequest.onload = function (e) {
...
@@ -124,10 +123,6 @@ xmlHttpRequest.onload = function (e) {
item
[
"
item
"
].
journal
.
volume
=
jsonOutput
[
i
].
Volume
;
item
[
"
item
"
].
journal
.
volume
=
jsonOutput
[
i
].
Volume
;
item
[
"
item
"
].
journal
.
year
=
jsonOutput
[
i
].
Year
;
item
[
"
item
"
].
journal
.
year
=
jsonOutput
[
i
].
Year
;
if
(
jsonOutput
[
i
].
Date
!=
undefined
){
item
[
"
item
"
].
journal
.
month
=
jsonOutput
[
i
].
Date
.
split
(
"
,
"
)[
0
].
trim
();
}
item
[
"
item
"
].
journal
.
pages
=
jsonOutput
[
i
].
Pages
;
item
[
"
item
"
].
journal
.
pages
=
jsonOutput
[
i
].
Pages
;
item
[
"
item
"
].
conference
.
name
=
jsonOutput
[
i
].
Conference
;
item
[
"
item
"
].
conference
.
name
=
jsonOutput
[
i
].
Conference
;
item
[
"
item
"
].
conference
.
place
=
jsonOutput
[
i
][
"
City and Country
"
]
item
[
"
item
"
].
conference
.
place
=
jsonOutput
[
i
][
"
City and Country
"
]
...
@@ -142,13 +137,20 @@ xmlHttpRequest.onload = function (e) {
...
@@ -142,13 +137,20 @@ xmlHttpRequest.onload = function (e) {
item
[
"
links
"
].
url
=
jsonOutput
[
i
].
URL
;
item
[
"
links
"
].
url
=
jsonOutput
[
i
].
URL
;
item
[
"
links
"
].
demo
=
jsonOutput
[
i
].
Demo
;
item
[
"
links
"
].
demo
=
jsonOutput
[
i
].
Demo
;
var
month
=
""
;
if
(
jsonOutput
[
i
].
Date
!=
undefined
){
month
=
jsonOutput
[
i
].
Date
.
split
(
"
,
"
)[
0
].
trim
();
}
//// BibTex /////////////////////
//// BibTex /////////////////////
item
[
"
bibtex
"
]
=
"
@article{
"
+
bit1stAuthorLN
+
jsonOutput
[
i
].
Year
+
"
,
"
+
item
[
"
bibtex
"
]
=
"
@article{
"
+
bit1stAuthorLN
+
jsonOutput
[
i
].
Year
+
"
,
"
+
"
title={
"
+
jsonOutput
[
i
].
Titel
+
"
title={
"
+
jsonOutput
[
i
].
Titel
+
"
},author={
"
+
bibAuthors
.
trim
().
substring
(
0
,
bibAuthors
.
trim
().
lastIndexOf
(
"
"
))
+
"
},author={
"
+
bibAuthors
.
trim
().
substring
(
0
,
bibAuthors
.
trim
().
lastIndexOf
(
"
"
))
+
"
},journal={
"
+
jsonOutput
[
i
].
Journal
+
"
},journal={
"
+
jsonOutput
[
i
].
Journal
+
"
},volume={
"
+
jsonOutput
[
i
].
Volume
+
"
},volume={
"
+
jsonOutput
[
i
].
Volume
+
// "},number={"+ jsonOutput[i].Number
"
},month={
"
+
month
+
"
},pages={
"
+
jsonOutput
[
i
].
Pages
+
"
},pages={
"
+
jsonOutput
[
i
].
Pages
+
"
},year={
"
+
jsonOutput
[
i
].
Year
+
"
},year={
"
+
jsonOutput
[
i
].
Year
+
"
},DOI ={
"
+
jsonOutput
[
i
].
DOI
+
"
},DOI ={
"
+
jsonOutput
[
i
].
DOI
+
...
...
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