Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

Dedicated editor > database > XML files? #226

Closed MapZombie closed 8 years ago

MapZombie commented 8 years ago

Hello, Where does metadata dedicated editor created metadata get stored? We would like to have a copy of the XML file that geoportal produces when using the GXE and save it with the actual file (PDF, MXD etc).

I believe the GXE saves the metadata in a database right now, is there a way to save a copy of the created XML to the source folder?

Thanks!

mhogeweg commented 8 years ago

Once published to Geoportal Server you can download the metadata individually from the administration page. You can also access the XML directly for a known document using this REST endpoint:

http://gptogc.esri.com/geoportal/rest/document?id=%7BEAE3529B-6904-40EF-8EE6-3FEB5AEA1750%7D

or

http://gptogc.esri.com/geoportal/rest/document/%7BEAE3529B-6904-40EF-8EE6-3FEB5AEA1750%7D

where the id is the identifier of the document as assigned by Geoportal Server.

In Geoportal Server Harvester 2.0 we have an ability to harvest an entire Geoportal instance into files on disk. please see the harvester 2.0 repository for more information on that.

MapZombie commented 8 years ago

Thanks @mhogeweg . What we are looking for is a copy of the XML to be saved alongside the actual file it is referencing. I will look into a script to see if this is possible. Did you have any other suggestions on achieving this?

MapZombie commented 8 years ago

For example when using the dedicated metadata editor we wrote code that would create an additional SAVE XML button that allowed the user to save the file as XML anywhere on their PC.

Is this possible?

MapZombie commented 8 years ago

Going through the new features of version 1.2.7 it can:

Ability to harvest metadata to a local folder in addition to geoportal repository

Could the team elaborate on how to go about doing this? Thanks

MapZombie commented 8 years ago

I have added the following to gpt.xml in version 1.2.7 `

`

Yet it hasn't yielded any XML files inside my local folder...