Mercurial > hg > LGDataverses
comparison scripts/api/data-deposit/edit-dataset-1430-edit-subject @ 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 |
comparison
equal
deleted
inserted
replaced
9:5926d6419569 | 10:a50cf11e5178 |
---|---|
1 #!/bin/sh | |
2 # not working right now: SWORD: "Replacing metadata for a dataset" broken, throws exception - https://github.com/IQSS/dataverse/issues/1554 | |
3 USERNAME=spruce | |
4 PASSWORD=spruce | |
5 SERVER=localhost:8181 | |
6 if [ -z "$1" ]; then | |
7 GLOBAL_ID=`scripts/api/data-deposit/list-datasets | xpath '//id/text()' | cut -d'/' -f11,12,13` | |
8 else | |
9 GLOBAL_ID=$1 | |
10 #GLOBAL_ID=doi:10.5072/FK2/5555 | |
11 fi | |
12 curl --insecure --upload-file "scripts/search/tests/data/dataset-trees1-edit.xml" -H "Content-Type: application/atom+xml" https://$USERNAME:$PASSWORD@$SERVER/dvn/api/data-deposit/v1/swordv2/edit/study/$GLOBAL_ID \ | |
13 | xmllint -format - \ |