Hi, On 27/02/15 01:09, Hilton Gibson wrote:
I'm not Adan, but I have written a task that counts items with resource policies that have start and/or end dates in the future. So this could be modified to include a check how close to the current date these will come into effect. It's here: https://github.com/lconz-irr/Curation-Tasks/blob/6dbaca66be7b0d55bc5e0b551172ac5dc6006ab1/src/main/java/nz/ac/lconz/irr/curate/task/thesisembargo/FindAutolift.java Note that it expects three configuration settings via the curation task configuration mechanism (ie file in the config/module directory with name taskname.cfg where taskname matches the name of this task in curate.cfg): recipients - comma-separated list of recipients for the e-mail. If this is empty, the task can still be run from the command line or admin interface, it just won't e-mail. email.send-if-empty - whether to send an e-mail even when there are 0 such items. Default false. template - name of the e-mail template. Default "autolift_items_email". The e-mail template can simply look like this: # Parameters: {0} curation task output Subject: Items with future policies The curation task reports the following result: {0} DSpaceI hope this helps. cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand |
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette