From 70e7314b58fdb0635fcab7da2810cf2fe38425f6 Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Tue, 19 Dec 2023 11:23:36 -0500 Subject: [PATCH] fix: add includeDeaccessioned parameter to getDatasetCitation() --- .../repositories/DatasetJSDataverseRepository.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts b/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts index c3773641b..d7288ef72 100644 --- a/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts +++ b/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts @@ -18,6 +18,7 @@ import { import { JSDatasetMapper } from '../mappers/JSDatasetMapper' const includeDeaccessioned = true + export class DatasetJSDataverseRepository implements DatasetRepository { getByPersistentId( persistentId: string, @@ -30,7 +31,11 @@ export class DatasetJSDataverseRepository implements DatasetRepository { Promise.all([ jsDataset, getDatasetSummaryFieldNames.execute(), - getDatasetCitation.execute(jsDataset.id, this.versionToVersionId(version)), + getDatasetCitation.execute( + jsDataset.id, + this.versionToVersionId(version), + includeDeaccessioned + ), getDatasetUserPermissions.execute(jsDataset.id), getDatasetLocks.execute(jsDataset.id), getDatasetFilesTotalDownloadSize.execute(