knowledgepixels / nanodash

A web client to browse and publish nanopublications.
GNU Affero General Public License v3.0
26 stars 2 forks source link

Partially pre-fill submission form? #104

Open cmeesters opened 5 months ago

cmeesters commented 5 months ago

Hi,

When editing a nanopub for submission, the primary DOI is given. For papers with lots of references, manually adding all those of interest is cumbersome. Wouldn't it be a better way to pre-fill the form with every citation (DOI and a few words of the cited paper's title), such that adding the meta-information is straightforward?

Cheers Christian Meesters

tkuhn commented 5 months ago

Hi Christian,

Thank you for your input.

Can you give a link to the precise template that you are refering to?

In general, having forms prefilled based on external APIs would be a very helpful feature indeed. So far, external APIs can only be used for autocomplete in dropdowns. Filling in larger parts of a form is more powerful but also more complex, so such a feature would not be trivial. But worth looking into for sure.

Regards, Tobias

cmeesters commented 5 months ago

Hi,

Hm, I was introduced to nanopubs a few days ago during a retreat and think(!) it was this one: https://nanodash.petapico.org/publish?8&template=https://w3id.org/np/RAX_4tWTyjFpO6nz63s14ucuejd64t2mK3IBlkwZ7jjLo

I hope this helps.

so such a feature would not be trivial.

Although I am not familiar with the source code (and I do not have the time for another project) - I sympathise with it.

Cheers Christian

tkuhn commented 5 months ago

OK, thanks. I think that's a very good feature request. This could be useful for a bunch of other situations. The tricky part is how to find a general solution that works for a large range of them and is configurable in the template.