Skip to content

Commit 0ae4c8c

Browse files
committed
Merge branch 'develop' into 11382-featured-items-unicode-filename #11382
2 parents 791331e + ff42ebd commit 0ae4c8c

File tree

19 files changed

+504
-108
lines changed

19 files changed

+504
-108
lines changed

.github/workflows/deploy_beta_testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343

4444
deploy-to-payara:
4545
needs: build
46+
if: ${{ github.repository_owner == 'IQSS' }}
4647
runs-on: ubuntu-latest
4748

4849
steps:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Navigation across the guides has been improved. You can now click in the upper left to go "home". The navbar has been simplified with fewer links. The bottom of every page now has "Next" and "Previous" links. A "Source" link at the bottom has also been added. See #10942.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Update File Metadata API (PR #11271)
2+
3+
A new API endpoint has been added to allow updating file metadata for one or more files in a dataset.
4+
5+
See the [Native API documentation](https://guides.dataverse.org/en/latest/api/native-api.html) for details on usage.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### versionNote Bug fix
2+
3+
An issue causing more than one edit of a versionNote to fail, when done without a page refresh, has been fixed.

doc/sphinx-guides/source/_static/docsdataverse_org.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ iframe {
3535

3636
a.navbar-brand, a.navbar-brand:hover {
3737
color:#C55B28 !important;
38+
height: 50px;
39+
background: rgba(0, 0, 0, 0) url("../_static/images/dataverseicon.png") no-repeat scroll 0 8px;
40+
line-height: 20px;
41+
padding-left: 26px;
3842
}
3943
span.navbar-brand {color:#C55B28 !important; padding-left: 32px; height: 50px;}
4044
span.navbar-brand .icon-dataverse {color:#C55B28; font-size:28px; margin: -4px 0 0 -27px; position: absolute;}
@@ -48,13 +52,6 @@ ul.navbar-nav li.dropdown.open > span.dropdown-toggle {background: #e7e7e7;}
4852
.text-dataset {color:#31708F;}
4953
.text-file {color:#777777;}
5054

51-
#dataverse-org-homepage-url {
52-
height: 50px;
53-
background: rgba(0, 0, 0, 0) url("../_static/images/dataverseicon.png") no-repeat scroll 0 8px;
54-
line-height: 20px;
55-
padding-left: 26px;
56-
}
57-
5855
.navbar-default .navbar-nav > li > a {
5956
color: #303030 !important;
6057
}
@@ -189,4 +186,4 @@ div.sphinx-tabs {
189186

190187
li div.sphinx-tabs {
191188
padding-left: 0;
192-
}
189+
}

doc/sphinx-guides/source/_static/navbar_from_dataverse_org.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

doc/sphinx-guides/source/_templates/navbar.html

Lines changed: 0 additions & 70 deletions
This file was deleted.

doc/sphinx-guides/source/api/native-api.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,6 +2597,53 @@ The fully expanded example above (without environment variables) looks like this
25972597
25982598
curl -H "X-Dataverse-key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -X POST "https://demo.dataverse.org/api/datasets/:persistentId/add?persistentId=doi:10.5072/FK2/J8SJZB" -F 'jsonData={"description":"A remote image.","storageIdentifier":"trsa://themes/custom/qdr/images/CoreTrustSeal-logo-transparent.png","checksumType":"MD5","md5Hash":"509ef88afa907eaf2c17c1c8d8fde77e","label":"testlogo.png","fileName":"testlogo.png","mimeType":"image/png"}'
25992599
2600+
Update File Metadata
2601+
~~~~~~~~~~~~~~~~~~~~
2602+
2603+
Updates metadata for one or more files in a dataset. This API call allows you to modify file-level metadata without the need to replace the actual file content.
2604+
2605+
.. code-block:: bash
2606+
2607+
export API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
2608+
export SERVER_URL=https://demo.dataverse.org
2609+
export PERSISTENT_ID=doi:10.5072/FK2/J8SJZB
2610+
2611+
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "$SERVER_URL/api/datasets/:persistentId/files/metadata?persistentId=$PERSISTENT_ID" --upload-file file-metadata-update.json
2612+
2613+
The fully expanded example above (without environment variables) looks like this:
2614+
2615+
.. code-block:: bash
2616+
2617+
curl -H "X-Dataverse-key:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -X POST "https://demo.dataverse.org/api/datasets/:persistentId/files/metadata?:persistentId=doi:10.5072/FK2/J8SJZB" --upload-file file-metadata-update.json
2618+
2619+
The ``file-metadata-update.json`` file should contain a JSON array of objects, each representing a file to be updated. Here's an example structure:
2620+
2621+
.. code-block:: json
2622+
2623+
[
2624+
{
2625+
"dataFileId": 42,
2626+
"label": "Updated File Name",
2627+
"directoryLabel": "data/",
2628+
"description": "Updated file description",
2629+
"restricted": false,
2630+
"categories": ["Documentation", "Data"],
2631+
"provFreeForm": "Updated provenance information"
2632+
},
2633+
{
2634+
"dataFileId": 43,
2635+
"label": "Another Updated File",
2636+
"description": "Another updated description",
2637+
"restricted": true
2638+
}
2639+
]
2640+
2641+
Each object in the array must include the ``dataFileId`` field to identify the file. Other fields are optional and will only be updated if included.
2642+
2643+
The API will return a JSON object with information about the update operation, including any errors that occurred during the process.
2644+
2645+
Note: This API call requires appropriate permissions to edit the dataset and its files.
2646+
26002647
.. _cleanup-storage-api:
26012648

26022649
Cleanup Storage of a Dataset

doc/sphinx-guides/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
# ("Link", "http://example.com", True),
145145
# ],
146146
'navbar_links': [
147-
("View 3.6.2 Guides", "http://docs.dataverse.org/en/3.6.2/", True),
147+
("About Dataverse", "https://dataverse.org", True),
148148
],
149149

150150
# Global TOC depth for "site" navbar tab. (Default: 1)

doc/sphinx_bootstrap_theme/bootstrap/globaltoc.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<li class="dropdown globaltoc-container">
2+
<!-- Comment out "Site" from navbar (we list guides in the sidebar anyway) -->
3+
<!--
24
<a role="button"
35
id="dLabelGlobalToc"
46
data-toggle="dropdown"
57
data-target="#"
68
href="{{ pathto(master_doc) }}">{{ theme_navbar_site_name }} <b class="caret"></b></a>
9+
-->
710
<ul class="dropdown-menu globaltoc"
811
role="menu"
912
aria-labelledby="dLabelGlobalToc">{{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }}</ul>

0 commit comments

Comments
 (0)