generate backlinks from person to project #9

Merged
mih merged 3 commits from person-backlinks into main 2026-03-10 07:11:38 +00:00

3 commits

Author SHA1 Message Date
7d22d75159 Display person's roles in their project
This does a two-step process for processing metadata: first, all
projects are fetched, roles are inlined, and projects are
cached. Then, when processing Person records, projects are injected
from cache (with roles already inlined -- this is a workaround for
inline not supporting inlined objects). This relies on
orinoco/query-research-information#6

With the role labels / names available, these can be accessed in the
person page template.
2026-03-06 20:46:11 +01:00
ab1cee5ea3 Make projects in Person page actually link to projects 2026-03-06 12:06:29 +01:00
a392dd2472 WIP: generate backlinks from person to project
This is an (incomplete) demonstration on how links from Person to
Project(s) can be generated from the metadata, at the Jinja templating
level, before we get to any Hugo machinery.

This is done by "injecting" relevant Project records into the Person
records using the QRI tooling, then looping over projects and
filtering their associations with Jinja's selectattr to get the
Person's roles.

Having access to all the metadata (or the Association class
specifically) allows us to show detailed information, such as roles or
start / end times of an association (also allowing are several
associations with the same project).

What's mostly missing is: adding links (should be easy), getting role
names (requires recursive inlining or some other clever trick) and
whitespace control.
2026-03-05 18:45:07 +01:00