inveniosoftware / invenio-swh

Support for onward deposit of software artifacts to Software Heritage.
https://invenio-swh.readthedocs.io
MIT License
0 stars 2 forks source link

Deposit form upload SWH ID #17

Open lnielsen opened 1 year ago

lnielsen commented 1 year ago

The "Files"-section of the deposit form will add support for uploading/regsitering files from multiple sources include "from Software Heritage".

Choosing "from Software Heritage", will enable users to provide a SWH ID of software source code already registered in SWH. Also, this feature can detect if a SWH is already deposited in the repository.

ae987491-c321-42dc-94ce-b6b122b42d61

https://wiki.eduuni.fi/display/cscRDIcollaboration/InvenioRDM+-+SWH+SPECS

moranegg commented 2 months ago

In terms of UI, this is a complicated case. The suggested above might be hard to understand for users who are not depositing software (which are the majority of users).

HAL chose to do this in the Identifiers section using the type SWHID.

Old HAL version is displayed here: https://youtu.be/j9eMCkJOSxs?si=diyoQdIyfCS-mtCk&t=60

moranegg commented 1 month ago

Use case: registering already archived software in a Scholarly repository

A researcher may need to register an artifact already archived in Software Heritage. To avoid duplication, the research will use a SWHID (of a directory with context) and insert it in the InvenioRDM interface.

UI / UX discussion

The interface should not mix between the upload files button and this ues case (which exists for other types of identifiers..)

One option would be to separate with a new button, placed on the right of the existing upload button. New button name proposal: from external source where it opens the menu shown above with Software Heritage / SWHID . clicking on the option would open a SWH modal. For other use cases: this can be customizable with different modals.

automated version

If identifier detection, we can open the modal on click on from external source and into the value we copy the SWHID.

Educating the user

OR2024