Editor draft system
The editor feature in GeoNetwork-UI relies on a draft system.
The original purpose was to let the user keep their ongoing edition, even when the GeoNetwork session expires. The edition can then be restored, even several days later. This can add complexity for the user, as they need to decide how to resolve conflict when saving from an outdated draft, and they also need to manage the draft status of their records, and be able to rollback.
Disabling
In case the added complexity is not wanted, there are two ways to disable the draft system:
- For the whole application
This can be done by setting theDISABLE_DRAFTinjection token to true:provideGn4({ disableDraft: true }) - For a single route
This can be done by setting thedisableDraftproperty totruein the data of the resolver:{ path: 'light-edit/:uuid', component: LightEditPageComponent, resolve: { record: EditRecordResolver }, data: { disableDraft: true, }, }