Skip to content

Commit

Permalink
CORE-4902: docs btn style
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriibudko committed Sep 16, 2024
1 parent 2d87d1e commit 381d293
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
10 changes: 3 additions & 7 deletions components/usrn-stat/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Markdown from '../markdown'
import NumericValue from '../numeric-value'
import infoLight from '../upload/assets/infoLight.svg'
import LinkDoc from '../usrn-text/linkDoc'
import LinkToolKit from '../usrn-text/linkToolKit'

import { overview as textIrusUk } from 'texts/irus-uk/index'

Expand Down Expand Up @@ -200,12 +201,6 @@ const StatUSRN = ({ className, content, usrnParams }) => {
''
)

const linkDocumentation = content.linkDocumentation ? (
<LinkDoc content={content} />
) : (
''
)

const recommendationCreated = content.recommendation ? (
<div className={styles.recommendationWrapper}>
<div className={styles.recommendationHeader}>
Expand Down Expand Up @@ -252,7 +247,8 @@ const StatUSRN = ({ className, content, usrnParams }) => {
<div>
{descriptionCreated}
{prefixCreated}
{linkDocumentation}
<LinkDoc content={content} />
<LinkToolKit content={content} />
<div className={styles.stat}>{statCreated}</div>
<div className={styles.statText}>{statTextCreated}</div>
{recommendationCreated}
Expand Down
6 changes: 5 additions & 1 deletion components/usrn-text/linkToolKit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const LinkToolKit = ({ content }) => {
src={toolkit}
alt="toolkit"
/>
Go to the toolkit
{content.textToolKit && content.textToolKit.length > 3 ? (
content.textToolKit
) : (
<span>Go to the toolkit</span>
)}
</a>
) : (
''
Expand Down
6 changes: 3 additions & 3 deletions templates/usrn/cards/status-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const StatusCard = ({ usrnParams }) => {
<div className={styles.statusDateReportFirst}>
{texts.status.dateReport}: {usrnDateReportUpdate}
</div>
<Button variant="outlined" className={styles.headerButton}>
{texts.status.buttons.update}
</Button>
{/* <Button variant="outlined" className={styles.headerButton}> */}
{/* {texts.status.buttons.update} */}
{/* </Button> */}
</>
) : (
''
Expand Down
13 changes: 9 additions & 4 deletions texts/usrn/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,18 @@ statusItems:
CORE is currently developing an ORCID dashboard, which will enable repository managers to both to identify missing ORCID IDs,
and to enrich your data with ORCID IDs found from elsewhere.
prefix: |
linkDocumentation: https://orcid.org
linkDocumentation: 0
linkToolKit: https://orcid.org
textToolKit: Link to documentation
- id: ROR
isEnable: yes
type: statistic
title: ROR
description: |
prefix: |
recommendation: |
The CORE Dashboard enables you to specify your ROR ID. You should check the details to make sure your institution is identified correctly.
If the ROR ID is missing or incorrect, you can correct it on the dashboard. The ROR ID can be obtained from the [Research Organisation Registry](https://ror.org/) website,
If the ROR ID is missing or incorrect, you can correct it on the dashboard. The ROR ID can be obtained from the [Research Organisation Registry](https://ror.org/) website.
prefix: |
- id: metadata
isEnable: yes
type: text
Expand All @@ -184,7 +187,9 @@ statusItems:
recommendation:
FAIR signposting can be done adding information to HTTP headers.
Specifically, the HTTP header can contain a <link> element to describe the type of content resource, for example, “author”, or “collection”.
linkDocumentation: https://core.ac.uk/documentation/data-providers-guide#fair-signposting
linkDocumentation: 0
linkToolKit: https://core.ac.uk/documentation/data-providers-guide#fair-signposting
textToolKit: Link to documentation
prefix: |
- id: vocabulariesCOAR
isEnable: yes
Expand Down

0 comments on commit 381d293

Please sign in to comment.