Add the publication facts behind each OpenAlex ID (register#50)
Source:R/utils_preprocess_register.R
add_openalex_work_fields.RdPart of the same enrichment: an OpenAlex ID is a pointer, and the record it points at is the only place that says which publication a checked work appeared in and when. Both are needed to describe the work as linked data - the register's own `Venue` column names the venue that commissioned the check, which is a different fact and, for a conference running over several years, a different publication.
Usage
add_openalex_work_fields(
register_table,
paper_references = NULL,
reference_others = NULL,
cert_ids = NULL
)Arguments
- register_table
The register table, with an `OpenAlex` column
- paper_references
Optional character vector, same length and order as `register_table`'s rows, of each work's `paper.reference` URL from its `codecheck.yml`. Used to reject a record that describes another work (see [openalex_record_is_work()]) and as the fallback for the date (see below); pass NULL/omit to skip both (e.g. for a per-certificate re-render with a one-row table).
- reference_others
Optional list, same length and order as `register_table`'s rows, of each work's `paper.reference-other` URLs (see [get_reference_other()]). With it and `cert_ids`, every DOI the work's OpenAlex record lists that neither reference names is reported as a possible `reference-other` entry, see [suggest_reference_other()].
- cert_ids
Optional character vector of the certificate identifiers, same length and order as `register_table`'s rows