# HG changeset patch # User bsw # Date 1603798437 -3600 # Node ID 0fce837631387c15cbc9f1a40a9adbda1472fbe7 # Parent 408e4b1d5234fcc92ce0fd33c523c333cdd80757 Added logging of external references to ontomap diff -r 408e4b1d5234 -r 0fce83763138 lib/ontomap/ontomap.lua --- a/lib/ontomap/ontomap.lua Mon Oct 26 11:06:53 2020 +0100 +++ b/lib/ontomap/ontomap.lua Tue Oct 27 12:33:57 2020 +0100 @@ -215,6 +215,10 @@ table.insert(log_event.references, new_reference_object( marker_link, config.firstlife.application_ident, "BELONGS_TO" )) + elseif event.initiative.external_reference then + table.insert(log_event.references, new_reference_object( + event.initiative.external_reference, config.firstlife.application_ident, "BELONGS_TO" + )) end local activity_object = new_activity_object{ @@ -241,6 +245,10 @@ table.insert(log_event.references, new_reference_object( marker_link, config.firstlife.application_ident, "BELONGS_TO" )) + elseif event.initiative.external_reference then + table.insert(log_event.references, new_reference_object( + event.initiative.external_reference, config.firstlife.application_ident, "BELONGS_TO" + )) end local activity_object = new_activity_object{ type = "initiative",