From 6b6cf1f9ab764319e97dacef6d6ae3dd7da0a385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Franti=C5=A1ek=20Bu=C4=8D=C3=ADk?= Date: Fri, 1 Jul 2022 17:13:40 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20EMBL=20displaying?= =?UTF-8?q?=20of=20GDPR=20message=20in=20consent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ConsentHelper.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/lib/ConsentHelper.php b/lib/ConsentHelper.php index 2fe2d49..7eb92d4 100644 --- a/lib/ConsentHelper.php +++ b/lib/ConsentHelper.php @@ -49,8 +49,8 @@ public static function getJurisdiction($dstMetadata): string if (empty($jurisdiction) || array_key_exists($jurisdiction, self::EU_EAA)) { return ''; } - if ('INT' === $jurisdiction) { - return 'provided by an international organization.'; + if ('INT' === $jurisdiction || 'EMBL' === $jurisdiction) { + return $jurisdiction; } return 'in ' . $countryCodes[$jurisdiction]; @@ -115,10 +115,18 @@ public static function printJurisdictionWarning(string $parsedJurisdiction, $spP { if (!empty($parsedJurisdiction)) { echo '