Mercurial > hg > LGDataverses
view scripts/api/data-deposit/show-statement @ 11:08c950a22cee
new: add getAllDataverseAlias api for LGServices
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 09 Sep 2015 17:13:18 +0200 |
parents | a50cf11e5178 |
children |
line wrap: on
line source
#!/bin/sh USERNAME=spruce PASSWORD=spruce 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 https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/statement/study/$GLOBAL_ID \ | xmllint -format - \ #| xpath '//entry/title'