Skip to content

Commit 77083ba

Browse files
WC-234: Change Usage Figures Language (#1557)
* updating usage figures language with mouseovers, also one user guide url update that got missed previously * fix linting error, hopefully --------- Co-authored-by: Jake Rosenberg <[email protected]>
1 parent fcb5512 commit 77083ba

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

client/modules/datafiles/src/projects/ProjectCitation/ProjectCitation.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState } from 'react';
2+
import { Popover } from 'antd';
23
import {
34
useDataciteMetrics,
45
useProjectDetail,
@@ -170,11 +171,26 @@ export const DownloadCitation: React.FC<{
170171
</a>
171172
<div>
172173
<span className={styles['yellow-highlight']}>
173-
{dataciteMetrics?.data.attributes.downloadCount ?? '--'} Downloads
174+
<Popover
175+
overlayStyle={{ maxWidth: '400px' }}
176+
title="Unique Requests"
177+
content="User sessions in which one or more files are downloaded or previewed."
178+
>
179+
{dataciteMetrics?.data.attributes.downloadCount ?? '--'} Unique
180+
Requests
181+
</Popover>
174182
</span>
175183
&nbsp;&nbsp;&nbsp;&nbsp;
176184
<span className={styles['yellow-highlight']}>
177-
{dataciteMetrics?.data.attributes.viewCount ?? '--'} Views
185+
<Popover
186+
overlayStyle={{ maxWidth: '400px' }}
187+
title="Unique Investigations"
188+
content="User sessions in which any project or publications metadata is viewed,
189+
or one or more files is downloaded or previewed"
190+
>
191+
{dataciteMetrics?.data.attributes.viewCount ?? '--'} Unique
192+
Investigations
193+
</Popover>
178194
</span>
179195
&nbsp;&nbsp;&nbsp;&nbsp;
180196
<span className={styles['yellow-highlight']}>

client/modules/datafiles/src/publications/modals/DownloadDatasetModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export const DownloadDatasetModal: React.FC<{
287287
</a>{' '}
288288
and follow the
289289
<a
290-
href="/user-guide/managingdata/#data-transfer-guides"
290+
href="/user-guide/managingdata/datatransfer/"
291291
target="_blank"
292292
aria-describedby="msg-open-new-window"
293293
>

0 commit comments

Comments
 (0)