Skip to content

Commit

Permalink
fix: add includeDeaccessioned parameter to getDatasetCitation()
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Dec 19, 2023
1 parent 7dfd9a0 commit 70e7314
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
import { JSDatasetMapper } from '../mappers/JSDatasetMapper'

const includeDeaccessioned = true

export class DatasetJSDataverseRepository implements DatasetRepository {
getByPersistentId(
persistentId: string,
Expand All @@ -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(
Expand Down

0 comments on commit 70e7314

Please sign in to comment.