项目作者: UoW-IRRs

项目描述 :
Scripts for DSpace
高级语言: Java
项目地址: git://github.com/UoW-IRRs/DSpace-Scripts.git
创建时间: 2015-07-01T00:44:24Z
项目社区:https://github.com/UoW-IRRs/DSpace-Scripts

开源协议:BSD 3-Clause "New" or "Revised" License

下载


DSpace-Scripts

Scripts in this repository generally need to be invoked via

  1. sudo -u tomcat [dspace]/bin/dspace dsrun [classname]

Substitute actual user that DSpace/tomcat runs under for “tomcat”, actual DSpace installation directory for “[dspace]” and actual fully qualified class name for “[classname]”.

Scripts in this repository

(This section is incomplete)

Add bitstream to item from command line

Add a bitstream to an item via the command line. Optionally, specify the description and/or the name of the target bundle.

Class name for dsrun: nz.ac.waikato.its.irr.scripts.AddBitstreamFromCLI

  1. usage: AddBitstreamFromCLI options
  2. -b,--bundle <arg> Name of the bundle that this file should be
  3. added to (optional). If not given, ORIGINAL is
  4. used.
  5. -d,--description <arg> The file description (optional)
  6. -f,--file <arg> File to add
  7. -h,--help Print help for this command and exit without
  8. taking any action.
  9. -i,--identifier <arg> Handle or ID of item to add bitstream to

Copy collection configuration

Copy aspects of collection configuration from one collection to one or more others.

Class name for dsrun: nz.ac.waikato.its.irr.scripts.CopyCollectionConfiguration

  1. usage: CopyCollectionConfiguration options
  2. -c,--components <arg> The component to copy. Can be specified multiple
  3. times to copy multiple components, but at least
  4. one is required. Available components are almstw
  5. for a=administrators, l=logo, m=metadata,
  6. s=submitters, t=template, w=workflow.
  7. -f,--from <arg> The handle or ID of the collection from which to
  8. copy the configuration. Required.
  9. -h,--help Print help for this command and exit without
  10. taking any action.
  11. -t,--to <arg> Handle or ID of the collection to which to copy
  12. the configuration. Can be specified multiple
  13. times to process multiple collections. At least
  14. one is required.

Delete metadata field

Delete all occurrences of a metadata field, optionally also deleting it from the metadata field registry.

Class name for dsrun: nz.ac.waikato.its.irr.scripts.DeleteMetadataField

  1. usage: DeleteMetadataField options
  2. -f,--field <arg> The metadata field whose values should be deleted.
  3. Must follow the pattern schema.element.qualifier or
  4. schema.element.
  5. -h,--help Print help for this command.
  6. -n,--dry-run Don't actually make any changes, just report on what
  7. would be done.
  8. -r,--registry Also remove the field from the metadata registry. This
  9. will fail if any withdrawn items or template items
  10. contain this metadata field.