Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 1.26 KB

README.md

File metadata and controls

16 lines (12 loc) · 1.26 KB

dc-ore-packager

A tool to create a SimpleArchivePackage package from a BaseURL and a Handle of an item of any repository that supports OAI protocol, which can be imported by DSpace's Batch Import tool.

The objective is to create a clone of the given item using a link to its bitstreams and a copy of its bitstreams. The link is made using ORE format, so that the bitstreams are shown in the graphical interface in the exactly same way as the original item.

To use it:

from dc_ore_packager import DCOREPackager
repositoryURL = 'http://demo.dspace.org'
handleList = ['10673/3','10673/4','10673/5','10673/6','10673/7']
i = DCOREPackager(repositoryURL, handleList, outDir='/tmp')
print(i.getPackage())

A sample WebApp that receives a URL and send a package file: dc-ore-packager-webapp