geonetwork-delwp / metashare

jibx java tool for converting metashare database to 19115-3
0 stars 0 forks source link

Records with a custodian need to belong to a GeoNetwork group named after the custodian's business unit #12

Open sppigot opened 5 years ago

sppigot commented 5 years ago

Turns out that 139 records in the dump have custodians. Of those, the unique business unit names are:

Biodiversity Policy and Programs Community and Services Coordinated Imagery Program Environment Programs Future Farming Systems Research Land Management Policy Rural Water Programs Spatial Vision Strategy Urban Development Program VicForests - Operations Water Resources

Probably best to create GeoNetwork groups for each of these business units (no spaces allowed in group name as it is an identifier) and add them with their group id set to the business unit id (to make things easier for the transferownership script). I'll do this by adding them to the script that builds the geonetwork database. The metashare mapping tool produces a text file with:

uuid,business_unit_id,business_unit_name

This file can be used after the load to transfer ownership of the metadata records to the groups created from the business unit names via a script that calls the GeoNetwork api. Users in those business units will then have control over what happens to these records as they will be assigned to the appropriate group in GeoNetwork. By default all records can be loaded into a DELWP group so only these records will be moved into a different group after the load.

Happy to modify if someone can think of a better way to do it! 😊

sppigot commented 5 years ago

@emilskender and @spatialgeorge - can you give this a sanity check please?

sppigot commented 5 years ago

See 4af255ed4268889ef7961777c016b07d1842b8ac

sppigot commented 5 years ago

Ok, now using mandatory custodian_id to extract uuids,organisation id and organisation names for GeoNetwork permissions. The unique list is: AGL Hydro Australian Bureau of Statistics Bureau of Meterology Commonwealth Scientific and Industrial Research Organisation Country Fire Authority Department of Economic Development Department of Environment Department of Justice Department of Planning and Community Development Department of Premier and Cabinet Department of Primary Industries Department of the Environment Department of Transport Emergency Services Telecommunications Authority Environment Protection Authority Victoria Geoscience Australia Melbourne Metro Rail Authority Melbourne Water Corporation Melway Publishing Pty Ltd Metropolitan Fire & Emergency Services Board National Native Title Tribunal Parks Victoria Public Transport Victoria Spatial Vision Pty Ltd SPAusnet TO BE PROVIDED Transport Safety Victoria VicForests VicRoads Victoria Police Victoria State Emergency Service Wannon Water

'TO BE PROVIDED' will be filtered out and remain with the default group....

sppigot commented 5 years ago

The problem with the above is that we need to identify which organisations have active custodians on the DELWP GeoNetwork - only those orgs will need to be created as groups and have record ownership transferred?

sppigot commented 5 years ago

What is the difference between an owner and a custodian? (Just curious)

spatialgeorge commented 5 years ago

To answer the last question, Owner may be an external organisation i.e. CFA custodian may be DELWP as the authority to store, manage and distribute the data.

Emil and I will check the orgs listed

sppigot commented 5 years ago

See 16a4ef15417f7cec8ac19f7ce2c91a405f16badc