Skip to content

Commit c307b6f

Browse files
committed
Merge branch 'refactor/rename-document-to-resource' into dev
2 parents 63f18d8 + 32b84c2 commit c307b6f

18 files changed

Lines changed: 215 additions & 200 deletions

File tree

examples/public/main_integration/base_sg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<meta name="keywords" content="knowldege visualization, open knowledge, open science">
2121

2222
<meta name="description"
23-
content="Get an overview of digital education, find relevant papers, and identify important concepts.">
23+
content="Get an overview of digital education, find relevant research outputs, and identify important concepts.">
2424

2525
<!-- FAVICONS -->
2626
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=xQz6nej7eR">

examples/public/main_integration/openaire.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<meta name="keywords" content="knowldege visualization, open knowledge, open science">
2121

2222
<meta name="description"
23-
content="Get an overview of digital education, find relevant papers, and identify important concepts.">
23+
content="Get an overview of digital education, find relevant research outputs, and identify important concepts.">
2424

2525
<!-- FAVICONS -->
2626
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=xQz6nej7eR">

examples/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<link rel="icon" type="image/png" sizes="16x16" href="./main_integration/img/favicon-16x16.png?v=xQz6nej7eR">
2323

2424
<meta name="description"
25-
content="Get an overview of digital education, find relevant papers, and identify important concepts.">
25+
content="Get an overview of digital education, find relevant research outputs, and identify important concepts.">
2626

2727
<!-- FAVICONS -->
2828
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=xQz6nej7eR">

examples/templates/pubmed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<link rel="icon" type="image/png" sizes="16x16" href="./main_integration/img/favicon-16x16.png?v=xQz6nej7eR">
2323

2424
<meta name="description"
25-
content="Get an overview of &quot;climate change&quot;, find relevant papers, and identify important concepts.">
25+
content="Get an overview of &quot;climate change&quot;, find relevant research outputs, and identify important concepts.">
2626

2727
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
2828
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800' rel='stylesheet' type='text/css'>

examples/templates/triple.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Overview of research on psychology</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
99
<meta name="description"
10-
content="Get an overview of psychology, find relevant papers, and identify important concepts.">
10+
content="Get an overview of psychology, find relevant research outputs, and identify important concepts.">
1111

1212
<script type="text/javascript" src="./triple/data-config-km.js"></script>
1313
<script type="text/javascript" src="./triple/data-config-sg.js"></script>

vis/js/i18n/localization.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -156,27 +156,27 @@ export const localization: {
156156
geomap_label: "Geo Map of",
157157
custom_title_explanation:
158158
"This is a custom title. Please see the info button for more information. Original query:",
159-
articles_label: "documents",
159+
articles_label: "resources",
160160
most_recent_label: "most recent",
161161
most_relevant_label: "most relevant",
162162
most_relevant_tooltip:
163163
"At the moment, we use the relevance ranking provided by the source API. Both PubMed and BASE mainly use text similarity between your query and the article metadata to determine the relevance. Please consult the FAQ for more information.",
164164
most_relevant_tooltip_sg:
165-
"In this streamgraph you find the most relevant documents matching your query related to the top keywords. To determine the most relevant documents, we use the relevance ranking provided by the data source e.g. BASE. Data sources mainly use text similarity between your query and the article metadata to determine the relevance ranking. Please consult the FAQs for more information.",
165+
"In this streamgraph you find the most relevant resources matching your query related to the top keywords. To determine the most relevant resources, we use the relevance ranking provided by the data source e.g. BASE. Data sources mainly use text similarity between your query and the article metadata to determine the relevance ranking. Please consult the FAQs for more information.",
166166
source_label: "Data source",
167167
resulttype_label: "Document type",
168-
documenttypes_label: "Document types",
168+
documenttypes_label: "Resource types",
169169
readers_count_label: "readers",
170170
documenttypes_tooltip:
171-
"The following document types were taken into consideration in the creation of this visualization (not all of them may appear in the visualization):",
171+
"The following resource types were taken into consideration in the creation of this visualization (not all of them may appear in the visualization):",
172172
area: "Area",
173173
items: "items",
174174
backlink: "← Back to overview",
175-
backlink_list: "Show all documents in area",
176-
backlink_list_streamgraph: "Show all documents",
177-
backlink_list_streamgraph_stream_selected: "Show all documents in stream",
175+
backlink_list: "Show all resources in area",
176+
backlink_list_streamgraph: "Show all resources",
177+
backlink_list_streamgraph_stream_selected: "Show all resources in stream",
178178
keywords: "Keywords",
179-
doctypes: "Document type(s)",
179+
doctypes: "Resource type(s)",
180180
unknown: "Unknown",
181181
no_keywords: "not available",
182182
notAvailable: "not available",
@@ -211,9 +211,9 @@ export const localization: {
211211
"You can use this code to embed the visualization on your own website or in a dashboard.",
212212
area_streamgraph: "Stream",
213213
stream_year: "Year",
214-
stream_doc_num: "Number of documents",
215-
stream_docs: "Documents",
216-
stream_total: "Total documents in stream",
214+
stream_doc_num: "Number of resources",
215+
stream_docs: "Resources",
216+
stream_total: "Total resources in stream",
217217
empty_area_warning:
218218
"No matches found. Please reset your filter options above.",
219219
lang_all: "All languages",
@@ -225,8 +225,8 @@ export const localization: {
225225
"Open Knowledge Maps (${year}). ${type} for research on ${query}. Retrieved from ${source} [${date}].",
226226
cite_vis_km: "Please cite this knowledge map as follows",
227227
cite_vis_sg: "Please cite this streamgraph as follows",
228-
cite_paper: "Cite this document as",
229-
export_paper: "Export this document",
228+
cite_paper: "Cite this resource as",
229+
export_paper: "Export this resource",
230230
download: "Download",
231231
please_note: "Please note",
232232
scale_by_label: "Scale map by: ",
@@ -257,7 +257,7 @@ export const localization: {
257257
"Dieser Titel wurde manuell geändert. Die Original-Suche lautet:",
258258
most_recent_label: "neueste",
259259
most_relevant_label: "relevanteste",
260-
articles_label: "Artikel",
260+
articles_label: "ressourcen",
261261
source_label: "Quelle",
262262
resulttype_label: "Dokumentart",
263263
documenttypes_label: "Publikationsarten",
@@ -317,8 +317,8 @@ export const localization: {
317317
"Open Knowledge Maps (${year}). ${type} for research on ${query}. Retrieved from ${source} [${date}].",
318318
cite_vis_km: "Please cite this knowledge map as follows",
319319
cite_vis_sg: "Please cite this streamgraph as follows",
320-
cite_paper: "Cite this document as",
321-
export_paper: "Export this document",
320+
cite_paper: "Cite this resource as",
321+
export_paper: "Export this resource",
322322
download: "Download",
323323
please_note: "Please note",
324324
citation_warning:
@@ -360,7 +360,7 @@ export const localization: {
360360
title: "title",
361361
items: "items",
362362
backlink: "← Back to overview",
363-
backlink_list: "Show all documents in area",
363+
backlink_list: "Show all resources in area",
364364
unknown: "Unknown",
365365
custom_title_explanation:
366366
"This is a custom title. Please see the info button for more information. Original query:",
@@ -375,37 +375,37 @@ export const localization: {
375375
authors: "authors",
376376
title: "title",
377377
backlink: "← Back to overview",
378-
backlink_list: "← Show all documents",
379-
backlink_list_streamgraph: "← Show all documents",
380-
backlink_list_streamgraph_stream_selected: "← Show all documents in stream",
378+
backlink_list: "← Show all resources",
379+
backlink_list_streamgraph: "← Show all resources",
380+
backlink_list_streamgraph_stream_selected: "← Show all resources in stream",
381381
unknown: "Unknown",
382382
streamgraph_label: "Streamgraph of",
383383
overview_authors_label: "Overview of the works of",
384384
streamgraph_authors_label: "Streamgraph of the works of",
385385
custom_title_explanation:
386386
"This is a custom title. Please see the info button for more information. Original query:",
387387
most_relevant_tooltip:
388-
"To determine the most relevant documents, we use the relevance ranking provided by the data source e.g. BASE. Data sources mainly use text similarity between your query and the article metadata to determine the relevance ranking. Please consult the FAQs for more information.",
389-
documenttypes_label: "Document types",
388+
"To determine the most relevant resources, we use the relevance ranking provided by the data source e.g. BASE. Data sources mainly use text similarity between your query and the article metadata to determine the relevance ranking. Please consult the FAQs for more information.",
389+
documenttypes_label: "Resource types",
390390
all: "any",
391391
open_access: "Open Access",
392392
items: "items",
393393
high_metadata_quality: "Data quality",
394394
high_metadata_quality_desc_base:
395-
"This visualization only includes documents with an abstract (min. 300 characters). High metadata quality significantly improves the quality of your visualization.",
395+
"This visualization only includes resources with an abstract (min. 300 characters). High metadata quality significantly improves the quality of your visualization.",
396396
high_metadata_quality_desc_pubmed:
397-
"This visualization only includes documents with an abstract. High metadata quality significantly improves the quality of your visualization.",
397+
"This visualization only includes resources with an abstract. High metadata quality significantly improves the quality of your visualization.",
398398
high_metadata_quality_desc_aquanavi:
399-
"This visualization only includes documents with an abstract (min. 300 characters). High metadata quality significantly improves the quality of your visualization.",
399+
"This visualization only includes resources with an abstract (min. 300 characters). High metadata quality significantly improves the quality of your visualization.",
400400
low_metadata_quality: "Data quality",
401401
low_metadata_quality_desc_base:
402-
"This visualization includes documents with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization.",
402+
"This visualization includes resources with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization.",
403403
low_metadata_quality_desc_pubmed:
404-
"This visualization includes documents with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization.",
404+
"This visualization includes resources with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization.",
405405
low_metadata_quality_desc_aquanavi:
406-
"This visualization includes documents with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization.",
406+
"This visualization includes resources with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization.",
407407
time_frame_context_sg:
408-
"Please note that we remove time intervals with only a few associated papers during the computation of your streamgraph to increase its readability. As a result the time on the x-axis may not align with the time range you selected.",
408+
"Please note that we remove time intervals with only a few associated resources during the computation of your streamgraph to increase its readability. As a result the time on the x-axis may not align with the time range you selected.",
409409
// metrics
410410
citations_count_label: "citations",
411411
social_media_count_label: "social media mentions",
@@ -416,7 +416,7 @@ export const localization: {
416416
metrics_label: "Metrics",
417417
researcher_details_label: "Researcher details",
418418
scale_by_explanation:
419-
"The size of the bubbles is relative to the number of documents related to them.",
419+
"The size of the bubbles is relative to the number of resources related to them.",
420420
scale_label: {
421421
"content_based": "Documents",
422422
"citations": "Citations",
@@ -436,33 +436,33 @@ export const localization: {
436436
authors: "authors",
437437
title: "title",
438438
backlink: "← Back to overview",
439-
backlink_list: "Show all documents in area",
440-
backlink_list_streamgraph: "Show all documents",
441-
backlink_list_streamgraph_stream_selected: "Show all documents in stream",
439+
backlink_list: "Show all resources in area",
440+
backlink_list_streamgraph: "Show all resources",
441+
backlink_list_streamgraph_stream_selected: "Show all resources in stream",
442442
unknown: "Unknown",
443443
streamgraph_label: "Streamgraph of",
444444
overview_authors_label: "Knowledge map for the works of",
445445
streamgraph_authors_label: "Streamgraph for the works of",
446446
custom_title_explanation:
447447
"This is a custom title. Please see the info button for more information. Original query:",
448448
most_relevant_tooltip:
449-
"To determine the most relevant documents, we use the relevance ranking provided by the data source e.g. BASE. Data sources mainly use text similarity between your query and the article metadata to determine the relevance ranking. Please consult the FAQs for more information.",
450-
documenttypes_label: "Document types",
449+
"To determine the most relevant resources, we use the relevance ranking provided by the data source e.g. BASE. Data sources mainly use text similarity between your query and the article metadata to determine the relevance ranking. Please consult the FAQs for more information.",
450+
documenttypes_label: "Resource types",
451451
all: "any",
452452
open_access: "Open Access",
453453
items: "items",
454454
high_metadata_quality: "Data quality",
455455
high_metadata_quality_desc_base:
456-
"This visualization only includes documents with an abstract (min. 300 characters). High metadata quality significantly improves the quality of your visualization.",
456+
"This visualization only includes resources with an abstract (min. 300 characters). High metadata quality significantly improves the quality of your visualization.",
457457
high_metadata_quality_desc_pubmed:
458-
"This visualization only includes documents with an abstract. High metadata quality significantly improves the quality of your visualization.",
458+
"This visualization only includes resources with an abstract. High metadata quality significantly improves the quality of your visualization.",
459459
low_metadata_quality: "Data quality",
460460
low_metadata_quality_desc_base:
461-
"This visualization includes documents with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization. ",
461+
"This visualization includes resources with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization. ",
462462
low_metadata_quality_desc_pubmed:
463-
"This visualization includes documents with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization. ",
463+
"This visualization includes resources with and without an abstract. Low metadata quality may significantly reduce the quality of your visualization. ",
464464
time_frame_context_sg:
465-
"Please note that we remove time intervals with only a few associated papers during the computation of your streamgraph to increase its readability. As a result the time on the x-axis may not align with the time range you selected.",
465+
"Please note that we remove time intervals with only a few associated resources during the computation of your streamgraph to increase its readability. As a result the time on the x-axis may not align with the time range you selected.",
466466
// metrics
467467
citations_count_label: "citations",
468468
social_media_count_label: "social media mentions",
@@ -473,7 +473,7 @@ export const localization: {
473473
metrics_label: "Metrics",
474474
researcher_details_label: "Researcher details",
475475
scale_by_explanation:
476-
"The size of the bubbles is relative to the number of documents related to them.",
476+
"The size of the bubbles is relative to the number of resources related to them.",
477477
scale_label: {
478478
"content_based": "Documents",
479479
"citations": "Citations",
@@ -493,7 +493,7 @@ export const localization: {
493493
citations: "citations",
494494
title: "title",
495495
backlink: "← Back to overview",
496-
backlink_list: "Show all documents in area",
496+
backlink_list: "Show all resources in area",
497497
unknown: "Unknown",
498498
documenttypes_label: "Article types",
499499
dataset_count_label: "datasets",

vis/js/templates/ListToggle.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React, { FC } from "react";
22
import { connect } from "react-redux";
3+
import { Dispatch } from "redux";
4+
35
import { toggleList } from "../actions";
46
import { useLocalizationContext } from "../components/LocalizationProvider";
5-
import useMatomo from "../utils/useMatomo";
67
import { STREAMGRAPH_MODE } from "../reducers/chartType";
7-
import { Dispatch } from "redux";
88
import { FilterValuesType, State } from "../types";
9+
import useMatomo from "../utils/useMatomo";
910

1011
interface ListToggleProps {
1112
appliedFilter: FilterValuesType;
@@ -42,10 +43,10 @@ const ListToggle: FC<ListToggleProps> = ({
4243
mainLabel = isStreamgraph ? loc.area_streamgraph : loc.area;
4344
}
4445

45-
let docsLabel = "document";
46+
let docsLabel = "resource";
4647
switch (appliedFilter) {
4748
case "open_access":
48-
docsLabel = "open access document";
49+
docsLabel = "open access resource";
4950
break;
5051
case "dataset":
5152
docsLabel = "dataset";

vis/js/templates/listentry/PaperButtons.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React, { FC } from "react";
22
import { connect } from "react-redux";
3-
import useMatomo from "../../utils/useMatomo";
3+
4+
import Highlight from "../../components/Highlight";
5+
import { AllPossiblePapersType, State } from "../../types";
46
import { getPaperPDFClickHandler } from "../../utils/data";
57
import { mapDispatchToListEntriesProps } from "../../utils/eventhandlers";
6-
import Highlight from "../../components/Highlight";
8+
import useMatomo from "../../utils/useMatomo";
79
import { isNonTextDocument } from "../Paper";
8-
import { AllPossiblePapersType, State } from "../../types";
910

1011
interface PaperButtonsProps {
1112
paper: AllPossiblePapersType;
@@ -89,7 +90,7 @@ const PaperButtons: FC<PaperButtonsProps> = ({
8990
{hasCiteButton && (
9091
<button
9192
className="paper_button"
92-
title="Cite this document"
93+
title="Cite this resource"
9394
onClick={handleCiteButtonClick}
9495
>
9596
<i className="fa fa-quote-right"></i>&nbsp;&nbsp;Cite as
@@ -98,7 +99,7 @@ const PaperButtons: FC<PaperButtonsProps> = ({
9899
{showExportButton && (
99100
<button
100101
className="paper_button"
101-
title="Export this document"
102+
title="Export this resource"
102103
onClick={handleExportButtonClick}
103104
>
104105
<i className="fa fa-arrow-down"></i>&nbsp;&nbsp;Export

0 commit comments

Comments
 (0)