![]() |
|
|
Issue Type:
|
Improvement
|
Assignee:
|
Unassigned |
Created:
|
15/Oct/13 11:23 AM
|
Description:
|
Thanks to DS-1567 we now have a usable way to run batch commands from the CLI. Now it's time to add more useful commands and talk about consistency of their syntax because we could essentially duplicate the DSpace API here.
I propose adding operations on DSOs like this:
[dspace]/bin/dspace item -i <id> gethandle
[dspace]/bin/dspace item -i <handle> getid
[dspace]/bin/dspace item -i <id/handle> getcollections [-o id|handle] # outputs ids by default but can output handles
[dspace]/bin/dspace item -i <id/handle> getcommunities [-o id|handle]
[dspace]/bin/dspace item -i <id/handle> getparent [-o id|handle] # getParentObject()
[dspace]/bin/dspace item -i <id/handle> getbundles
[dspace]/bin/dspace item -i <id/handle> getbitstreams [-b bundle_id]
[dspace]/bin/dspace item -i <id/handle> iswithdrawn
[dspace]/bin/dspace item -i <id/handle> withdraw
[dspace]/bin/dspace item -i <id/handle> reinstate
[dspace]/bin/dspace item -i <id/handle> expunge
[dspace]/bin/dspace item -i <id/handle> addto <collection_id/handle>
[dspace]/bin/dspace item -i <id/handle> removefrom <collection_id/handle>|--all
...
[dspace]/bin/dspace metadata -i <id/handle> get <schema>.<element>.<qualifier>
[dspace]/bin/dspace metadata -i <id/handle> set <schema>.<element>.<qualifier>=<value>
[dspace]/bin/dspace bundle -i <id/handle> create <name> # returns bundle_id
[dspace]/bin/dspace bundle expunge <bundle_id>
[dspace]/bin/dspace bitstream add -i <id/handle> bundle <bundle_name> <path_to_file> [--name <name>] [--description <description>] # for simplicity, bundle_name is first bundle with that name; if it doesn't exist, it will be created
[dspace]/bin/dspace bitstream expunge <bitstream_id>
[TO BE AMENDED]
|
Fix Versions:
|
5.0 |
Project:
|
DSpace
|
Priority:
|
Minor
|
Reporter:
|
Ivan Masár
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel