Skip to content

language information of a documentBadge doesn't match the description #18

@pstoehr

Description

@pstoehr

The documentation state that language information is returned as ISO 639-1 formatted string.

In some results returned from a /recommand api-call a lot of white-spaces, namely \t or \n, are added to the result.

Examples:
"documentBadge": {
"id": "224cf6a0-d075-45ed-980e-193654474cfc",
"uri": "http://culture.joanneum.at/catalog/online-katalog/?detail=224cf6a0-d075-45ed-980e-193654474cfc",
"provider": "\n\t\t\t\t\t\t\t\tKierling\n\t\t\t\t\t\t\t"
},
"mediaType": "text",
"title": "Probedruck, Priester mit Monstranz ",
"description": "\"Sel. Peter Julian\"",
"date": "unknown",
"language": "\n\t\t\t\t\t\tde\n\t\t\t\t\t",
"licence": "\n\t\t\t\t\t\thttp://creativecommons.org/licenses/by-nc-sa/4.0/\n\t\t\t\t\t",
"generatingQuery": "(Peter)"
},

"documentBadge": {
"id": "SK-A-133",
"uri": "https://www.rijksmuseum.nl/en/collection/SK-A-133",
"provider": "\n\t\t\t\t\t\t\t\tRijksMuseum\n\t\t\t\t\t\t\t"
},
"mediaType": "text",
"title": "Portrait of a Couple, Probably Isaac Abrahamsz Massa and Beatrix van der Laen",
"description": "Portrait of a Couple, Probably Isaac Abrahamsz Massa and Beatrix van der Laen, Frans Hals, c. 1622",
"date": "unknown",
"language": "\n\t\t\t\t\t\tde\n\t\t\t\t\t",
"licence": "\n\t\t\t\t\t\thttp://creativecommons.org/licenses/by-nc-sa/4.0/\n\t\t\t\t\t",
"generatingQuery": "(Peter)"
},

Is the client supposed to remove the whitespaces?

Endpoint for the queries:
https://eexcess-dev.joanneum.at/eexcess-privacy-proxy-issuer-1.0-SNAPSHOT/issuer

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions