Skip to content

Commit

Permalink
Merge pull request #9668 from IQSS/9667-metadatablocks-api-extension
Browse files Browse the repository at this point in the history
9667 - displayFormat added to DatasetFieldType API payload
  • Loading branch information
kcondon committed Jul 10, 2023
2 parents f24c7de + 2410735 commit 13794a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/release-notes/9667-metadatablocks-api-extension.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DatasetFieldType attribute "displayFormat", is now returned by the API.
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ public static JsonObjectBuilder json(DatasetFieldType fld) {
fieldsBld.add("description", fld.getDescription());
fieldsBld.add("multiple", fld.isAllowMultiples());
fieldsBld.add("isControlledVocabulary", fld.isControlledVocabulary());
fieldsBld.add("displayFormat", fld.getDisplayFormat());
if (fld.isControlledVocabulary()) {
// If the field has a controlled vocabulary,
// add all values to the resulting JSON
Expand Down

0 comments on commit 13794a9

Please sign in to comment.