Lesekabinett & Startseite

This commit is contained in:
Simon Martens
2025-03-02 00:27:16 +01:00
parent 6e286857d5
commit 0a86833a9f
56 changed files with 771 additions and 445 deletions

View File

@@ -159,16 +159,4 @@ func (r *AlmanachResult) Collections() {
}
}
ccontentcollectionmap := map[int][]dbmodels.CollectionInfo{}
ccollectioncontentmap := map[string]dbmodels.CollectionInfo{}
for _, v := range collections {
cinfo := dbmodels.ParseAnnotation(v, v.Annotation(), ids)
ccollectioncontentmap[v.Id] = cinfo
for _, c := range cinfo.Singles {
ccontentcollectionmap[c] = append(ccontentcollectionmap[c], cinfo)
}
}
r.CInfoByCollection = ccollectioncontentmap
r.CInfoByContent = ccontentcollectionmap
}