Skip to content

Commit

Permalink
feat(es): improve md-quality pipeline to handle multilingual orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Jul 23, 2024
1 parent 0d418bd commit dcc9b80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/pipelines/register-es-pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,14 @@ if(ctx.resourceTitleObject != null && ctx.resourceTitleObject.default != null &&
if(ctx.resourceAbstractObject != null && ctx.resourceAbstractObject.default != null && ctx.resourceAbstractObject.default != '') {
ok++
}
// this checks for single-language Organizations (GN 4.2.2)
if(ctx.contact != null && ctx.contact.length > 0 && ctx.contact[0].organisation != null && ctx.contact[0].organisation != '') {
ok++
}
// this checks for multilingual Organizations (GN 4.2.3+)
if(ctx.contact != null && ctx.contact.length > 0 && ctx.contact[0].organisationObject != null && ctx.contact[0].organisationObject.default != '') {
ok++
}
if(ctx.contact != null && ctx.contact.length > 0 && ctx.contact[0].email != null && ctx.contact[0].email != '') {
ok++
}
Expand Down

0 comments on commit dcc9b80

Please sign in to comment.