[bugfix] Fix CWs not showing sometimes (#488)

* allow summaries that are parsed as iris

* test parsing a status with iri summary
This commit is contained in:
tobi 2022-04-26 10:47:21 +02:00 committed by GitHub
commit 2259838108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 9 deletions

View file

@ -248,7 +248,10 @@ func ExtractSummary(i WithSummary) (string, error) {
}
for iter := summaryProp.Begin(); iter != summaryProp.End(); iter = iter.Next() {
if iter.IsXMLSchemaString() && iter.GetXMLSchemaString() != "" {
switch {
case iter.IsIRI():
return iter.GetIRI().String(), nil
case iter.IsXMLSchemaString():
return iter.GetXMLSchemaString(), nil
}
}