WIP: Auto-generate contributor pages from the Pool #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "msz/www.trr379.de:person-pool-preview"
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?
Given that the TRR379 maintains a metadata collection in the TRR379 Knowledge Pooling Tool, and the collection includes Person records, it feels appropriate to use the public collection as a source for generating contributor pages (similar to what's now done for publications, see #13) -- the Pool records contain information very similar to what has been entered in the YAML header of the markdown documents. This approach should reduce duplication of data entry, by centralizing editing of profile information on the Pool.
This pull request applies the information extracted from the Pool using code in q02/pool-publication-page#2 (currently 165 LOC). The goal is to assess the degree of (in)compatibility of both systems (pool and website) and to decide what improvements should be needed.
In addressing the divergence of information, we need to ask ourselves whether the information not available could be simply added to the pool, or whether there are bigger structural challenges.
A few things which caught my attention:
1: sites may be incomplete
part_ofproperty.2. site to person link
In the Hugo website, taxonomies are set up so that person and site are bidirectional (site page lists persons, person page lists sites). So far we only create / change person sites.
3. name formatting
params.name-title(used for prefixes like Prof.) andtitle(used for name without prefixes). It makes sense to keep the title to just name (the title is used e.g. in the Contributors listing). However, this currently does not allow to display honorific suffixes (allowed in the pool).4. titles not available
Related to 3, very few records in the Pool, if any, use
honorific_name_prefix. For these reasons, most generated pages "lose" the Prof. Dr. prefix in the title. This needs to be handled tactfully.This can be addressed by editing Pool records.
5. affiliations: level of detail
part_ofvalues are TRR sites (as discussed above), they are likely affiliations. However, the affiliations generated from the Pool are less detailed than the ones which were present in existing pages (e.g. neither ror.org nor the Pool has INM-7, so INM-7 affiliation became an FZJ affiliation).6. unlinked contributors
This PR changed 37 existing pages and added 41 new. However, not all people appear in the contributors page -- likely because they are not listed as contributors in other pages (see 2) -- although their pages exist and are linkable.
This is likely related to the Hugo setup, but may require including more pages in the generation procedure.
@ -1,20 +1,21 @@---title: Andreas G Chiocchettititle: Andreas ChiocchettiAsking for middle initial feature
The feature is already present - names will use either
formatted_nameproperty or combine given, additional, family. The particular pool record does not contain any additional names.Should be addressed by updating metadata records.
@ -0,0 +1,13 @@---This file exists under a different name -- needs investigation.
The same for
contributors/oliver-tuescher-- the generated pages use the last components from the Pool PID (https://trr379.de/contributors/...) as the folder name. I'm surprised it only differed from the existing folder names in 2 cases.In this PR I did not remove the old files (there are extra files like portraits), I just placed generated files onto existing ones.
Manual clean-up will be necessary.
@ -17,4 +16,1 @@orcid: 0000-0002-0992-634Xname-title: Prof. Dr. med.affiliation: Department of Psychiatry, Psychososmatics and Psychotherapy, Goethe University Frankfurtportrait: portrait.jpgWe currently lose all "portrait" params - from the Pool we have no way of knowing whether the person has a dedicated portrait, or whether the portrait is webp or json.
Seeing the current usage, most folders have both
portrait.[jpg|webp]and (smaller / more tightly cropped)thumbnail.[jpg|webp]. The custom Hugo template has this:It would probably be OK to restrict the freedom in choosing the names a little bit, remove the portrait parameter, and do something like (untested, proposed blindly):
Can be addressed by changing Hugo template?
I agree
Template change proposed in #16/files
645cf09849to6a096d441aReplaced by #17 after we updated the pool and the generation pipeline.
Pull request closed