workspace/user#
Interfaces#
User#
Defined in: workspace/user.ts:11
A user: a name and, optionally, the bare ORCID iD (0000-0002-1825-0097).
Properties#
name#
readonlyname:string
Defined in: workspace/user.ts:12
orcid#
readonlyorcid:string|null
Defined in: workspace/user.ts:13
Variables#
DEFAULT_USER#
constDEFAULT_USER:User
Defined in: workspace/user.ts:17
The user before anyone gives a name: the journal’s default author, without an iD.
TILIE_AGENT#
constTILIE_AGENT:"https://github.com/TimeToAlign/TimeLineEditor"="https://github.com/TimeToAlign/TimeLineEditor"
Defined in: workspace/user.ts:20
The IRI stating what the editor itself proposes, as stated_by of a provenance entry.
USER_TAG#
constUSER_TAG:"tag:timetoalign.github.io,2026:tilie:user:"="tag:timetoalign.github.io,2026:tilie:user:"
Defined in: workspace/user.ts:23
The beginning of the tag IRI naming a user without an ORCID iD, followed by the encoded name.
Functions#
readOrcid()#
readOrcid(
text):string|null
Defined in: workspace/user.ts:42
The bare ORCID iD text gives: the iD itself (0000-0002-1825-0097) or
its address (https://orcid.org/…, http://orcid.org/…, orcid.org/…),
white space around it trimmed, its check character verified; null for
any other text.
Parameters#
text#
string
Returns#
string | null
statedBy()#
statedBy(
user):string
Defined in: workspace/user.ts:56
The IRI naming user as stated_by of what they state: their ORCID iD’s
address, else a tag IRI holding their name (a name is no IRI).
Parameters#
user#
Returns#
string