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

Remove infojson creation for externalContent

parent 979cc16a
Pipeline #301305 passed with stages
in 7 minutes and 19 seconds
......@@ -230,7 +230,7 @@ func getPhysStructure(physMeta types.PhysicalAttributes,
esPhys.PageHRef = fileAttr.Href
}
if ccontext != "olahds" {
if ccontext != "olahds" && !isExternal {
infojsonkey := fmt.Sprintf(config.ExportKeyPatternInfoJson, workID, fileAttr.Page)
imagekey := fmt.Sprintf(config.ExportKeyPatternImage, workID, fileAttr.Filename)
......@@ -247,7 +247,7 @@ func getPhysStructure(physMeta types.PhysicalAttributes,
// get
imageInfo, err = helper.GetImageInfoFromInfoJsonInS3(product, infojsonkey)
if err != nil || imageInfo.Height == 0 {
log.Errorf("infojson seems corrupted or not available for %s/%s", product, infojsonkey)
log.Errorf("infojson seems corrupted or not available for %s/%s, due to %s", product, infojsonkey, err)
imageInfo, err = helper.CreateImageInfoInS3(product, infojsonkey, imagekey, workID, product, fileAttr.Page)
}
}
......
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