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
Dataverse collection linking and unlinking no longer requires superuser status. Users with the "Link Dataverse" permission on a collection can now perform these actions through the UI and API.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/admin/dataverses-datasets.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,14 @@ Moves a Dataverse collection whose id is passed to an existing Dataverse collect
22
22
Link a Dataverse Collection
23
23
^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
24
25
-
Creates a link between a Dataverse collection and another Dataverse collection (see the :ref:`dataverse-linking` section of the User Guide for more information). Only accessible to superusers. ::
25
+
Creates a link between a Dataverse collection and another Dataverse collection (see the :ref:`dataverse-linking` section of the User Guide for more information). ::
26
26
27
27
curl -H "X-Dataverse-key: $API_TOKEN" -X PUT http://$SERVER/api/dataverses/$linked-dataverse-alias/link/$linking-dataverse-alias
28
28
29
29
Unlink a Dataverse Collection
30
30
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
31
32
-
Removes a link between a Dataverse collection and another Dataverse collection. Only accessible to superusers. ::
32
+
Removes a link between a Dataverse collection and another Dataverse collection. Accessible to users with Link Dataverse permission on the linking Dataverse collection. ::
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/native-api.rst
+60Lines changed: 60 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3746,6 +3746,66 @@ The fully expanded example above (without environment variables) looks like this
3746
3746
3747
3747
curl -H "X-Dataverse-key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -X PUT "https://demo.dataverse.org/api/datasets/24/link/test"
3748
3748
3749
+
Unlink a Dataset
3750
+
~~~~~~~~~~~~~~~~
3751
+
3752
+
Removes a link between a dataset and a Dataverse collection (see :ref:`dataset-linking` section of Dataverse Collection Management in the User Guide for more information):
Creates a link between one Dataverse collection and another Dataverse collection (see :ref:`dataverse-linking` section of Dataverse Collection Management in the User Guide for more information):
curl -H "X-Dataverse-key: $API_TOKEN" -X PUT "$SERVER_URL/api/dataverses/$LINKED_DATAVERSE_ID/link/$LINKING_DATAVERSE_ID"
3782
+
3783
+
The fully expanded example above (without environment variables) looks like this:
3784
+
3785
+
.. code-block:: bash
3786
+
3787
+
curl -H "X-Dataverse-key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -X PUT "https://demo.dataverse.org/api/dataverses/linked-collection/link/linking-collection"
3788
+
3789
+
Unlink a Dataverse collection
3790
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3791
+
3792
+
Removes a link between one Dataverse collection and another Dataverse collection (see :ref:`dataverse-linking` section of Dataverse Collection Management in the User Guide for more information):
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/user/dataverse-management.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,18 +221,18 @@ In order to link a dataset, you will need your account to have the "Link Dataset
221
221
222
222
To link a dataset to your Dataverse collection, you must navigate to that dataset and click the white "Link" button in the upper-right corner of the dataset page. This will open up a window where you can type in the name of the Dataverse collection that you would like to link the dataset to. Select your Dataverse collection and click the save button. This will establish the link, and the dataset will now appear under your Dataverse collection.
223
223
224
-
A draft dataset can be linked to other Dataverse collections. It will only become publicly visible in the linked collection(s) after it has been published. To publish the dataset, your account must have the "Publish Dataset" permission for the Dataverse collection in which the dataset was originally created. Permissions in the linked Dataverse collections do not apply.
224
+
To remove an established link, navigate to the linked dataset's page and click the white "Unlink" button in the upper-right corner of the page.
225
225
226
-
There is currently no way to remove established links in the UI. If you need to remove a link between a Dataverse collection and a dataset, please contact the support team for the Dataverse installation you are using (see the :ref:`unlink-a-dataset` section of the Admin Guide for more information).
226
+
A draft dataset can be linked to other Dataverse collections. It will only become publicly visible in the linked collection(s) after it has been published. To publish the dataset, your account must have the "Publish Dataset" permission for the Dataverse collection in which the dataset was originally created. Permissions in the linked Dataverse collections do not apply.
227
227
228
228
.. _dataverse-linking:
229
229
230
230
Dataverse Collection Linking
231
231
============================
232
232
233
-
Similarly to dataset linking, Dataverse collection linking allows a Dataverse collection owner to "link" their Dataverse collection to another Dataverse collection, so the Dataverse collection being linked will appear in the linking Dataverse collection's list of contents without actually *being* in that Dataverse collection. Currently, the ability to link a Dataverse collection to another Dataverse collection is a superuser only feature.
233
+
Similarly to dataset linking, Dataverse collection linking allows a Dataverse collection owner to "link" their Dataverse collection to another Dataverse collection, so the Dataverse collection being linked will appear in the linking Dataverse collection's list of contents without actually *being* in that Dataverse collection.
234
234
235
-
If you need to have a Dataverse collection linked to your Dataverse collection, please contact the support team for the Dataverse installation you are using.
235
+
In order to link a collection, you will need your account to have the "Link Dataverse" permission on the linking Dataverse collection.
// Otherwise (no active search), check if there is at least one OTHER eligible collection
234
+
// Eligible means: not the current collection and not in the parent tree
235
+
// Technically, eligible also means "not already linked", but in that case, we show the Link button anyway and have the Link dialog display a message about all eligible collections already being linked
0 commit comments