Open dannylamb opened 4 years ago
Right now, we're stuffing the isNewVersion boolean under the object heading in AS2 messages that get emitted: https://github.com/Islandora/islandora/blob/8.x-1.x/src/EventGenerator/EventGenerator.php#L114
isNewVersion
object
This should be down in the attachment section under content here: https://github.com/Islandora/islandora/blob/8.x-1.x/src/EventGenerator/EventGenerator.php#L155 That section is allowed to be freeform json and doesn't have to comply with https://www.w3.org/TR/activitystreams-core/
attachment
content
After changing that, there'll have to be some updates to Alpaca to pull out that boolean from the new location in the message. For example, here: https://github.com/Islandora/Alpaca/blob/dev/islandora-indexing-fcrepo/src/main/java/ca/islandora/alpaca/indexing/fcrepo/FcrepoIndexer.java#L167
so instead of attaching 'isNewVersion' to the $event["object"], attach it to the $data?
$event["object"]
$data
yep. Set the boolean as $data["isNewVersion"] and it should all work out.
$data["isNewVersion"]
Right now, we're stuffing the
isNewVersion
boolean under theobject
heading in AS2 messages that get emitted: https://github.com/Islandora/islandora/blob/8.x-1.x/src/EventGenerator/EventGenerator.php#L114This should be down in the
attachment
section undercontent
here: https://github.com/Islandora/islandora/blob/8.x-1.x/src/EventGenerator/EventGenerator.php#L155 That section is allowed to be freeform json and doesn't have to comply with https://www.w3.org/TR/activitystreams-core/After changing that, there'll have to be some updates to Alpaca to pull out that boolean from the new location in the message. For example, here: https://github.com/Islandora/Alpaca/blob/dev/islandora-indexing-fcrepo/src/main/java/ca/islandora/alpaca/indexing/fcrepo/FcrepoIndexer.java#L167