Skip to content

Commit

Permalink
Merge pull request #11064 from Recherche-Data-Gouv/7961-update-guide
Browse files Browse the repository at this point in the history
Update Metadata Customization page to suggest how to implement booleans
  • Loading branch information
ofahimIQSS authored Jan 2, 2025
2 parents ce3e77c + 649e2af commit a9010c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/release-notes/11064-update-metadata-customization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Metadata Customization guide has been updated to explain how to implement a kind of boolean fieldtype (see [Metadata Customization Guide](https://guides.dataverse.org/en/latest/admin/metadatacustomization.html#controlledvocabulary-enumerated-properties))
13 changes: 9 additions & 4 deletions doc/sphinx-guides/source/admin/metadatacustomization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ Each of the three main sections own sets of properties:
| | #metadataBlock) | | |
+---------------------------+--------------------------------------------------------+----------------------------------------------------------+-----------------------+

.. _cvoc-props:

#controlledVocabulary (enumerated) properties
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -259,10 +261,10 @@ Each of the three main sections own sets of properties:
| | | an existing #datasetField from |
| | | another metadata block.) |
+--------------+--------------------------------------------+-----------------------------------------+
| Value | A short display string, representing | Free text |
| | an enumerated value for this field. If | |
| | the identifier property is empty, | |
| | this value is used as the identifier. | |
| Value | A short display string, representing | Free text. When defining a boolean, the |
| | an enumerated value for this field. If | values "True" and "False" are |
| | the identifier property is empty, | recommended and "Unknown" can be added |
| | this value is used as the identifier. | if needed. |
+--------------+--------------------------------------------+-----------------------------------------+
| identifier | A string used to encode the selected | Free text |
| | enumerated value of a field. If this | |
Expand Down Expand Up @@ -293,6 +295,9 @@ FieldType definitions
+---------------+------------------------------------+
| text | Any text other than newlines may |
| | be entered into this field. |
| | The text fieldtype may be used to |
| | define a boolean (see "Value" |
| | under :ref:`cvoc-props`). |
+---------------+------------------------------------+
| textbox | Any text may be entered. For |
| | input, the Dataverse Software |
Expand Down

0 comments on commit a9010c2

Please sign in to comment.