Sometimes wire agencies send wire stories in multiple pieces - with updates / more details in follow-ups from the original wire stories. Follow-up stories usually contains some kind of reference to the original story.
Here is an example for a date source template that merges this kind of follow-up wires:
It works as follows:
1.Checks if the incoming wire is a follow-up of a previous one - trying to extract the key referencing the previous wire
2.If there is no key just import the wire normally
3.If there is a key search for a previous wire with that key
4.If there is no such previous wire give a warning and import the current wire normally
5.If a previous wire exists import the current wire on top of the previous one (i.e. using the id of the previous one), adding the new text after the preious one, and keeping the summary and title of the previous one.
6.In this last case also delete and un-delete the previous wire - to fire triggers and alert monitoring new objects in the wire destination folder.
Download Attachment: NITF.zip (7.07 KB)
The ZIP file contains the data source template (NITF_template.xml), the XSLT used to import the wires (xsl_ImportNITF.xml) and a couple of sample wire texts.
The example works for ANSA - the Italian national wire feed provider, but it should be easy to adapt it to other providers.