-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 10517-dataset-types #10517
Conflicts: src/test/java/edu/harvard/iq/dataverse/api/UtilIT.java tests/integration-tests.txt
- Loading branch information
Showing
25 changed files
with
1,021 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Improved JSON Schema validation for datasets | ||
|
||
Enhanced JSON schema validation with checks for required and allowed child objects, type checking for field types including `primitive`, `compound` and `controlledVocabulary`. More user-friendly error messages to help pinpoint the issues in the dataset JSON. See [Retrieve a Dataset JSON Schema for a Collection](https://guides.dataverse.org/en/6.3/api/native-api.html#retrieve-a-dataset-json-schema-for-a-collection) in the API Guide and PR #10543. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
New optional query parameter "returnDetails" added to "dataverses/{identifier}/facets/" endpoint to include detailed information of each DataverseFacet. | ||
|
||
New endpoint "datasetfields/facetables" that lists all facetable dataset fields defined in the installation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Release Highlights | ||
|
||
### Pre-Publish File DOI Reservation with DataCite | ||
|
||
Dataverse installations using DataCite (or other persistent identifier (PID) Providers that support reserving PIDs) will be able to reserve PIDs for files when they are uploaded (rather than at publication time). Note that reserving file DOIs can slow uploads with large numbers of files so administrators may need to adjust timeouts (specifically any Apache "``ProxyPass / ajp://localhost:8009/ timeout=``" setting in the recommended Dataverse configuration). | ||
|
||
## Major Use Cases | ||
|
||
- Users will have DOIs/PIDs reserved for their files as part of file upload instead of at publication time. (Issue #7068, PR #7334) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"datasetVersion": { | ||
"license": { | ||
"name": "CC0 1.0", | ||
"uri": "http://creativecommons.org/publicdomain/zero/1.0" | ||
}, | ||
"metadataBlocks": { | ||
"citation": { | ||
"fields": [ | ||
{ | ||
"value": "HTML & More", | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "title" | ||
}, | ||
{ | ||
"value": [ | ||
{ | ||
"authorName": { | ||
"value": "Markup, Marty", | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "authorName" | ||
}, | ||
"authorAffiliation": { | ||
"value": "W4C", | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "authorAffiliation" | ||
} | ||
} | ||
], | ||
"typeClass": "compound", | ||
"multiple": true, | ||
"typeName": "author" | ||
}, | ||
{ | ||
"value": [ | ||
{ | ||
"datasetContactEmail": { | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "datasetContactEmail", | ||
"value": "[email protected]" | ||
}, | ||
"datasetContactName": { | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "datasetContactName", | ||
"value": "Markup, Marty" | ||
} | ||
} | ||
], | ||
"typeClass": "compound", | ||
"multiple": true, | ||
"typeName": "datasetContact" | ||
}, | ||
{ | ||
"value": [ | ||
{ | ||
"dsDescriptionValue": { | ||
"value": "BEGIN<br></br>END", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"typeName": "dsDescriptionValue" | ||
}, | ||
"dsDescriptionDate": { | ||
"typeName": "dsDescriptionDate", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "2021-07-13" | ||
} | ||
} | ||
], | ||
"typeClass": "compound", | ||
"multiple": true, | ||
"typeName": "dsDescription" | ||
}, | ||
{ | ||
"value": [ | ||
"Medicine, Health and Life Sciences" | ||
], | ||
"typeClass": "controlledVocabulary", | ||
"multiple": true, | ||
"typeName": "subject" | ||
}, | ||
{ | ||
"typeName": "language", | ||
"multiple": true, | ||
"typeClass": "controlledVocabulary", | ||
"value": [ | ||
"English", | ||
"Afar", | ||
"aar" | ||
] | ||
} | ||
], | ||
"displayName": "Citation Metadata" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/edu/harvard/iq/dataverse/api/DatasetFields.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package edu.harvard.iq.dataverse.api; | ||
|
||
import edu.harvard.iq.dataverse.DatasetFieldServiceBean; | ||
import edu.harvard.iq.dataverse.DatasetFieldType; | ||
import jakarta.ejb.EJB; | ||
import jakarta.ws.rs.*; | ||
import jakarta.ws.rs.core.Response; | ||
|
||
import java.util.List; | ||
|
||
import static edu.harvard.iq.dataverse.util.json.JsonPrinter.jsonDatasetFieldTypes; | ||
|
||
/** | ||
* Api bean for managing dataset fields. | ||
*/ | ||
@Path("datasetfields") | ||
@Produces("application/json") | ||
public class DatasetFields extends AbstractApiBean { | ||
|
||
@EJB | ||
DatasetFieldServiceBean datasetFieldService; | ||
|
||
@GET | ||
@Path("facetables") | ||
public Response listAllFacetableDatasetFields() { | ||
List<DatasetFieldType> datasetFieldTypes = datasetFieldService.findAllFacetableFieldTypes(); | ||
return ok(jsonDatasetFieldTypes(datasetFieldTypes)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.