Curation tasks and helper scripts for the CGSpace institutional repository.
Go to file
Alan Orth 4b553676dd
src/main/java: Implement task "profiles"
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
2020-08-01 23:04:35 +03:00
.idea Use gson 2.2.1 2020-08-01 20:21:25 +03:00
src src/main/java: Implement task "profiles" 2020-08-01 23:04:35 +03:00
.gitignore Add .gitignore 2020-07-31 22:01:05 +03:00
COPYING Initial commit 2020-07-31 21:40:15 +03:00
README.md README.md: Add TODO about workflow 2020-08-01 21:56:36 +03:00
dspace-curation-tasks.iml Use gson 2.2.1 2020-08-01 20:21:25 +03:00
pom.xml Use gson 2.2.1 2020-08-01 20:21:25 +03:00

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.