[dspace-tech] Batch Delete Items

2016-02-02 Thread Nushrat Khan
Hi,

I need some advice regarding batch deletion of items. I was trying to 
delete a group of items by a specific author on DSpace 5. For now I was 
able to delete multiple items using DELETE /items/{item id} on Curl by 
specifying the item IDs. But is there any better way to batch delete items 
based on specific condition?

Thank you,
Nushrat

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Updating Bitstream Metadata

2015-10-14 Thread Nushrat Khan
I am trying to update metadata of bitstreams using REST API but seems like 
it does not accept/update metadata for format or mimeType, even though it 
updates the description field. I am posting a JSON-LD file, for which 
DSpace does not auto detect those two fields leaving the format as 
"unknown" and mimeType as "application/octet-stream". Below is a sample 
curl command-

curl -X PUT -H "Content-type:application/json" -H "rest-dspace-token: 
received token" -d 
'{"id":12345,"name":"test.jsonld","handle":null,"type":"bitstream","link":"/rest/bitstreams/12345","expand":["parent","policies","all"],"bundleName":"ORIGINAL","description":"OAI:ORE
 
ReM","format":"JSON-LD","mimeType":"application/ld+json","sizeBytes":5790,"parentObject":null,"retrieveLink":"/bitstreams/12345/retrieve","checkSum":{"value":"2eac981bb98faf04b4bc77ec1e9eccc4","checkSumAlgorithm":"MD5"},"sequenceId":-1,"policies":null}'
 
https://testsite.edu/rest/bitstreams/12345

Are these fields restricted? Any suggestions would be much appreciated.

Thank you in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.