core-geonetwork
core-geonetwork copied to clipboard
Configuration to notify by mail about metadata publication / unpublication
This change allows to configure a notification level to be notified when the metadata is published / un-published in the catalogue:
Notification levels:
A new notification level has been added (Notify to the group(s) emails
) to send notifications to a list of group configured. When selecting this notification level, it should be configured the list of group names to be notified.
In order to be notified, the group(s) configuration should define a mail address.
It has been updated also the local rating notifications to support his new notification level, to configure a list of groups if this level of notification is selected:
A mail with the list of metadata published / un-published like the following is sent:
For batch publication / un-publication a single mail with the summary of the publication is sent.
About the configuration, I was thinking that maybe we could have a configuration similar to other type of events ? We have 2 similar configs now:
INSERT INTO StatusValues (id, name, reserved, displayorder, type, notificationLevel)
VALUES (56,'recordprivilegeschange','y', 56, 'event', null);
which is used only on DefaultStatusAction so probably not used when privileges changes but recordprivilegeschange
is triggered when publishing/unpublishing. Maybe we could have 2 subevents ?
The other similar config is system/localrating/notificationLevel
setting which define a notification level rather than a list of emails. In most cases, user would like to notify catalog admin or group reviewers or members no ? Maybe that would be more consistent ?
About the events, the main issue is the batch publication, would be good to group all the notifications instead of individual mails.
I'll check system/localrating/notificationLevel
, I'm not familiar with this, but I can check if useful to implement like that.