diff --git a/support-services/docker-compose.yml b/support-services/docker-compose.yml index 783cf1563b..c01f407e27 100644 --- a/support-services/docker-compose.yml +++ b/support-services/docker-compose.yml @@ -121,6 +121,7 @@ services: - '5005:5005' init-pipeline: + # TODO: ideally this would use the local version of the pipelines instead of the "latest" tag of the docker image image: geonetwork/geonetwork-ui-tools-pipelines:latest environment: ES_HOST: http://elasticsearch:9200 diff --git a/tools/pipelines/register-es-pipelines.js b/tools/pipelines/register-es-pipelines.js index 5acb18ccfd..d61d3ea77b 100644 --- a/tools/pipelines/register-es-pipelines.js +++ b/tools/pipelines/register-es-pipelines.js @@ -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++ }