Allow for setting a testuser via settings

This commit is contained in:
Simon Martens
2025-02-09 20:13:52 +01:00
parent 28b3833228
commit 9554200ad1
6 changed files with 103 additions and 18 deletions

View File

@@ -96,13 +96,13 @@ func handlePreferredTitleEntry(
if band.Jahr == 0 {
jahr = "[o.J.]"
} else {
jahr = " (" + jahr + ")"
jahr = "(" + jahr + ")"
}
bevti := slices.IndexFunc(rels, func(r xmlmodels.Relation_Band_Reihe) bool { return r.Relation == "1" })
if bevti != -1 {
bevt := rmap[rels[bevti].Reihe]
record.Set(dbmodels.PREFERRED_TITLE_FIELD, NormalizeString(bevt.Titel)+jahr)
record.Set(dbmodels.PREFERRED_TITLE_FIELD, NormalizeString(bevt.Titel)+" "+jahr)
return
}