episciences icon indicating copy to clipboard operation
episciences copied to clipboard

[Bug Report] [JTCAM] Preview to SoftwareHeritage page

Open mlegr opened this issue 2 years ago • 4 comments

The new Softwares tab (by the way Software is singular in English and a better term would be Software solutions) is great! However, if we take the example of paper JTCAM11408, the provided SWHID is https://archive.softwareheritage.org/swh:1:dir:97292192b4790c2af01e25f4694d024561c5638c;origin=https://github.com/MORFEproject/MORFEInvariantManifold.jl;visit=swh:1:snp:cbd3f3eaf0dc99efb1d6bed706c3b4c3b67a1077;anchor=swh:1:rev:f56492ccd78890ee2b82970ae8941d6e39c0c147 while the SWH preview on the JTCAM webpage seems to be pointing to https://archive.softwareheritage.org/browse/directory/97292192b4790c2af01e25f4694d024561c5638c/ only. It would be better to point to the first link above in the preview.

mlegr avatar Dec 10 '23 16:12 mlegr

There is no iframe for revisions, only for context dir. Currently we can't provide a preview with the revision

rtournoy avatar Feb 28 '24 09:02 rtournoy

But it seems we can have a badge with a display for a rev. Currently the badge display id for the dir but the link is for the rev

rtournoy avatar Feb 28 '24 10:02 rtournoy

@mlegr : See example here https://www.softwareheritage.org/2020/01/13/the-swh-badges-are-here/ if we are provided a rev I propose we create a badge for the rev but keep the preview on the dir. If the preview on a rev becomes available we will then update all the previews

rtournoy avatar Feb 28 '24 10:02 rtournoy

@rtournoy yes, your solution seems very well thought. Thank you!

mlegr avatar Mar 03 '24 18:03 mlegr