IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
878 stars 490 forks source link

Allow Harvesting to use arbitrary sets #10937

Open scolapasta opened 3 days ago

scolapasta commented 3 days ago

Currently the UI only alllows for sets that the server returns, This ticket is to verify and/add that you can definie an arbitrary set via the API (and eventually the UI, but that might wait for the SPA to support harvesting, unless it's quick in the current UI) to support sets defined for DataCite OAI.

scolapasta commented 3 days ago

So checking the API, we can add / edit a haresting client and should be able to set any set. We'll need to test it, once we have #10936 working to make sure.

Once thing I'm not sure if is how large these set names will be, right now the set field is set to: harvestingset | character varying(255)

So if it needs to be longer, the one thing we can (proactively) consider is to change this to be type text.

scolapasta commented 3 days ago

Here is the guides link to the API: https://guides.dataverse.org/en/latest/api/native-api.html#create-a-harvesting-client

landreev commented 3 days ago

I think we should just remove the length restriction on the set field proactively. Since the whole point here is that DataCite's implementation accepts "sets" that are in fact arbitrary search queries - so it's reasonable to expect that there will be a use case for a very long one; like a very long list of specific DOIs, for example.