Add Validators external urls for both staging and production profiles

This commit is contained in:
George Kalampokis 2020-11-10 17:40:55 +02:00
parent f5533e1b95
commit d40265544d
2 changed files with 50 additions and 0 deletions

View File

@ -293,6 +293,31 @@
<fetchMode>FIRST</fetchMode> <!-- EITHER 'FIRST' OR 'ALL' -->
</datasets>
<validators>
<urls>
<urlConfig>
<key>zenodo</key>
<label>Zenodo</label>
<ordinal>1</ordinal>
<type>External</type>
<url>https://zenodo.org/api/records/?page={page}&amp;size={pageSize}&amp;q="{like}"</url>
<firstPage>1</firstPage>
<contenttype>application/json</contenttype>
<data>
<path>$[*]</path>
<fields>
<id>'conceptrecid'</id>
<name>'conceptdoi'</name>
<uri>'doi'</uri>
<description>'created'</description>
</fields>
</data>
<paginationpath>$['hits']['total']</paginationpath>
</urlConfig>
</urls>
<fetchMode>FIRST</fetchMode>
</validators>
</externalUrls>

View File

@ -311,6 +311,31 @@
<fetchMode>FIRST</fetchMode> <!-- EITHER 'FIRST' OR 'ALL' -->
</datasets>
<validators>
<urls>
<urlConfig>
<key>zenodo</key>
<label>Zenodo</label>
<ordinal>1</ordinal>
<type>External</type>
<url>https://zenodo.org/api/records/?page={page}&amp;size={pageSize}&amp;q="{like}"</url>
<firstPage>1</firstPage>
<contenttype>application/json</contenttype>
<data>
<path>$[*]</path>
<fields>
<id>'conceptrecid'</id>
<name>'conceptdoi'</name>
<uri>'doi'</uri>
<description>'created'</description>
</fields>
</data>
<paginationpath>$['hits']['total']</paginationpath>
</urlConfig>
</urls>
<fetchMode>FIRST</fetchMode>
</validators>
</externalUrls>