- This knowledge map presents you with a topical overview of the most recent works of {author?.author_name || ''} ({queryString}).
+ This knowledge map presents you with a topical overview of the most
+ recent works of{" "}
+
+ {author?.author_name || ""} ({queryString})
+
+ .
- The knowledge map provides an instant overview of a researcher's works showing their
- main areas of interest at a glance, and documents related to them. This makes it possible
- to easily identify useful, pertinent information.
+ The knowledge map provides an instant overview of a researcher's works
+ showing their main areas of interest at a glance, and resources
+ related to them. This makes it possible to easily identify useful,
+ pertinent information.
- We use text similarity to create a knowledge map. The algorithm groups those documents
- together that have many words in common. Area titles are created from subject keywords
- of documents that have been assigned to the same area. We select those keywords and phrases
- that appear frequently in one area, and seldom in other areas.
+ We use text similarity to create a knowledge map. The algorithm groups
+ those resources together that have many words in common. Area titles
+ are created from subject keywords of resources that have been assigned
+ to the same area. We select those keywords and phrases that appear
+ frequently in one area, and seldom in other areas.
Data source
- We use multiple data sources to generate the content.
- For the knowledge map and the researcher details we use
+ We use multiple data sources to generate the content. For the
+ knowledge map and the researcher details we use{" "}
+
ORCID
- as our main data source.
- To improve knowledge map quality we enrich the metadata of works that have a DOI, e.g. we
- add keywords, open access information and abstracts from
+ {" "}
+ as our main data source. To improve knowledge map quality we enrich
+ the metadata of works that have a DOI, e.g. we add keywords, open
+ access information and abstracts from{" "}
+
BASE
- .
+
+ .
- Metrics are based on data provided by
+ Metrics are based on data provided by{" "}
+
Crossref
- ,
+
+ ,{" "}
+
Altmetric
- , and
- the information supplied by the researcher on their ORCID profile.
- Results may be impacted by accuracy and completeness of this data.
- Please note that the data provided by Altmetric ("social media
- mentions" and "references outside of academia") are protected by
- copyright and other proprietary rights, as outlined in their
+ , and the information supplied by the researcher on their ORCID
+ profile. Results may be impacted by accuracy and completeness of this
+ data. Please note that the data provided by Altmetric ("social media
+ mentions" and "references outside of academia") are protected by
+ copyright and other proprietary rights, as outlined in their{" "}
+
Terms of Use
- .
+
+ .
diff --git a/vis/js/templates/modals/infomodal/PubMedInfo.tsx b/vis/js/templates/modals/infomodal/PubMedInfo.tsx
index 57621c03a..f2f558eed 100644
--- a/vis/js/templates/modals/infomodal/PubMedInfo.tsx
+++ b/vis/js/templates/modals/infomodal/PubMedInfo.tsx
@@ -3,7 +3,6 @@
import React from "react";
//import pubmedLogo from "../../../../images/logos/pubmed_logo.png";
-
import StandardKMInfo from "./subcomponents/StandardKMInfo";
import StandardSGInfo from "./subcomponents/StandardSGInfo";
@@ -24,7 +23,7 @@ const PubMedInfo = ({ params, isStreamgraph }) => {
.
- Citations are available for documents with a DOI and based on citation
+ Citations are available for resources with a DOI and based on citation
data provided by{" "}
Crossref
diff --git a/vis/js/templates/modals/infomodal/subcomponents/StandardKMInfo.tsx b/vis/js/templates/modals/infomodal/subcomponents/StandardKMInfo.tsx
index caae0fb10..d3a8fecc3 100644
--- a/vis/js/templates/modals/infomodal/subcomponents/StandardKMInfo.tsx
+++ b/vis/js/templates/modals/infomodal/subcomponents/StandardKMInfo.tsx
@@ -2,11 +2,10 @@
import React from "react";
import { Modal } from "react-bootstrap";
-import AboutSoftware from "./AboutSoftware";
-import DataSource from "./DataSource";
import { queryConcatenator } from "../../../../utils/data";
import { unescapeHTML } from "../../../../utils/unescapeHTMLentities";
-
+import AboutSoftware from "./AboutSoftware";
+import DataSource from "./DataSource";
const fieldmapper = {
relation: "relation",
@@ -21,20 +20,26 @@ const fieldmapper = {
resulttype: "type",
language: "language",
content_provider: "provider",
- coverage: "coverage"
-}
-
+ coverage: "coverage",
+};
const StandardKMInfo = ({
serviceName,
serviceDesc,
serviceLogo,
- params: { query, customTitle, sorting, repo_name, q_advanced, custom_clustering },
+ params: {
+ query,
+ customTitle,
+ sorting,
+ repo_name,
+ q_advanced,
+ custom_clustering,
+ },
}) => {
- let queryString = queryConcatenator([query, q_advanced])
+ const queryString = queryConcatenator([query, q_advanced]);
- customTitle = customTitle && unescapeHTML(customTitle)
- custom_clustering = custom_clustering && unescapeHTML(custom_clustering)
+ customTitle = customTitle && unescapeHTML(customTitle);
+ custom_clustering = custom_clustering && unescapeHTML(custom_clustering);
return (
// html template starts here
@@ -45,24 +50,25 @@ const StandardKMInfo = ({
{(!!customTitle || !!query || !!q_advanced) && (
- This knowledge map presents you with {!!custom_clustering ? "an overview" : "a topical overview"} of research
- on{" "}
+ This knowledge map presents you with{" "}
+ {custom_clustering ? "an overview" : "a topical overview"} of
+ research on{" "}
{customTitle ? customTitle : queryString}
{" "}
based on the 100{" "}
- {(sorting === "most-relevant") ? (
+ {sorting === "most-relevant" ? (
most relevant
- ) : (
- "most recent")
- }
- {" "}
- documents matching your search query.
+
+ ) : (
+ "most recent"
+ )}{" "}
+ resources matching your search query.
{custom_clustering && (
{" "}
@@ -74,7 +80,7 @@ const StandardKMInfo = ({
{!customTitle && !query && (
This knowledge map presents you with a topical overview of research
- based on 100 documents.
+ based on 100 resources.
)}
{!!customTitle && (
@@ -85,35 +91,41 @@ const StandardKMInfo = ({
)}
{!custom_clustering && (
- We use text similarity to create a knowledge map. The algorithm groups
- those documents together that have many words in common. Area titles
- are created from subject keywords of documents that have been assigned
- to the same area. We select those keywords and phrases that appear
- frequently in one area, and seldom in other areas.
+ We use text similarity to create a knowledge map. The algorithm
+ groups those resources together that have many words in common. Area
+ titles are created from subject keywords of resources that have been
+ assigned to the same area. We select those keywords and phrases that
+ appear frequently in one area, and seldom in other areas.
)}
Knowledge maps provide an instant overview of a topic by showing the
- main areas at a glance, and documents related to them. This makes it
+ main areas at a glance, and resources related to them. This makes it
possible to easily identify useful, pertinent information.
{custom_clustering && (
- {" "}Find out more about knowledge maps in our
- FAQs
- .
-
+
+ {" "}
+ Find out more about knowledge maps in our{" "}
+
+ FAQs
+
+ .
+
)}
{custom_clustering && (
- Please note:
- {" "}For this knowledge map we do not use topical clustering
- as described in our FAQs. In this knowledge map we use the keywords
- available in the {custom_clustering in fieldmapper ? fieldmapper[custom_clustering] : "subject"} metadata field for the creation of the area titles.
-
+ Please note: For this
+ knowledge map we do not use topical clustering as described in our
+ FAQs. In this knowledge map we use the keywords available in the{" "}
+ {custom_clustering in fieldmapper
+ ? fieldmapper[custom_clustering]
+ : "subject"}{" "}
+ metadata field for the creation of the area titles.
)}
{!custom_clustering && (
diff --git a/vis/js/templates/modals/infomodal/subcomponents/StandardSGInfo.tsx b/vis/js/templates/modals/infomodal/subcomponents/StandardSGInfo.tsx
index 53ebaff0c..00a55d41c 100644
--- a/vis/js/templates/modals/infomodal/subcomponents/StandardSGInfo.tsx
+++ b/vis/js/templates/modals/infomodal/subcomponents/StandardSGInfo.tsx
@@ -2,9 +2,9 @@
import React from "react";
import { Modal } from "react-bootstrap";
+import { queryConcatenator } from "../../../../utils/data";
import AboutSoftware from "./AboutSoftware";
import DataSource from "./DataSource";
-import { queryConcatenator } from "../../../../utils/data";
const StandardSGInfo = ({
serviceName,
@@ -12,7 +12,7 @@ const StandardSGInfo = ({
serviceLogo,
params: { query, customTitle, sorting, repo_name, q_advanced },
}) => {
- let queryString = queryConcatenator([query, q_advanced])
+ const queryString = queryConcatenator([query, q_advanced]);
return (
// html template starts here
<>
@@ -30,27 +30,25 @@ const StandardSGInfo = ({
>
)}{" "}
- over time. It is based
- on the{" "}
- {(sorting === "most-relevant") ? (
+ over time. It is based on the{" "}
+ {sorting === "most-relevant" ? (
most relevant
- ) : (
- "most recent")
- }
- {" "}
- documents related to the
- main keywords. Up to 1000 documents have been taken into consideration
- for the computation of the streamgraph.
+
+ ) : (
+ "most recent"
+ )}{" "}
+ resources related to the main keywords. Up to 1000 resources have been
+ taken into consideration for the computation of the streamgraph.
- The height of a stream represents the number of documents with this
+ The height of a stream represents the number of resources with this
keyword at a specific time. It is important to note that the number of
- documents matches the relative height, not the absolute height of the
+ resources matches the relative height, not the absolute height of the
stream.
{!!customTitle && (
diff --git a/vis/test/component/listtoggle.test.jsx b/vis/test/component/listtoggle.test.jsx
index ea50c2df3..dd6830118 100644
--- a/vis/test/component/listtoggle.test.jsx
+++ b/vis/test/component/listtoggle.test.jsx
@@ -1,12 +1,10 @@
-import { expect, describe, it, vitest } from 'vitest';
-import React from "react";
-import { render, fireEvent } from "@testing-library/react";
+import { fireEvent, render } from "@testing-library/react";
import configureStore from "redux-mock-store";
+import { describe, expect, it } from "vitest";
import { toggleList } from "../../js/actions";
-
-import ListToggle from "../../js/templates/ListToggle";
import LocalizationProvider from "../../js/components/LocalizationProvider";
+import ListToggle from "../../js/templates/ListToggle";
const mockStore = configureStore([]);
const setup = (overrideListObject = {}, overrideStoreObject = {}) => {
@@ -27,7 +25,7 @@ const setup = (overrideListObject = {}, overrideStoreObject = {}) => {
items: "items",
},
},
- overrideStoreObject
+ overrideStoreObject,
);
return storeObject;
@@ -43,12 +41,12 @@ describe("List toggle component", () => {
const result = render(
-
+ ,
);
- expect(result.container.querySelector("#show_hide_label").textContent).toContain(
- "Overview (42 documents)"
- );
+ expect(
+ result.container.querySelector("#show_hide_label").textContent,
+ ).toContain("Overview (42 resources)");
});
it("renders hidden", () => {
@@ -58,27 +56,27 @@ describe("List toggle component", () => {
const result = render(
-
+ ,
);
- expect(result.container.querySelector("#show_hide_label").textContent).toContain(
- "Overview (42 documents)"
- );
+ expect(
+ result.container.querySelector("#show_hide_label").textContent,
+ ).toContain("Overview (42 resources)");
});
- it("renders with correct document number", () => {
+ it("renders with correct resources number", () => {
const storeObject = setup();
const store = mockStore(storeObject);
const result = render(
-
+ ,
);
- expect(result.container.querySelector("#list_item_count").textContent).toEqual(
- DOCS_NUMBER.toString()
- );
+ expect(
+ result.container.querySelector("#list_item_count").textContent,
+ ).toEqual(DOCS_NUMBER.toString());
});
it("triggers a correct redux action when clicked", () => {
@@ -90,7 +88,7 @@ describe("List toggle component", () => {
const result = render(
-
+ ,
);
const toggle = result.container.querySelector("#show_hide_button");
diff --git a/vis/test/snapshot/__snapshots__/list-base.test.jsx.snap b/vis/test/snapshot/__snapshots__/list-base.test.jsx.snap
index b89738ab3..bb0af6be1 100644
--- a/vis/test/snapshot/__snapshots__/list-base.test.jsx.snap
+++ b/vis/test/snapshot/__snapshots__/list-base.test.jsx.snap
@@ -51,7 +51,7 @@ exports[`List entries component snapshot (BASE) > matches a snapshot (zoomed-in,
1
- document
+ resource
)
@@ -616,7 +616,7 @@ exports[`List entries component snapshot (BASE) > matches a snapshot (zoomed-out
20
- documents
+ resources
)
diff --git a/vis/test/snapshot/__snapshots__/listtoggle.test.jsx.snap b/vis/test/snapshot/__snapshots__/listtoggle.test.jsx.snap
index 874e1edf3..9f103a753 100644
--- a/vis/test/snapshot/__snapshots__/listtoggle.test.jsx.snap
+++ b/vis/test/snapshot/__snapshots__/listtoggle.test.jsx.snap
@@ -34,7 +34,7 @@ exports[`List toggle component snapshot > matches a snapshot 1`] = `
13
- documents
+ resources
)