Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.22.1 - 2023-11-10

### Unreleased
- Added License details in dataset object response

### Fixed
- Fixed hearthbeat bug where if the owner was not set in extractors_info.json clowder would throw and error and the
extractor would not get registered.
Expand Down
12 changes: 11 additions & 1 deletion app/models/Dataset.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,17 @@ object Dataset {
"thumbnail" -> datasetThumbnail,
"authorId" -> dataset.author.id,
"spaces" -> dataset.spaces,
"resource_type" -> "dataset")
"resource_type" -> "dataset",
"license" -> Json.obj(
"license_type" -> dataset.licenseData.m_licenseType,
"license_url" -> dataset.licenseData.m_licenseUrl,
"license_text" -> dataset.licenseData.m_licenseText,
"holders" -> dataset.licenseData.m_rightsHolder,
"ccAllowCommercial" -> dataset.licenseData.m_ccAllowCommercial,
"ccAllowDerivative" -> dataset.licenseData.m_ccAllowDerivative,
"ccRequireShareAlike" -> dataset.licenseData.m_ccRequireShareAlike
)
)
}
}
}
Expand Down