marco@1: SWORD2 DSpace bulk uploader marco@1: -------------------- marco@1: marco@1: A python script to submit large numbers of files to a SWORD2-compatible repository, specifically DSpace 1.8x. marco@14: Built on the SWORD2 python client library: https://github.com/swordapp/python-client-sword2 marco@1: marco@12: ----------------------------------------------- marco@12: Source: marco@12: marco@12: https://code.soundsoftware.ac.uk/projects/sworduploader/repository marco@12: marco@12: ----------------------------------------------- marco@1: Dependencies: marco@1: marco@1: - python 2.X marco@1: marco@14: - sword2 library: https://github.com/swordapp/python-client-sword2 marco@1: marco@12: ----------------------------------------------- marco@1: Installation: marco@1: marco@1: - no installation required, simply copy the script sworduploader.py to a suitable location. The first time you run the script, it will create the sword2_logging.conf file. marco@15: - a server.cfg file is also available. If the --servicedoc option is not used, sworduploader will read the first line of server.cfg and use it as the server's URL. If the server.cfg is missing, it will default to C4DM's server. marco@1: marco@12: ----------------------------------------------- marco@1: Usage: marco@1: marco@3: sworduploader[-h] [--username USER_NAME] [--title TITLE] marco@1: [--author AUTHOR [AUTHOR ...]] [--date DATE] marco@1: [--servicedoc DSPACEURL] marco@1: data marco@1: marco@1: Bulk upload to DSpace using SWORDv2. marco@1: marco@1: positional arguments: marco@12: data Accepts: METSDSpaceSIP and BagIt packages, simple zip marco@12: files, directories, single files. NOTE: METSDSpaceSIP marco@12: packages are only accepted by Collections with a marco@12: workflow! marco@1: marco@1: optional arguments: marco@1: -h, --help show this help message and exit marco@1: --username USER_NAME DSpace username. marco@1: --title TITLE Title (ignored for METS packages). marco@1: --author AUTHOR [AUTHOR ...] marco@1: Author(s) (ignored for METS packages). Accepts marco@1: multiple entries in the format "Surname, Name" marco@1: --date DATE Date of creation (string) (ignored for METS packages). marco@15: --zip If "data" is a directory, compress it and post it as a marco@15: single file. The zip file will be saved along with the marco@15: individual files. marco@15: --servicedoc SD Url of the SWORDv2 service document (default: use marco@15: server.cfg if available, otherwise http://c4dm.eecs.qm marco@15: ul.ac.uk/rdr/swordv2/servicedocument marco@1: marco@1: If the submission is created successfully, it will remain open to be completed marco@1: with the necessary metadata and licenses, using the DSpace web interface. The marco@1: submission can be found in the "My Account -> Submissions" section of the marco@1: user's area. marco@1: