Hi,
I am trying to insert thumbnails along with my metadata. Because of huge quantities of data, I would prefer adding it programmatically, the same way as the metadata. The best way would be during the xml.metadata.insert…
I can obtain the full path to the thumbnails, but I haven’t found any tag in the xml.metadata.insert where to put it.
I have noticed, that the demo metadata have their thumbnails saved in …/WEB-INF/data/data/metadata_data/* .
Since I am using postgres, should I save the thumbnails there (to database), or can I use the data directory?
And how do I link the thumbnails to it’s metadata? I know that using the UUID, but how to tell the name of specific thumbnail file? Is there some default name - I have everywhere (in my “empty” thumbnails) some “start_rgb_s.png”?
I have tried to add one manually (to see where it will be put), but also without any success.
Any help appreciated.
Thanks for your great work!
Jaroslav Urik
On Tue, Sep 22, 2015 at 8:45 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:
Hi,
I am trying to insert thumbnails along with my metadata. Because of huge
quantities of data, I would prefer adding it programmatically, the same way
as the metadata. The best way would be during the xml.metadata.insert..
I can obtain the full path to the thumbnails, but I haven't found any tag
in the xml.metadata.insert where to put it.
I have noticed, that the demo metadata have their thumbnails saved in
../WEB-INF/data/data/metadata_data/* .
Since I am using postgres, should I save the thumbnails there (to
database), or can I use the data directory?
And how do I link the thumbnails to it's metadata? I know that using the
UUID, but how to tell the name of specific thumbnail file? Is there some
default name - I have everywhere (in my "empty" thumbnails) some
"start_rgb_s.png"?
I have tried to add one manually (to see where it will be put), but also
without any success.
Any help appreciated.
Thanks for your great work!
Jaroslav Urik
Hi Jaroslav,
First of all: if you are using GeoNetwork 3 you should use md.insert
instead of xml.metadata.insert, which is deprecated.
But in any case, that's not the service you are looking for. You should
look for relations:
http://geonetwork-opensource.org/manuals/2.10.4/eng/developer/xml_services/metadata_xml_relations.html#manage-relationships-in-the-relations-table
Regards,
María.
Hi again María =),
thanks for quick response.
Well as I understand it, the xml.relation.get should return the link to an thumbnail image, but there is nowhere written, how to insert it into that record - the xml.relation.insert just adds relationship between two records, but can’t bring any additional information to said record, or can it?
I was searching for md.insert, but couldn’t find any documentatin (could you point me to it, if you know where it is please?).
Then I looked for xml.metadata.insert [1], where there is also nothing about any image parameter…
Do you know if the md.insert contain some parameter for thumbnail?
Thank you
Jaroslav
[1] http://geonetwork-opensource.org/manuals/2.10.4/eng/developer/xml_services/metadata_xml_insert_update_delete.html
···
On Tue, Sep 22, 2015 at 8:45 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:
Hi,
I am trying to insert thumbnails along with my metadata. Because of huge quantities of data, I would prefer adding it programmatically, the same way as the metadata. The best way would be during the xml.metadata.insert…
I can obtain the full path to the thumbnails, but I haven’t found any tag in the xml.metadata.insert where to put it.
I have noticed, that the demo metadata have their thumbnails saved in …/WEB-INF/data/data/metadata_data/* .
Since I am using postgres, should I save the thumbnails there (to database), or can I use the data directory?
And how do I link the thumbnails to it’s metadata? I know that using the UUID, but how to tell the name of specific thumbnail file? Is there some default name - I have everywhere (in my “empty” thumbnails) some “start_rgb_s.png”?
I have tried to add one manually (to see where it will be put), but also without any success.
Any help appreciated.
Thanks for your great work!
Jaroslav Urik
Hi Jaroslav,
First of all: if you are using GeoNetwork 3 you should use md.insert instead of xml.metadata.insert, which is deprecated.
But in any case, that’s not the service you are looking for. You should look for relations:
http://geonetwork-opensource.org/manuals/2.10.4/eng/developer/xml_services/metadata_xml_relations.html#manage-relationships-in-the-relations-table
Regards,
María.