Skip to content

Commit c612467

Browse files
committed
remove confusing misc fallback
1 parent 9604a91 commit c612467

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ def transform2bibtex(metadata):
3636
fields["doi"] = doi
3737
if url != "":
3838
fields["url"] = url
39-
if entrytype == "article":
40-
if published_in != "":
41-
fields["journal"] = published_in
42-
else:
43-
entrytype = "misc"
4439
if entrytype == "misc" and published_in != "":
4540
entrytype = "article"
41+
fields["journal"] = published_in
4642
if entrytype == "book":
4743
fields["publisher"] = published_in
4844
if entrytype == "inbook":

0 commit comments

Comments
 (0)