mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-12-23 05:32:30 +01:00
Curation tasks and helper scripts for the CGSpace institutional repository.
Alan Orth
4b553676dd
The DSpace curation system has task properties that can be used to create "profiles" of sorts. For example, if you set a custom task name in curate.cfg: plugin.named.org.dspace.curate.CurationTask = \ org.cgiar.cgspace.ctasks.CountryCodeTagger = countrycodetagger \ org.cgiar.cgspace.ctasks.CountryCodeTagger = countrycodetagger.force ... then DSpace will look for countrycodetagger.cfg by default, and countrycodetagger.force.cfg for the second task. We can set different properties in each one, for example "force=true", and then operate accordingly in the task when we check the value using taskProperty(). I will use this to force all country tags to be cleared and updated, where by default we only tag if there are no existing country tags. See: https://wiki.lyrasis.org/display/DSDOC5x/Curation+System |
||
---|---|---|
.idea | ||
src | ||
.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
- Add support for profiles so we can "force" re-tagging of all
- 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!
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.