[GeoNetwork-devel] REST API for uploading thumbnail, and automated thumbnail extraction from metadata

Hi,

I have 2 questions about how GeoNetwork handles thumbnail images.

1. Is there a direct REST API for uploading a thumbnail image for a metadata record? I don't see it in the XML Services documentation.

2. Will GeoNetwork extract the thumbnail image if it's embedded in the metadata, e.g., in ArcGIS's '/Esri/Binary/Thumbnail/Data' metadata?

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems and Services
Stanford University

Hi Darren,

2013/6/29 Darren Hardy <drh@anonymised.com>:

Hi,

I have 2 questions about how GeoNetwork handles thumbnail images.

1. Is there a direct REST API for uploading a thumbnail image for a metadata record? I don't see it in the XML Services documentation.

Not really. Thumbnail upload needs to be done while editing the record
so you can follow which services are called when doing that from the
UI.
Another option is to run a process (eg.
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/process/thumbnail-add.xsl)
which could be used to update one metadata record and add a thumbnail
by URL (but it will not upload the thumbnail).
At some point we should probably improve the thumbnail and file upload
to not be so tightly linked to the editing session I think.

2. Will GeoNetwork extract the thumbnail image if it's embedded in the metadata, e.g., in ArcGIS's '/Esri/Binary/Thumbnail/Data' metadata?

Not AFAIK.

Cheers.

Francois

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems and Services
Stanford University

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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

Ok, thanks. I have the thumbnail that I can extract, I'm just missing an automated API for uploading it.

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems & Services
Stanford University Libraries

On Jul 3, 2013, at 3:50 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Darren,

2013/6/29 Darren Hardy <drh@anonymised.com>:

Hi,

I have 2 questions about how GeoNetwork handles thumbnail images.

1. Is there a direct REST API for uploading a thumbnail image for a metadata record? I don't see it in the XML Services documentation.

Not really. Thumbnail upload needs to be done while editing the record
so you can follow which services are called when doing that from the
UI.
Another option is to run a process (eg.
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/process/thumbnail-add.xsl)
which could be used to update one metadata record and add a thumbnail
by URL (but it will not upload the thumbnail).
At some point we should probably improve the thumbnail and file upload
to not be so tightly linked to the editing session I think.

2. Will GeoNetwork extract the thumbnail image if it's embedded in the metadata, e.g., in ArcGIS's '/Esri/Binary/Thumbnail/Data' metadata?

Not AFAIK.

Cheers.

Francois

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems and Services
Stanford University

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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 Darren,
Depending on how much you have to process you can consider packaging the metadata, thumbnails, privilege settings, data and some more options (optionally!) in a MEF package. That is a zip file with a predefined structure. See the manual for details, and the software can instantly import and export data in that format. So using an example you can easily create your own packages. GeoNetwork can do single or batch imports of mef packages.
Cheers,
Jeroen

On 3 jul. 2013, at 20:57, Darren Hardy <drh@anonymised.com> wrote:

Ok, thanks. I have the thumbnail that I can extract, I'm just missing an automated API for uploading it.

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems & Services
Stanford University Libraries

On Jul 3, 2013, at 3:50 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Darren,

2013/6/29 Darren Hardy <drh@anonymised.com>:

Hi,

I have 2 questions about how GeoNetwork handles thumbnail images.

1. Is there a direct REST API for uploading a thumbnail image for a metadata record? I don't see it in the XML Services documentation.

Not really. Thumbnail upload needs to be done while editing the record
so you can follow which services are called when doing that from the
UI.
Another option is to run a process (eg.
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/process/thumbnail-add.xsl)
which could be used to update one metadata record and add a thumbnail
by URL (but it will not upload the thumbnail).
At some point we should probably improve the thumbnail and file upload
to not be so tightly linked to the editing session I think.

2. Will GeoNetwork extract the thumbnail image if it's embedded in the metadata, e.g., in ArcGIS's '/Esri/Binary/Thumbnail/Data' metadata?

Not AFAIK.

Cheers.

Francois

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems and Services
Stanford University

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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

I use the MEF export but I haven't tried the MEF import. I'll give that a shot.

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems & Services
Stanford University Libraries

On Jul 3, 2013, at 11:42 PM, Jeroen Ticheler <jeroen.ticheler@anonymised.com> wrote:

Hi Darren,
Depending on how much you have to process you can consider packaging the metadata, thumbnails, privilege settings, data and some more options (optionally!) in a MEF package. That is a zip file with a predefined structure. See the manual for details, and the software can instantly import and export data in that format. So using an example you can easily create your own packages. GeoNetwork can do single or batch imports of mef packages.
Cheers,
Jeroen

On 3 jul. 2013, at 20:57, Darren Hardy <drh@anonymised.com> wrote:

Ok, thanks. I have the thumbnail that I can extract, I'm just missing an automated API for uploading it.

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems & Services
Stanford University Libraries

On Jul 3, 2013, at 3:50 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Darren,

2013/6/29 Darren Hardy <drh@anonymised.com>:

Hi,

I have 2 questions about how GeoNetwork handles thumbnail images.

1. Is there a direct REST API for uploading a thumbnail image for a metadata record? I don't see it in the XML Services documentation.

Not really. Thumbnail upload needs to be done while editing the record
so you can follow which services are called when doing that from the
UI.
Another option is to run a process (eg.
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/process/thumbnail-add.xsl)
which could be used to update one metadata record and add a thumbnail
by URL (but it will not upload the thumbnail).
At some point we should probably improve the thumbnail and file upload
to not be so tightly linked to the editing session I think.

2. Will GeoNetwork extract the thumbnail image if it's embedded in the metadata, e.g., in ArcGIS's '/Esri/Binary/Thumbnail/Data' metadata?

Not AFAIK.

Cheers.

Francois

Thanks,
-Darren

--
Darren Hardy
drh@anonymised.com
GIS Software Engineer
Digital Library Systems and Services
Stanford University

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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