Closed wangf1122 closed 11 months ago
The change works, but note that the batch editor requires more updates to use multilingual values.
@josegar74
The change works, but note that the batch editor requires more updates to use multilingual values.
If batch editing is not ready to be used as it required more update, is there an easy way to restrict access to more administrative type users until it is ready?
@ianwallen
You could hide it from the editor board page:
Changing ng-if="user.isEditorOrMore()"
to ng-if="user.isAdministratorOrMore()"
And adding that snippet to hide it from the menu:
Note that will not protect the backend services, but probably enough to hide it to most users.
@josegar74, @CarHenkel
Changing
ng-if="user.isEditorOrMore()"
tong-if="user.isAdministratorOrMore()"
Is this something that would be accepted by other users/clients using HNAP or would this need to be an custom change on our side? We would prefer to restrict the number of custom changes.
@ianwallen @josegar74 We had reported this in ticket #356162. The conversation with Michel came back with two options. We didn't want to get rid of the batch edit function as my predecessor used it for large edits (I don't). The bug fell off the radar.
Staff Hello,
I would propose not to use this batch functions but use the ones in the admin pages instead.
These batch pages can be found under: admin > tools > batch process (or the link: https://iso19139echnap.geocat.live/geonetwork/srv/eng/admin.console#/tools/batch)
We could also remove the batch options from the Contribute menu.
Staff I asked around and it's possible to configure the list of fields available for batch processing.
Would it be an option to remove the title field from this list?
FR language support appears to be in. I support the idea of restricting Batch editing to admin users if we have to. But if the multilingual problems do not affect FR/EN, I don't see a reason to turf it. If Ian's solution fixes the title field, all the better.
@josegar74 @ianwallen @CarHenkel
I have made a separated PR https://github.com/geonetwork/core-geonetwork/pull/7235 to give configuration to turn off the batch editing to some certain level of users. The PR is probably not backportable to 3.12, if so, then I will make another version for 3.12.
PR to disable batch editing is now on this PR https://github.com/geonetwork/core-geonetwork/pull/7238
This PR fixed the issue in batch editing. With batch edit the title![image](https://github.com/metadata101/iso19139.ca.HNAP/assets/74916635/52a73c2f-105d-49c1-9c83-f0efc8dba6e8)
the title will totally wiped out
Issue 1: The operation name GN_Replace was missing from the api call Issue 2: There is unwanted line change in the API call value
This is what it looks like in GN3.12 with ISO19139![image](https://github.com/metadata101/iso19139.ca.HNAP/assets/74916635/201a7670-c017-4de3-8ec8-370c435bdb34)
Fixing Code refers to: https://github.com/geonetwork/core-geonetwork/blob/57c116c539be00fdef2d7be61d1f72af4f35b405/schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml#L3398-L3402