Hi,
It's very find to explain how to change the value (thank's Jose) but I think it's not supportable to have to compile code source just for changing a parameter. For five years ago i wait for a parameter in database or in a file i can edit to change the default privilege (or just choose a metadata an extract the privilege as default). I think it's not the problem of developper to force the default privilege. I think it's not fine to connecte as admin just for defined 'all users' access to a metadata. I hope Jose can take this demand.
Thanks and have a nice day.
Sujet:
Re: [GeoNetwork-users] Changing configuration of default privileges set at record creation - GN v2.10.2
De :
shireeb <s.brockie@anonymised.com>
Date :
03/02/2014 19:46
Pour :
geonetwork-users@lists.sourceforge.net
Success. Thanks to Jose. For html5ui instructions please refer below.
/Hi
Using the HTML5UI indeed makes a difference, as not using the previous xslt
(thats for the classic UI), the HTML5UI is build in javascript using ExtJs.
For this change I'm afraid you need to download the sourcecode to rebuild at
least the UI module (as javascript code is minified).
The HTML5UI is in the web-client module and the code to change should be
this:
Change:
editorPanel.init(metadataId, create, group, child);
To:
editorPanel.init(metadataId, create, group, child, false, true);
The last parameter is the fullPrivileges (See method API in
https://github.com/geonetwork/core-geonetwork/blob/2.10.x/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/editor/EditorPanel.js#L819)
Once you change the code, execute mvn clean install in web-client module.
When finishes the build in html5ui folder
web-client/src/main/resources/apps/html5ui/js you should have App-mini.js,
that should contain the change and should replace in your installation.
Regards,
Jose GarcĂa/