@@ -11,6 +11,9 @@ const DATASET_RELEASE_TIME_STR = '2023-05-15T08:21:03Z'
1111const DATASET_CITATION =
1212 'Doe, John, 2023, "Test Dataset 1", https://doi.org/10.5072/FK2/XXXXXX, Root, V1, UNF:6:AAc5A5tAI9AVodAAAsOysA== [fileUNF]'
1313
14+ const DATASET_CITATION_HTML =
15+ 'Finch, Fiona; Spruce, Sabrina; Poe, Edgar Allen; Mulligan, Hercules, 2019, "Darwin\'s Finches", <a href="https://doi.org/10.70122/FK2/MB5VGR" target="_blank">https://doi.org/10.70122/FK2/MB5VGR</a>, Root, V3'
16+
1417export const createDatasetPreviewModel = ( ) : DatasetPreview => {
1518 const datasetPreviewModel : DatasetPreview = {
1619 type : CollectionItemType . DATASET ,
@@ -25,7 +28,7 @@ export const createDatasetPreviewModel = (): DatasetPreview => {
2528 lastUpdateTime : new Date ( DATASET_UPDATE_TIME_STR ) ,
2629 releaseTime : new Date ( DATASET_RELEASE_TIME_STR )
2730 } ,
28- citation : DATASET_CITATION ,
31+ citation : DATASET_CITATION_HTML ,
2932 description : 'test' ,
3033 publicationStatuses : [ PublicationStatus . Draft , PublicationStatus . Unpublished ] ,
3134 parentCollectionAlias : 'parentCollection' ,
@@ -47,6 +50,7 @@ export const createDatasetPreviewPayload = (): DatasetPreviewPayload => {
4750 updatedAt : DATASET_UPDATE_TIME_STR ,
4851 published_at : DATASET_RELEASE_TIME_STR ,
4952 citation : DATASET_CITATION ,
53+ citationHtml : DATASET_CITATION_HTML ,
5054 description : 'test' ,
5155 type : 'dataset' ,
5256 publicationStatuses : [ 'Draft' , 'Unpublished' ] ,
0 commit comments