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
7 changes: 7 additions & 0 deletions doc/release-notes/12879-outputmanagementplan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Add DataCite compatibility for resourceType OutputManagementPlan

Datasets with type `outputManagementPlan` now have the correct resourceType `OutputManagementPlan` in DataCite metadata format, as defined in the [schema](https://datacite-metadata-schema.readthedocs.io/en/4.5/appendices/appendix-1/resourceTypeGeneral/#).

For more information, see #12879 and #12880.


15 changes: 15 additions & 0 deletions doc/sphinx-guides/source/user/dataset-management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,19 @@ When creating a review dataset you will likely need to fill in required fields l

If you point ``itemReviewedUrl`` at the URL form of a dataset (e.g. https://doi.org/10.5072/FK2/ABCDEF) that is in the same Dataverse installation as the review dataset, the review dataset is considered a local review and can be listed using the :ref:`api-list-reviews` API endpoint. These reviews appear in the Croissant metadata export if you enable the :ref:`dataverse.feature.croissant-with-local-reviews` feature flag.

.. _creating-an-output-management-plan-dataset:

Output Management Plan Datasets
-------------------------------

You can only create an output management plan dataset if setup has already been done by a superuser. The Dataverse Collection attributes must be configured to include ``outputManagementPlan`` in ``allowedDatasetTypes``. See :ref:`collection-attributes-api` for details.

Output Management Plan Datasets can only be created via API. You have the following options:

- :ref:`api-create-dataset-with-type` (Native API)
- :ref:`api-semantic-create-dataset-with-type` (Semantic API)
- :ref:`import-dataset-with-type`

.. _dataset-types-datacite:

Dataset Types and DataCite
Expand All @@ -962,6 +975,8 @@ Adding certain dataset types will result in a value other than "Dataset" being s
- <resourceType resourceTypeGeneral="Workflow"/>
* - review
- <resourceType resourceTypeGeneral="Other">Review</resourceType>
* - outputManagementPlan
- <resourceType resourceTypeGeneral="OutputManagementPlan">Data Management Plan</resourceType>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any particular thinking behind having "Data Management Plan" in the XML like this?

<resourceType resourceTypeGeneral="OutputManagementPlan">Data Management Plan</resourceType>

Did you consider other terms or is this just the obvious one?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the example in the schema documentation.

@pdurbin pdurbin Nov 9, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I think this is fine for now but longer term, perhaps this can change from being hard-coded since it could be something other than a DMP.


Note that the value for resourceType (which is either empty or "Review", as shown above) can be overridden by values in the "Data Type" (``kindOfData``) metadata field.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class DatasetType implements Serializable {
public static final String DATASET_TYPE_SOFTWARE = "software";
public static final String DATASET_TYPE_WORKFLOW = "workflow";
public static final String DATASET_TYPE_REVIEW = "review";
public static final String DATASET_TYPE_OUTPUTMANAGEMENTPLAN = "outputManagementPlan";
public static final String DEFAULT_DATASET_TYPE = DATASET_TYPE_DATASET;

@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ private void writeResourceType(XMLStreamWriter xmlw, DvObject dvObject) throws X
case DatasetType.DATASET_TYPE_DATASET -> "Dataset";
case DatasetType.DATASET_TYPE_SOFTWARE -> "Software";
case DatasetType.DATASET_TYPE_WORKFLOW -> "Workflow";
case DatasetType.DATASET_TYPE_OUTPUTMANAGEMENTPLAN -> "OutputManagementPlan";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double-checked that OutputManagementPlan is part of the controlled vocabulary at https://datacite-metadata-schema.readthedocs.io/en/4.5/appendices/appendix-1/resourceTypeGeneral/

// We are not using the “PeerReview” for resourceTypeGeneral because it is
// specific to scholarly communications and may carry related connotations.
// We've asked DataCite to support "Review" so we don't have to use "Other".
Expand Down Expand Up @@ -915,6 +916,8 @@ private void writeResourceType(XMLStreamWriter xmlw, DvObject dvObject) throws X

} else if (DatasetType.DATASET_TYPE_REVIEW.equals(datasetTypeName)) {
XmlWriterUtil.writeFullElementWithAttributes(xmlw, "resourceType", attributes, "Review");
} else if (DatasetType.DATASET_TYPE_OUTPUTMANAGEMENTPLAN.equals(datasetTypeName)) {
XmlWriterUtil.writeFullElementWithAttributes(xmlw, "resourceType", attributes, "Data Management Plan");
} else {
// Write an attribute only element if there are no kindOfData values.
xmlw.writeStartElement("resourceType");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,22 @@ public void testFileResourceTypeGeneral(VersionState state) {
}

@ParameterizedTest
@CsvSource({"dataset, Dataset", "software, Software", "workflow, Workflow", "review, Other", "custom, Dataset"})
public void testDatasetResourceTypeGeneral(String datasetType, String expectedResourceType) {
@CsvSource({
"dataset, Dataset, ''",
"software, Software, ''",
"workflow, Workflow, ''",
"review, Other, Review",
"outputManagementPlan, OutputManagementPlan, Data Management Plan",
"custom, Dataset, ''"
})
public void testDatasetResourceTypeGeneral(String datasetType, String expectedResourceTypeGeneral, String expectedResourceType) {
Dataset dataset = resourceTypeTestDataset(datasetType);

String xml = new XmlMetadataTemplate(new DoiMetadata()).generateXML(dataset);
// System.out.println(xml);

assertEquals(expectedResourceType, XmlPath.from(xml).getString("resource.resourceType.@resourceTypeGeneral"));
assertEquals("review".equals(datasetType) ? "Review" : "", XmlPath.from(xml).getString("resource.resourceType"));
assertEquals(expectedResourceTypeGeneral, XmlPath.from(xml).getString("resource.resourceType.@resourceTypeGeneral"));
assertEquals(expectedResourceType, XmlPath.from(xml).getString("resource.resourceType"));
}

private Dataset resourceTypeTestDataset(String typeName) {
Expand Down
Loading