Skip to content

Commit ef190ad

Browse files
committed
formatting #10909
1 parent b64dbf7 commit ef190ad

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

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

+12-7
Original file line numberDiff line numberDiff line change
@@ -5375,31 +5375,36 @@ Harvesting from DataCite
53755375
The following 2 options are **required** when harvesting from DataCite (https://oai.datacite.org/oai):
53765376
53775377
.. code-block:: bash
5378-
"useOaiIdentifiersAsPids": true,
5379-
"useListRecords": true,
5378+
5379+
"useOaiIdentifiersAsPids": true,
5380+
"useListRecords": true,
53805381
53815382
There are two ways the ``set`` parameter can be used when harvesting from DataCite:
53825383
53835384
- DataCite maintains pre-configured OAI sets for every subscribing institution that registers DOIs with them. This can be used to harvest the entire set of metadata registered by this organization or school, etc. (this is identical to how the set parameter is used with any other standard OAI archive);
53845385
- As a unique, proprietary DataCite feature, it can be used to harvest virtually any arbitrary subset of records (potentially spanning different institutions and authorities, etc.). Any query that the DataCite search API understands can be used as an OAI set name (!). For example, the following search query finds one specific dataset:
53855386
53865387
.. code-block:: bash
5387-
https://api.datacite.org/dois?query=doi:10.7910/DVN/TJCLKP
5388+
5389+
https://api.datacite.org/dois?query=doi:10.7910/DVN/TJCLKP
53885390
53895391
you can now create a single-record OAI set by using its base64-encoded form as the set name:
53905392
53915393
.. code-block:: bash
5392-
echo "doi:10.7910/DVN/TJCLKP" | base64
5393-
ZG9pOjEwLjc5MTAvRFZOL1RKQ0xLUAo=
5394+
5395+
echo "doi:10.7910/DVN/TJCLKP" | base64
5396+
ZG9pOjEwLjc5MTAvRFZOL1RKQ0xLUAo=
53945397
53955398
use the encoded string above prefixed by the ``~`` character in your harvesting client configuration:
53965399
53975400
.. code-block:: bash
5398-
"set": "~ZG9pOjEwLjc5MTAvRFZOL1RKQ0xLUAo="
5401+
5402+
"set": "~ZG9pOjEwLjc5MTAvRFZOL1RKQ0xLUAo="
53995403
54005404
The following configuration will create a client that will harvest the IQSS dataset specified above on a weekly schedule:
54015405
5402-
.. colde-block:: bash
5406+
.. code-block:: bash
5407+
54035408
{
54045409
"useOaiIdentifiersAsPids": true,
54055410
"useListRecords": true,

0 commit comments

Comments
 (0)