generate backlinks from person to project #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "person-backlinks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a 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.
An extra step (using qri record cache) is done to inline the roles in the Project records before they are injected into Person records; this uses a feature proposed in orinoco/query-research-information#6
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).
Whitespace control should be improved (currently produces extraneous new lines and spaces) but overall this should be a decent demonstration of what can be done.
WIP: generate backlinks from person to projectto generate backlinks from person to projectCool. Thanks. Let's try...
Hmm, workflow file is invalid now...
ok, I was too fast. I missed the dependency change. This will stay broken for now.
I am reverting this PR.
FTR: it is missing
I am also reverting this fix I found to be necessary
Please reopen this PR.
I applied the fix suggested above and updated the person-backlinks branch (the PR did not update though). Given the reliance on orinoco/query-research-information#6 (or an alternative suggestion) I don't think it's helpful to re-open this PR right now.