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
The tutorial on running Dataverse in Docker has been updated to include [how to load a metadata block](https://dataverse-guide--11204.org.readthedocs.build/en/11204/container/running/demo.html#additional-metadata-blocks) and then update Solr to know about the new fields. See also #11004 and #11204
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/container/running/demo.rst
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,54 @@ If you want to specify fewer previewers, you can edit the ``compose.yml`` file.
213
213
214
214
``INCLUDE_PREVIEWERS=text,html,pdf,csv``
215
215
216
+
217
+
.. _additional-metadata-blocks:
218
+
219
+
Additional Metadata Blocks
220
+
++++++++++++++++++++++++++
221
+
222
+
Metadata fields such as "Title" are part of a metadata block such as "Citation". See :ref:`metadata-references` in the User Guide for the metadata blocks that ship with Dataverse.
223
+
224
+
At a high level, we will be loading a metadata block and then adjusting our Solr config to know about it.
225
+
226
+
Care should be taken when adding additional metadata blocks. There is no way to `preview <https://github.com/IQSS/dataverse/issues/2551>`_ or `delete <https://github.com/IQSS/dataverse/issues/9628>`_ a metadata block so please use a throwaway environment.
227
+
228
+
:ref:`metadata-references` lists some experimental metadata blocks. In the example below, we'll use the CodeMeta block.
229
+
230
+
First, download a metadata block or create one by following :doc:`/admin/metadatacustomization` in the Admin Guide.
231
+
232
+
Load the metadata block like this:
233
+
234
+
``curl http://localhost:8080/api/admin/datasetfield/load -H "Content-type: text/tab-separated-values" -X POST --upload-file codemeta.tsv``
235
+
236
+
Next, reconfigure Solr to know about the new metadata block.
237
+
238
+
You can back up your existing Solr schema like this:
At this point you can proceed with testing the metadata block in the Dataverse UI. First you'll need to enable it for a collection (see :ref:`general-information` in the User Guide section about collection). Afterwards, create a new dataset, save it, and then edit the metadata for that dataset. Your metadata block should appear.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/developers/tips.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,7 @@ Both developers and sysadmins need to update the Solr schema from time to time.
202
202
203
203
At this point you can do a ``git diff`` and see if your changes make sense before committing.
204
204
205
-
Sysadmins are welcome to run ``update-fields.sh`` however they like. See :ref:`update-solr-schema` in the Admin Guide for details.
205
+
Sysadmins are welcome to run ``update-fields.sh`` however they like. See :ref:`update-solr-schema` in the Admin Guide and :ref:`additional-metadata-blocks` in the Container Guide for details.
0 commit comments