Skip to content

Commit

Permalink
feat(DatasetThumbnail): add a TODO for the integration
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Oct 24, 2023
1 parent 87e3907 commit 65ccb16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/dataset/infrastructure/mappers/JSDatasetMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export class JSDatasetMapper {
jsDataset.alternativePersistentId,
jsDataset.publicationDate,
jsDataset.citationDate
)
),
undefined // TODO: get dataset thumbnail from Dataverse https://github.com/IQSS/dataverse-frontend/issues/203
).build()
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module";

.container {
min-height: 150px;
margin: 0.5rem 0;
padding: 10px;
border: 1px solid $dv-info-border-color;
min-height: 150px;
}

.citation {
Expand All @@ -25,8 +25,8 @@ min-height: 150px;

.preview-image {
width: 100%;
height: auto;
max-width: 140px;
height: auto;
max-height: 140px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const jsDataset = {
name: 'CC0 1.0',
uri: 'http://creativecommons.org/publicdomain/zero/1.0',
iconUri: 'https://licensebuttons.net/p/zero/1.0/88x31.png'
}
},
thumbnail: undefined
}
const citation =
'Finch, Fiona, 2023, "Darwin\'s Finches", <a href="https://doi.org/10.5072/FK2/B4B2MJ" target="_blank">https://doi.org/10.5072/FK2/B4B2MJ</a>, Root, DRAFT VERSION'
Expand Down Expand Up @@ -96,7 +97,8 @@ const expectedDataset = {
subject: ['Medicine, Health and Life Sciences']
}
}
]
],
thumbnail: undefined
}

describe('JS Dataset Mapper', () => {
Expand Down

0 comments on commit 65ccb16

Please sign in to comment.