mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-11-22 23:05:12 +01:00
Curation tasks and helper scripts for the CGSpace institutional repository.
Alan Orth
e158e4bc98
We can append the codes we will add to a List of Strings and then actually apply them later in one addMetadata call, and update the item with one item.update() call. This reduces identical code and is more efficient. Note that when testing this on a collection with thousands of items I realized that it is really important to limit both the cache size as well as set the database transaction model to be per object/item or else you will crash due to Java heap issues. For example: $ ~/dspace/bin/dspace curate -t countrycodetagger -i 10568/3 -r - -l 500 -s object See: https://wiki.lyrasis.org/display/DSPACE/Curation+Task+Cookbook |
||
---|---|---|
.idea | ||
src/main | ||
.gitignore | ||
COPYING | ||
dspace-curation-tasks.iml | ||
pom.xml | ||
README.md |
DSpace Curation Tasks
Metadata curation tasks used on the CGSpace institutional repository:
- CountryCodeTagger: tag items with appropriate country codes based on their existing country metadata
Tested on DSpace 5.8. Read more about the DSpace curation system.
Notes
This project was initially created according to the Maven Getting Started Guide:
$ mvn -B archetype:generate -DgroupId=org.cgiar.cgspace.ctasks -DartifactId=dspace-curation-tasks -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
Todo
- Integrate with main DSpace build
- Make sure this doesn't work on items in the workflow
- Port to DSpace 6
- Remember to bump Gson version!
- Check for existence of metadata field before trying to add metadata
- Add tests
License
This work is licensed under the GPLv3.
This repository contains data from the Debian iso-codes project project, which is licensed under the GNU Lesser General Public License v2.1.