Catalogue links not being deleted
Links between metadata records were not being deleted because the 'realtionships' property of the GeminiDocument returned from the editor when a record is being saved still contained the old links.
Unfortunately, there are two ways of storing relationships between metadata records in Gemini documents: RelatedRecords and Relationships. The editor uses RelatedRecords but Relationships is the way the document is indexed into the Jena triplestore. Relationships is also on the AbstractMetadataRecord and used by other document types so can't just be switched.
The fix is the change in the model EditorMetadata to just delete the 'relationships' property in the sync function before calling the prototypes sync function.
Other work is:
- spread operator to create new options for sync in EditorMetadata
- more logging in the JenaIndexingService
- sorting import statements in GeminiEditorView
- initializing the autocomplete code in the same place in RelatedRecordView