diff --git a/app/config/schema/schema.json b/app/config/schema/schema.json index 11ce07bc..f01e0e9d 100644 --- a/app/config/schema/schema.json +++ b/app/config/schema/schema.json @@ -516,7 +516,7 @@ "indexes": { "urls_i1": { "columns": [ "type_id" ] } }, - "mvea": [ "person", "external_identity" ], + "mvea": [ "person", "person_role", "external_identity", "external_identity_role" ], "sourced": true }, diff --git a/app/resources/locales/en_US/error.po b/app/resources/locales/en_US/error.po index 2e24c362..53a0a557 100644 --- a/app/resources/locales/en_US/error.po +++ b/app/resources/locales/en_US/error.po @@ -93,6 +93,9 @@ msgstr "{0} already exists with this name" msgid "exists.GroupMember" msgstr "{0} is already a member of Group {1}" +msgid "data.Load" +msgstr "Failed to Load Data" + msgid "fields" msgstr "Please recheck these fields: {0}" diff --git a/app/src/Model/Table/UrlsTable.php b/app/src/Model/Table/UrlsTable.php index a19c6768..0714f083 100644 --- a/app/src/Model/Table/UrlsTable.php +++ b/app/src/Model/Table/UrlsTable.php @@ -74,6 +74,7 @@ public function initialize(array $config): void { // Define associations $this->belongsTo('People'); $this->belongsTo('ExternalIdentities'); + $this->belongsTo('ExternalIdentityRoles'); $this->belongsTo('Types'); $this->belongsTo('SourceUrls') ->setClassName('Urls') @@ -82,7 +83,7 @@ public function initialize(array $config): void { $this->setDisplayField('url'); - $this->setPrimaryLink(['external_identity_id', 'person_id']); + $this->setPrimaryLink(['external_identity_id', 'external_identity_role_id', 'person_id', 'person_role_id']); $this->setRequiresCO(true); $this->setRedirectGoal('self'); $this->setRedirectGoal(action: 'delete', goal: 'deleted'); diff --git a/app/src/View/Helper/VueHelper.php b/app/src/View/Helper/VueHelper.php index 74c55a22..d471419c 100644 --- a/app/src/View/Helper/VueHelper.php +++ b/app/src/View/Helper/VueHelper.php @@ -48,7 +48,8 @@ class VueHelper extends Helper { ], 'error' => [ 'javascript.copy', - 'javascript.requires.https' + 'javascript.requires.https', + 'data.Load', ], 'field' => [ 'email', @@ -58,14 +59,14 @@ class VueHelper extends Helper { 'datepicker.hour', 'datepicker.minute', 'status', - 'unverified' + 'unverified', ], 'information' => [ 'global.attributes.none', 'global.value.none', 'record', 'report.for', - 'value.copied' + 'value.copied', ], 'operation' => [ 'add', @@ -78,12 +79,12 @@ class VueHelper extends Helper { 'copy', 'copy.value', 'primary', - 'visit.link' + 'visit.link', ], 'result' => [ 'failed', 'removed', - 'updated' + 'updated', ] ]; diff --git a/app/templates/element/mveaJs.php b/app/templates/element/mveaJs.php index 7b1d286b..ec33c7be 100644 --- a/app/templates/element/mveaJs.php +++ b/app/templates/element/mveaJs.php @@ -47,8 +47,10 @@