Mercurial > hg > LGDataverses
view scripts/api/data-deposit/unsupported-download-files @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Sep 2015 17:00:21 +0200 |
parents | |
children |
line wrap: on
line source
#!/bin/sh USERNAME=pete PASSWORD=pete DVN_SERVER=localhost:8181 if [ -z "$1" ]; then GLOBAL_ID=`scripts/api/data-deposit/list-datasets | xpath '//id/text()' | cut -d'/' -f11,12,13` else GLOBAL_ID=$1 #GLOBAL_ID=doi:10.5072/FK2/5555 fi curl -s --insecure https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/edit-media/study/$GLOBAL_ID \ | xmllint -format -