Skip to content

Commit b1ada17

Browse files
committed
docs: remove dataverse wording
1 parent ff42b7f commit b1ada17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/useCases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ const collectionIdOrAlias: number | string = 'collectionAlias' // or 123
344344
const searchTerm = 'searchOn'
345345

346346
getCollectionsForLinking
347-
.execute('dataverse', collectionIdOrAlias, searchTerm)
347+
.execute('collection', collectionIdOrAlias, searchTerm)
348348
.then((collections) => {
349349
// collections: CollectionSummary[]
350350
/* ... */

src/collections/domain/useCases/GetCollectionsForLinking.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export class GetCollectionsForLinking implements UseCase<CollectionSummary[]> {
1313

1414
/**
1515
* Returns an array of CollectionSummary (id, alias, displayName) to which the given Dataverse collection or Dataset may be linked.
16-
* @param objectType - 'dataverse' when providing a collection identifier/alias; 'dataset' when providing a dataset persistentId.
17-
* @param id - For objectType 'dataverse', a numeric id or alias string. For 'dataset', the persistentId string (e.g., doi:...)
16+
* @param objectType - 'collection' when providing a collection identifier/alias; 'dataset' when providing a dataset persistentId.
17+
* @param id - For objectType 'collection', a numeric id or alias string. For 'dataset', the persistentId string (e.g., doi:...)
1818
* @param searchTerm - Optional search term to filter by collection name. Defaults to empty string (no filtering).
1919
* @param alreadyLinked - Optional flag. When true, returns collections currently linked (candidates to unlink). Defaults to false.
2020
*/

0 commit comments

Comments
 (0)