Skip to content

[BibTeX] Generate incomplete citation which includes SWHID when metadata is unavailable

This issue is open to continue the discussion started by Simon TOURNIER via inria.fr Oct 6, 2025, 8:58 PM to swh-devel@inria.fr

Hi,

I just discovered the nice Citation button. However, it's not available with all the archived content. For example, missing from the well-known Apollo source code. :-)

https://archive.softwareheritage.org/swh:1:cnt:1d7821f14a992756acdbf649eb9a0b950bc8f83e;origin=https://github.com/virtualagc/virtualagc;visit=swh:1:snp:b30153bd60d8c29a84e98a01d116f93715d79caa;anchor=swh:1:rev:e1a8d75c5cec5ea6ee27ea8986a7f2576f9f5bed;path=/Comanche072/AUTOMATIC_MANEUVERS.agc;lines=1-41

I guess that's because some metadata are missing inside the repository. :-)

However, it could be still nice to be able to format the Permanent link as a BibTeX entry. For example with these fields:

    license
    date
    file
    repository
    version
    swhid

More or less, because they might not all be always available.

Or having a Citation button with an incomplete BibTeX reference ready-to-paste for the cases where the metadata is missing.

Bah a random idea when using these buttons. :-)

Cheers, simon

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information