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
It seems that importDDI API does not import terms of Use from XML.
Although there is a treatment for this section in ImportDDIServiceBean and it parses correctly input xml in processDataAccs,
dvDTO.setTermsOfUse(parseText(xmlr, "notes")) is not used, instead there is just parseText(xmlr, "notes"). Hence despite parsing the xml for terms of use, the terms never set.
What steps does it take to reproduce the issue?
Create import xml with <dataAccs> <notes type="DVN:TOU" level="dv">Test</notes> </dataAccs>
in stdyDscr section.
curl -H X-Dataverse-key:$API_TOKEN -X POST http://localhost:8080/api/dataverses/:root/datasets/:importddi --upload-file test_term_of_use.xml
Hey @lubitchv. I would think the same is true for the Terms of Access field. Would you happen to know? If you're not sure either I can test this and create a separate GitHub issue for it.
It seems that importDDI API does not import terms of Use from XML.
Although there is a treatment for this section in ImportDDIServiceBean and it parses correctly input xml in processDataAccs,
dvDTO.setTermsOfUse(parseText(xmlr, "notes")) is not used, instead there is just parseText(xmlr, "notes"). Hence despite parsing the xml for terms of use, the terms never set.
What steps does it take to reproduce the issue?
Create import xml with
<dataAccs> <notes type="DVN:TOU" level="dv">Test</notes> </dataAccs>
in stdyDscr section.
curl -H X-Dataverse-key:$API_TOKEN -X POST http://localhost:8080/api/dataverses/:root/datasets/:importddi --upload-file test_term_of_use.xml
Example of such xml file is attached.
test_term_of_use.txt
The text was updated successfully, but these errors were encountered: