Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploading thumbnail ? #211

Closed
juliepierson opened this issue Sep 9, 2021 · 7 comments
Closed

uploading thumbnail ? #211

juliepierson opened this issue Sep 9, 2021 · 7 comments

Comments

@juliepierson
Copy link

Hi,
While creating a metadata, is it possible to upload a thumbnail from a local file, or the thumbnail must be already online ? Sorry if I missed it in the documentation, thanks !

@eblondel
Copy link
Collaborator

eblondel commented Sep 9, 2021

Hi @juliepierson No, not (yet) possible. It should an already online thumbnail, for the time being...
Uploading a thumbnail is something on the wishlist still. This should be supported through the Geonetwork API (not sure yet if we can do it, we have to check), and next, if supported in the Geonetwork API, this should be added to geonapi to be configured as feature in the Geonetwork geoflow action.

@juliepierson
Copy link
Author

Thanks for your quick answer @eblondel . Yes, it is possible with the geonetwork API, thatt's how I'm doing it now :) (https://gitlab.in2p3.fr/letg/metadator/-/blob/master/src/uploadThumbnails.R)
I just wanted to know if I could do it with geoflow and simplify my code. Thanks, I'll get rid of my function for publishing the thumbnails once uploaded for now, and I'll wait for the update in geonapi ;)

@eblondel
Copy link
Collaborator

eblondel commented Sep 9, 2021

Good news! In geonapi there is still lot to do, because it is for the timebeing limited to the old legacy API. The latter was definitely removed in GN 4, so geonapi needs to be aligned with the open API that includes the method for thumbnails. Since the community tends to upgrade quickly to GN 4, I will have a look if I can upgrade geonapi to manage the new API; afterwhat we could try it through geoflow.

@juliepierson
Copy link
Author

Ok, I understand. Thanks for all your work !

@eblondel
Copy link
Collaborator

I've started working on the geonapi refactoring to support also the new Open API, I'm currently focusing on supporting the main CRUD methods, afterwhat we can other methods such as thumbnail upload, so it should come quite soon i'd say.

@juliepierson
Copy link
Author

Great, thanks !

@eblondel
Copy link
Collaborator

eblondel/geonapi#15

@eblondel eblondel added this to the 1.0.0 milestone Dec 7, 2021
@eblondel eblondel removed this from the 1.0.0 milestone Feb 8, 2022
@eblondel eblondel added this to the 1.0.0 milestone Jun 27, 2022
eblondel added a commit that referenced this issue Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants