RIS#
What this package makes of a .ris file: which reference type becomes which CSL item
type, and which tag becomes which CSL variable, contributor role, date or identifier. One
format reads EndNote, Web of Science and Scopus alike — there is no producer detection, so
every row below is resolved from the tag itself, never from which tool wrote the file.
This page is generated from the mapping tables themselves, so it cannot describe something
the importer does not do. A tag with no row here is not discarded: it is kept with the
record under custom["ris"], where it can be read back afterwards.
Reference types#
RIS |
CSL item type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A reference type with no row above becomes document rather than failing the entry.
Contributors#
Contributor role is resolved from the tag and the entry’s reference type together, since no RIS specification fixes one tag to one role across every kind of entry:
RIS tag |
CSL role |
Reference types |
|---|---|---|
|
|
|
|
|
everywhere else |
|
|
all — Web of Science’s own editor tag, used in place of |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A tag with no row for a given reference type is left unmapped there rather than guessed
at, and its value is kept under custom.ris like any other unmapped tag rather than
dropped — an A2 on a thesis names somebody, whatever CSL has no role for.
Dates#
RIS tag |
CSL variable |
|---|---|
|
|
|
refines |
|
|
|
|
PY anchors the year; where DA also parses and agrees with it, DA’s extra precision
(month, or month and day) is kept. A DA whose year disagrees is left alone, and a DA
stating no year at all — Web of Science’s own shape, SEP 22 or DEC — is spliced onto
PY’s year instead, unless it is a month range, which is discarded rather than guessed at.
Without PY, Y1 supplies the issued date at whatever precision it states. Where neither
resolves to a structured date but one carries text, that text is kept as a literal fallback
rather than discarded, PY’s own text taking precedence over Y1’s.
Every date tag is read year first, YYYY/MM/DD, as the format specifies. A value whose
last number has four digits and whose first has one or two, such as 1/26/2023, is read
as month/day/year, the form several exports write. A zero month or day counts as unstated.
Numbers that make no calendar date in the form they are read in, such as 26/1/2023 or
2023/13/01, are not a structured date: a DA is ignored, and any other tag’s text is kept
as the literal fallback.
Identifiers#
RIS tag |
CSL key |
|---|---|
|
|
|
|
|
|
SN is not disambiguated by the format itself. Its value is checked against the ISSN and
then the ISBN shape and stored under whichever matches, except on PAT, RPRT, where it is a report or patent number and not an identifier at all. SN’s three
producer encodings — Web of Science repeating the tag, Scopus annotating a value inline
and packing several behind ; , EndNote continuing on an untagged line — are flattened
into one ordered list of individual values before this resolution runs. DO and UR take
the first value the entry carries, by source position; every other value of any of the
three tags is preserved on the item rather than discarded.
Citation keys#
RIS supplies no cite key of its own. ID is taken verbatim where the entry carries one;
otherwise a key is minted from the entry’s own content — the first author’s family name,
the issued year, and the title’s first significant word (skipping a/an/the), lowercased
and run together with no separator. An entry missing any one of the three falls back to its
own position in the file instead, deterministically either way. The key is stored as it stands,
whether or not the catalogue already holds it, and the import result names the key as stored.
A note on producer fixtures#
Each producer’s genuine test fixture carries a byte-for-byte fingerprint — a fragment only that producer’s export is known to contain — used solely to prove the vendored corpus is what it claims to be. No mapping above depends on which producer wrote a file: there is no producer-detection branch anywhere in this module, and every row applies uniformly regardless of the file’s origin.