Commit f38c667c authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Update check not nil or not empty

parent 02a7dc89
Pipeline #265938 passed with stages
in 10 minutes and 12 seconds
......@@ -65,18 +65,28 @@ func CreateIiifManifest(mythread int) {
var esPhysMap map[string]types.ESPhys
esPhysMap, err = index.GetESPyhsFromES(manifestData.WorkID)
if err != nil || len(esPhysMap) == 0 {
if err != nil {
log.Errorf("could not get physical info from index for %s, due to %s", manifestData.WorkID, err.Error())
continue
}
if len(esPhysMap) == 0 {
log.Errorf("physical info for %s not in the index", manifestData.WorkID)
continue
}
var esLogMap map[string]types.ESLog
esLogMap, err = index.GetESLogFromES(manifestData.WorkID)
if err != nil || len(esLogMap) == 0 {
if err != nil {
log.Errorf("could not get logical info from index for %s, due to %s", manifestData.WorkID, err.Error())
continue
}
if len(esLogMap) == 0 {
log.Errorf("logical info for %s not in the index", manifestData.WorkID)
continue
}
iiifManifest := types.IiifManifest{}
var physIDToPageElementMetaMap map[string]types.PageMeta = make(map[string]types.PageMeta)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment