Jump to content

Template:Select publications for author

From HopperWiki

This template displays a "Select publications from this author" section for an author: a plain bulleted list of every paper the HopperWiki citation pipeline has confirmed them as an author of. If no author is provided it defaults to the current page title, making it work automatically on author pages.

Basic usage

On an author page where the page title matches the author name:

{{Select publications for author}}

On any other page, supply the author explicitly:

{{Select publications for author|author=Jack Johnson}}

Parameters

Parameter Default Notes
author Current page title The author name to match. Must match a Person page's Full_name exactly.

Where the data comes from

Each list item is resolved from the same Zotero-backed citation library Template:R draws from -- Selected_publications stores only bare ref_ids, and this template's underlying module looks up each one's display text at render time, the same lookup [citation "ref_id" not found] itself uses internally. Which ref_ids belong to which author comes from a confirmed row in reference/person_rosetta_stone.csv, a human-reviewed mapping from a stakeholder's wiki page to the name variants that refer to them in Zotero (built by scripts/05c_person_rosetta_stone.R, resolved to ref_ids by scripts/11b_stakeholder_publications.R), and pushed to this page's underlying Person data record as the Selected_publications field.

This is deliberately a plain bulleted list, not inline footnotes -- [citation "ref_id" not found]/== References ==

(Cite's ref/references pairing) is for citing sources within prose, and always renders multiple citations glued together with no separator ([1][2][3]), which reads fine for "this sentence cites three sources" but not for "here is this person's list of publications".

An author with no confirmed publications yet still shows the section heading, with "No publications found in the database at this time." in place of the list -- same shape as Template:Resources for author's own empty state -- until at least one of their papers is confirmed in the Rosetta Stone.

For developers

Calls Module:Select publications for author, which queries the Person Cargo table's Selected_publications field directly (not via Module:Cargo_query, since list items here need to be resolved to citation text, not displayed as raw Cargo values) and, for each ref_id, calls Module:Citation's resolve_citation() (exposed there as p.resolve_citation for exactly this reuse) to get its rendered text. Since only ref_ids are stored, changing what's displayed per publication later -- title only, a different subset of fields -- is a change to this module alone; it doesn't require re-running any R pipeline script or touching the Cargo schema, though showing individual fields (rather than one fully-rendered citation string) would first need the citation pipeline to expose those fields separately, which it doesn't yet.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.