Revise embargo email notification condition

Project:RUcore Notification System
Version:8.1
Component:Code
Category:task
Priority:normal
Assigned:ananthan
Status:closed
Description

For items in the SOAR portal when an embargo expires the author is supposed to get an email notfiying them that the embargo has just expired.

Currently, the logic used to determine the author is to check the digiprov of the resource and sends a message to the entry with the <rulib:type>Upload file</rulib:type>.

The issue seems to be the code is only expecting one associatedEntity for that diviprov type.

Example of more than one below.

<digiprovEvent ID="DPEVENT-3">
<type>Upload file</type>
<dateTime>2015-12-10</dateTime>
<associatedEntity ID="DPAE-1">
<name>Otto Jane</name>
<role>Depositing Designee</role>
<affiliation>10163</affiliation>
<email>jjotto@rutgers.edu</email>
<identifier>jjotto@rutgers.edu</identifier>
<identifierType>local</identifierType>
</associatedEntity>
<associatedEntity ID="DPAE-2">
<name>Ananthan Kalaivani</name>
<role>Depositing Author</role>
<affiliation>10163</affiliation>
<email>kalaivani.ananthan@rutgers.edu</email>
<identifier>ka17@rutgers.edu</identifier>
<identifierType>local</identifierType>
</associatedEntity>
</digiprovEvent>

Comments

#1

Assigned to:chadmills» jgeng
Status:active» test

Create a resource with multiple authors under the Upload File digiprov event. Create a XACML policy that has expired in the last 24 hours. Run the embargo notification job.

#2

Assigned to:jgeng» ananthan
Status:test» fixed

#3

Status:fixed» closed

Back to top