Skip to content

Commit 9604a91

Browse files
committed
bibtex fields cleanup
1 parent bfc2ca1 commit 9604a91

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

server/workers/api/src/apis/export.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ def transform2bibtex(metadata):
5555
fields["school"] = published_in
5656
if entrytype == "conference":
5757
fields["booktitle"] = published_in
58+
if entrytype == "video":
59+
fields["publisher"] = published_in
60+
if entrytype == "software":
61+
fields["publisher"] = published_in
62+
if entrytype == "thesis":
63+
fields["school"] = published_in
5864
fields["ENTRYTYPE"] = entrytype
5965

6066
db = BibDatabase()
@@ -125,21 +131,21 @@ def get_bibtextype(resulttype):
125131
"Audio": "audio",
126132
"Book": "book",
127133
"Book part": "inbook",
128-
"Conference object": "conference / inproceedings // proceedings",
134+
"Conference object": "inproceedings",
129135
"Course material": "misc",
130136
"Dataset": "misc",
131137
"Image/video": "misc",
132138
"Journal/newspaper": "misc",
133139
"Journal/newspaper article": "article",
134140
"Journal/newspaper other content": "misc",
135141
"Lecture": "misc",
136-
"Manuscript": "unpublished / misc",
142+
"Manuscript": "unpublished",
137143
"Map": "misc",
138144
"Moving image/video": "video",
139145
"Musical notation": "misc",
140146
"Other/Unknown material": "misc",
141147
"Patent": "patent",
142-
"Report": "techreport / report",
148+
"Report": "techreport",
143149
"Review": "misc",
144150
"Software": "software",
145151
"Still image": "misc",
@@ -234,7 +240,7 @@ def get_bibtextype(resulttype):
234240
"Study Characteristics": "misc",
235241
"Support of Research": "misc",
236242
"Systematic Review": "misc",
237-
"Technical Report": "techreport / report",
243+
"Technical Report": "techreport",
238244
"Twin Study": "misc",
239245
"Validation Study": "misc",
240246
"Video Audio Media": "video",

0 commit comments

Comments
 (0)