From e2494905a96079efeca998ea1f84a17506526300 Mon Sep 17 00:00:00 2001 From: Tobias Pfandzelter Date: Tue, 16 May 2023 11:19:57 +0200 Subject: [PATCH] fix add proceedings of for missing booktitles --- pkg/bibtex/plugins.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/bibtex/plugins.go b/pkg/bibtex/plugins.go index c98838a..61c7800 100644 --- a/pkg/bibtex/plugins.go +++ b/pkg/bibtex/plugins.go @@ -99,6 +99,11 @@ 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) { @@ -106,6 +111,7 @@ func AddProcOf(e Element) Element { } e.Tags[key] = "\"Proceedings of the " + val[1:] + break } return e