+exemplate, +fields

This commit is contained in:
Simon Martens
2026-01-07 16:43:35 +01:00
parent 02d78388e7
commit f9fb077518
13 changed files with 897 additions and 272 deletions

View File

@@ -27,6 +27,7 @@ func ItemsFromBändeAndBIBLIO(
}
for i := 0; i < len(entries.Bände); i++ {
bandItems := []*dbmodels.Item{}
band := entries.Bände[i]
banddb, ok := entriesmap[band.ID]
if !ok {
@@ -81,6 +82,7 @@ func ItemsFromBändeAndBIBLIO(
}
records = append(records, exem)
bandItems = append(bandItems, exem)
}
for nr, m := range t {
@@ -102,11 +104,12 @@ func ItemsFromBändeAndBIBLIO(
if exem.Identifier() != "" {
records = append(records, exem)
bandItems = append(bandItems, exem)
}
}
if len(records) > 0 {
for _, exem := range records {
if len(bandItems) > 0 {
for _, exem := range bandItems {
exem.SetEntry(banddb.Id)
exem.SetOwner("Theodor Springmann Stiftung")