[GeoNetwork-devel] setting privileges for CSW pushed in metadata files

We (NIWA systems development team) are building an import tool for one of our key databases (FBIS). This allows users with spreadsheet data to import it into the database with validation. As part of the processing we collect the necessary metadata records to update our Geonetwork node ( now BlueNetMEST).

The new xml record is pushed into the GN system using CSW. This works ok but does not set the Group, Category and access control privileges for the record. As a result no one can see the record in GN.

Any suggestions?

Thanks Andrew

Andrew Watkins
Systems Development Team Manager
National Institute Water & Atmospheric Research (NIWA).

NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.

Hello Andrew,

2010/5/11 Andrew Watkins <a.watkins@anonymised.com>:

We (NIWA systems development team) are building an import tool for one of
our key databases (FBIS). This allows users with spreadsheet data to import
it into the database with validation. As part of the processing we collect
the necessary metadata records to update our Geonetwork node ( now
BlueNetMEST).

The new xml record is pushed into the GN system using CSW. This works ok
but does not set the Group, Category and access control privileges for the
record. As a result no one can see the record in GN.

Any suggestions?

You could use metadata.admin service :
http://localhost:8080/geonetwork/srv/en/metadata.admin?&id=9&_1_0=on&_1_1=on&_1_5=on&_1_6=on

Parameters are :
* id or uuid could be use.
* _"GROUP_ID"_"OPERATION_ID" = on / off
* Group 1 = internet
* Operation 0 = view, 1 = download, 2 = editing, 5 = dynamic, 6 = feature

You need to login first.

There's an how-to run CSW transactions from JS, Python and PHP, feel
free to improve it.

HTH.
Francois

[1] http://trac.osgeo.org/geonetwork/wiki/HowToDoCSWTransactionOperations

Thanks Andrew

Andrew Watkins
Systems Development Team Manager
National Institute Water & Atmospheric Research (NIWA).

NIWA is the trading name of the National Institute of Water & Atmospheric
Research Ltd.
------------------------------------------------------------------------------

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Hi

Also for 2.4.3 was introduced a system setting to specify if CSW inserted metadata should be public. Doesn’t resolve all cases about permissions, but can help if you only need to set the metadata as public.

This setting should be added also to 2.5.0.

Regards,
Jose Garcia

On Wed, May 12, 2010 at 10:19 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hello Andrew,

2010/5/11 Andrew Watkins <a.watkins@anonymised.com>:

We (NIWA systems development team) are building an import tool for one of
our key databases (FBIS). This allows users with spreadsheet data to import
it into the database with validation. As part of the processing we collect
the necessary metadata records to update our Geonetwork node ( now
BlueNetMEST).

The new xml record is pushed into the GN system using CSW. This works ok
but does not set the Group, Category and access control privileges for the
record. As a result no one can see the record in GN.

Any suggestions?

You could use metadata.admin service :
http://localhost:8080/geonetwork/srv/en/metadata.admin?&id=9&_1_0=on&_1_1=on&_1_5=on&_1_6=on

Parameters are :

  • id or uuid could be use.
  • “GROUP_ID”“OPERATION_ID” = on / off
  • Group 1 = internet
  • Operation 0 = view, 1 = download, 2 = editing, 5 = dynamic, 6 = feature

You need to login first.

There’s an how-to run CSW transactions from JS, Python and PHP, feel
free to improve it.

HTH.
Francois

[1] http://trac.osgeo.org/geonetwork/wiki/HowToDoCSWTransactionOperations

Thanks Andrew

Andrew Watkins
Systems Development Team Manager
National Institute Water & Atmospheric Research (NIWA).

NIWA is the trading name of the National Institute of Water & Atmospheric
Research Ltd.


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Thanks we’ll give that a try.

Andrew

Andrew Watkins
Systems Development Team Manager
National Institute Water & Atmospheric Research (NIWA).

On 12 May 10 at 08:19 PM, in message AANLkTinuMQvp0XvN6p1uEh6dmur86CtSzb4pmscFA4G6@anonymised.com, Francois Prunayre <fx.prunayre@anonymised.com…> wrote:




Hello Andrew,

2010/5/11 Andrew Watkins a.watkins@anonymised.com:
> We (NIWA systems development team) are building an import tool for one of
> our key databases (FBIS). This allows users with spreadsheet data to import
> it into the database with validation. As part of the processing we collect
> the necessary metadata records to update our Geonetwork node ( now
> BlueNetMEST).
>
> The new xml record is pushed into the GN system using CSW. This works ok
> but does not set the Group, Category and access control privileges for the
> record. As a result no one can see the record in GN.
>
> Any suggestions?

You could use metadata.admin service :
http://localhost:8080/geonetwork/srv/en/metadata.admin?&id=9&_1_0=on&_1_1=on&_1_5=on&_1_6=on

Parameters are :
* id or uuid could be use.
* “GROUP_ID”“OPERATION_ID” = on / off
* Group 1 = internet
* Operation 0 = view, 1 = download, 2 = editing, 5 = dynamic, 6 = feature

You need to login first.

There’s an how-to run CSW transactions from JS, Python and PHP, feel
free to improve it.

HTH.
Francois

[1] http://trac.osgeo.org/geonetwork/wiki/HowToDoCSWTransactionOperations


> Thanks Andrew
>
> Andrew Watkins
> Systems Development Team Manager
> National Institute Water & Atmospheric Research (NIWA).
>
>
>
> NIWA is the trading name of the National Institute of Water & Atmospheric
> Research Ltd.
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> GeoNetwork-devel mailing list
> GeoNetwork-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>



NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.