diff --git a/client/src/pages/home/index.jsx b/client/src/pages/home/index.jsx
index f197a169..e5452a25 100644
--- a/client/src/pages/home/index.jsx
+++ b/client/src/pages/home/index.jsx
@@ -150,11 +150,18 @@ export default function Home() {
const ror = getAffiliationRor(affiliation);
const normalizedAffiliationName = normalizedName(affiliation.name);
if (!allAffiliationsTmp?.[normalizedAffiliationName]) {
+ // Check matches in affiliation name and ror
+ let matches = `${affiliation?.name} ${ror}`?.match(regexp) ?? [];
+ // Normalize matched strings
+ matches = matches.map((name) => normalizedName(name));
+ // Filter matches as uniq
+ matches = [...new Set(matches)];
allAffiliationsTmp[normalizedAffiliationName] = {
- matches: [...new Set((affiliation?.name?.match(regexp) ?? []).map((name) => normalizedName(name)))].length,
+ matches: matches.length,
name: affiliation.name,
nameHtml: affiliation.name.replace(regexp, '$&'),
ror,
+ rorHtml: ror?.replace(regexp, '$&'),
status: TO_BE_DECIDED_STATUS,
works: [],
};
diff --git a/client/src/pages/home/views/affiliations.jsx b/client/src/pages/home/views/affiliations.jsx
index 5ef51376..988327f2 100644
--- a/client/src/pages/home/views/affiliations.jsx
+++ b/client/src/pages/home/views/affiliations.jsx
@@ -4,6 +4,7 @@ import { DataTable } from 'primereact/datatable';
import {
nameTemplate,
+ rorTemplate,
statusFilterTemplate,
statusTemplate,
} from '../../../utils/templates';
@@ -39,7 +40,7 @@ export default function AffiliationsView({
-
+
diff --git a/client/src/utils/templates.jsx b/client/src/utils/templates.jsx
index 98759846..040aae7a 100644
--- a/client/src/utils/templates.jsx
+++ b/client/src/utils/templates.jsx
@@ -80,6 +80,8 @@ const getAuthorsTooltipField = (rowData) => {
const nameTemplate = (rowData) => ;
+const rorTemplate = (rowData) => ;
+
const getBadgeTypeByStatus = (status) => {
let type;
switch (status) {
@@ -146,6 +148,7 @@ export {
getAuthorsHtmlField,
getAuthorsTooltipField,
nameTemplate,
+ rorTemplate,
sourcesFilterTemplate,
statusFilterTemplate,
statusTemplate,