Skip to content

Commit

Permalink
fix add proceedings of for missing booktitles
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter committed May 16, 2023
1 parent 507fee2 commit e249490
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/bibtex/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,19 @@ func AddProcOf(e Element) Element {
continue
}

// check if the booktitle is empty or MISSING
if val == "" || val == "MISSING" {
break
}

// check if the booktitle starts with "Proceedings of the"
r := regexp.MustCompile(`^"Proceedings of the`)
if r.MatchString(val) {
continue
}

e.Tags[key] = "\"Proceedings of the " + val[1:]
break
}

return e
Expand Down

0 comments on commit e249490

Please sign in to comment.