You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's now possible to retrieve the Application Terms of Use (called General Terms of Use in the UI) via API. These are the terms users agree to when creating an account. See [the guides](https://dataverse-guide--11422.org.readthedocs.build/en/11422/api/native-api.html#get-application-terms-of-use-general-terms-of-use), #11415 and #11422.
In the UI, Application Terms of Use is called "General Terms of Use" and can be seen when you sign up for an account. The terms come from the database setting :ref:`:ApplicationTermsOfUse`. If you have enabled :ref:`i18n` you can pass a two-character language code (e.g. "en") as the ``lang`` parameter.
5553
+
5554
+
.. note:: See :ref:`curl-examples-and-environment-variables`if you are unfamiliar with the use of export below.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/installation/config.rst
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3921,22 +3921,31 @@ If you don't want the datafiles to be validated on publish, set:
3921
3921
3922
3922
``curl -X PUT -d 'false' http://localhost:8080/api/admin/settings/:FileValidationOnPublishEnabled``
3923
3923
3924
+
.. _:ApplicationTermsOfUse:
3924
3925
3925
3926
:ApplicationTermsOfUse
3926
3927
++++++++++++++++++++++
3927
3928
3928
-
Upload an default language HTML file containing the Terms of Useto be displayed at sign up. Supported HTML tags are listed under the :doc:`/user/dataset-management` section of the User Guide.
3929
+
Application Terms of Use (called "General Terms of Use" in the UI) are shown to the user when they sign up for an account. Some HTML tags are supported. For a list, see :ref:`supported-html-tags` in the User Guide.
3929
3930
3930
-
``curl -X PUT -d@/tmp/apptou.html http://localhost:8080/api/admin/settings/:ApplicationTermsOfUse``
3931
+
You can set terms like this:
3931
3932
3932
-
To upload a language specific Terms of Use file,
3933
+
``curl -X PUT http://localhost:8080/api/admin/settings/:ApplicationTermsOfUse --upload-file /tmp/apptou.html``
3933
3934
3934
-
``curl -X PUT -d@/tmp/apptou_fr.html http://localhost:8080/api/admin/settings/:ApplicationTermsOfUse/lang/fr``
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/user/dataset-management.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,10 @@ Adding a New Dataset
64
64
65
65
Note: You can add additional metadata once you have completed the initial dataset creation by going to clicking the Edit button and selecting Metadata from the dropdown menu.
66
66
67
-
.. _supported-html-fields:
67
+
.. _supported-html-tags:
68
68
69
-
Supported HTML Fields
70
-
---------------------
69
+
Supported HTML Tags
70
+
-------------------
71
71
72
72
We currently only support the following HTML tags for any of our textbox metadata fields (i.e., Description) : <a>, <b>, <blockquote>,
0 commit comments