mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
BUGFIX: double entries for almanachse
This commit is contained in:
@@ -78,7 +78,7 @@ func ItemsFromBändeAndBIBLIO(
|
||||
message = appendMessage(e.NotizÄusseres, message)
|
||||
message = appendMessage(e.NotizInhalt, message)
|
||||
message = appendMessage(e.Anmerkungen, message)
|
||||
exem.SetAnnotation(message)
|
||||
exem.SetAnnotation(formatItemAnnotation(message))
|
||||
}
|
||||
|
||||
records = append(records, exem)
|
||||
@@ -100,7 +100,7 @@ func ItemsFromBändeAndBIBLIO(
|
||||
message = appendMessage(e.Anmerkungen, message)
|
||||
}
|
||||
}
|
||||
exem.SetAnnotation(message)
|
||||
exem.SetAnnotation(formatItemAnnotation(message))
|
||||
|
||||
if exem.Identifier() != "" {
|
||||
records = append(records, exem)
|
||||
@@ -144,3 +144,10 @@ func appendMessage(message string, toAppend string) string {
|
||||
}
|
||||
return message
|
||||
}
|
||||
|
||||
func formatItemAnnotation(message string) string {
|
||||
if message == "" {
|
||||
return message
|
||||
}
|
||||
return strings.ReplaceAll(message, "/)", "<br>")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user