Namespace: prop

@citation-js/plugin-wikidata.parsers.prop

Methods

(protected, static) exports.getLabel(entity) → {String}

Get the labels of objects

Parameters:
Name Type Description
entity Object

Wikidata API response

Source:
Returns:

label

Type
String

(protected, static) exports.parseType(type) → {String}

Parameters:
Name Type Description
type String | Array.<String>

P31 Wikidata ID value

Source:
Returns:

CSL type

Type
String

(protected, static) parse(prop, values, entity) → {String|Array.<Object>}

Transform property and value from Wikidata format to CSL.

Returns additional _ordinal property on authors.

Parameters:
Name Type Description
prop String
values Array | String
entity Object
Source:
Returns:

CSL value

Type
String | Array.<Object>