Mercurial > hg > LGDataverses
diff scripts/api/data-deposit/show-atom-entry @ 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/api/data-deposit/show-atom-entry Tue Sep 08 17:00:21 2015 +0200 @@ -0,0 +1,12 @@ +#!/bin/bash +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 --insecure -s -u $USERNAME:$PASSWORD https://$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/edit/study/$GLOBAL_ID \ +| xmllint -format -