Members
Methods
(protected, inner) bibliography(data, optionsopt) → {String}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Array.<CSL>
|
|||||||||||||||||||||||
options |
Object
|
<optional> |
{} |
|
Returns:
- Type:
-
String
output
(protected, inner) citation(data, optionsopt) → {String}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Array.<CSL>
|
||||||||||||||||||||||||||||
options |
Object
|
<optional> |
{} |
|
Returns:
- Type:
-
String
output
(protected, inner) fetchEngine(style, lang, template, retrieveItem, retrieveLocale) → {Object}
Retrieve CSL parsing engine
- Source:
Parameters:
Name | Type | Description |
---|---|---|
style |
String
|
CSL style id |
lang |
String
|
Language code |
template |
String
|
CSL XML template |
retrieveItem |
module:output/csl~retrieveItem
|
Code to retreive item |
retrieveLocale |
module:output/csl~retrieveLocale
|
Code to retreive locale |
Returns:
- Type:
-
Object
CSL Engine
(protected, inner) fetchLocale(langopt) → {String}
Retrieve CSL locale
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
lang |
String
|
<optional> |
"en-US" |
lang code |
Returns:
- Type:
-
String
CSL locale
(protected, inner) fetchStyle(styleopt) → {String}
Retrieve CSL style
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
style |
String
|
<optional> |
"apa" |
style name |
Returns:
- Type:
-
String
CSL style
(protected, inner) getAttributedEntry(string, name, value) → {String}
Add data-* attribute to a HTML string
- Source:
Parameters:
Name | Type | Description |
---|---|---|
string |
String
|
HTML string |
name |
String
|
attribute name |
value |
String
|
attribute value |
Returns:
- Type:
-
String
HTML string with attribute
(protected, inner) getPrefixedEntry(value, id) → {String}
Add CSL identifiers to entry
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
String
|
HTML string |
id |
String
|
Number
|
ID |
Returns:
- Type:
-
String
HTML string with CSL ID
(protected, inner) getWrappedEntry(value, source, wrapping) → {String}
Pre/append things to entry
- Source:
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
value |
String
|
HTML string |
||||||||||||
source |
CSL
|
source element |
||||||||||||
wrapping |
Object
|
append / prepend configuration
|
Returns:
- Type:
-
String
Wrapped HTML string
(protected, inner) prepareEngine(data, templateName, language, format) → {Object}
Prepare CSL parsing engine
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
Array.<CSL>
|
|
templateName |
String
|
|
language |
String
|
|
format |
String
|
Returns:
- Type:
-
Object
CSL Engine
Type Definitions
retrieveLocale(lang) → {String}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
lang |
String
|
Language code |
Returns:
- Type:
-
String
CSL Locale