Thanks. here is the mapping data for “fields”. Where the “csl” key is defined
as “false” doesn’t always mean that there is no equivalent, just that a
simple 1:1 translation is not possible. The more complex fields are parsed
separately.
/**
* all fields and their metadata
*/
$this->field_data = array (
'reftype' => array(
'label' => _("Bibliographic Type"),
'type' => "string",
"csl" => "type"
),
'citekey' => array(
'label' => _("Citation Key"),
'type' => "string",
"csl" => "ID"
),
'abstract' => array(
'label' => _("Abstract"),
'type' => "string",
'bibtex' => true,
"csl" => "abstract"
),
// this is used for publisher-place or for author address
'address' => array(
'label' => _("Place"),
'type' => "string",
'bibtex' => true,
"csl" => "publisher-place"
),
// author affiliation
'affiliation' => array(
'label' => _("Affiliation"),
'type' => "string",
'bibtex' => true,
"csl" => false // ???
),
'annote' => array(
'label' => _("Annotation"),
'type' => "string",
'bibtex' => true,
"csl" => "annote"
),
'author' => array(
'label' => _("Authors"),
'type' => "string",
'bibtex' => true,
'separator' => ";",
"csl" => "author"
),
'booktitle' => array(
'label' => _("Book Title"),
'type' => "string",
'bibtex' => true,
"csl" => "container-title"
),
'contents' => array(
'label' => _("Contents"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'copyright' => array(
'label' => _("Copyright"),
'type' => "string",
'bibtex' => true,
"csl" => null
),
'crossref' => array(
'label' => _("Cross Reference"),
'type' => "string",
'bibtex' => true,
"csl" => "references"
),
'date' => array(
'label' => _("Date"),
'type' => "date",
'bibtex' => true,
"csl" => false
),
'edition' => array(
'label' => _("Edition"),
'type' => "string",
'bibtex' => true,
"csl" => "edition"
),
'editor' => array(
'label' => _("Editors"),
'type' => "string",
'bibtex' => true,
"csl" => "author"
),
'howpublished' => array(
'label' => _("Published As"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'institution' => array(
'label' => _("Institution"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'isbn' => array(
'label' => _("ISBN"),
'type' => "string",
'bibtex' => true,
"csl" => "ISBN"
),
'issn' => array(
'label' => _("ISSN"),
'type' => "string",
'bibtex' => true,
"csl" => "ISSN"
),
'journal' => array(
'label' => _("Journal"),
'type' => "string",
'bibtex' => true,
"csl" => "container-title"
),
// don't know what this is for, anyways
'key' => array(
'label' => _("Key"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'keywords' => array(
'label' => _("Keywords"),
'type' => "string",
'bibtex' => true,
"csl" => "keyword"
),
'language' => array(
'label' => _("Language"),
'autocomplete' => array('separator' => null ),
'type' => "string",
'bibtex' => true,
"csl" => false // ???
),
'lccn' => array(
'label' => _("Call Number"),
'type' => "string",
'bibtex' => true,
"csl" => "call-number"
),
// field to store where the book is kept
'location' => array(
'label' => _("Location"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'month' => array(
'label' => _("Month"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'note' => array(
'label' => _("Note"),
'type' => "string",
'bibtex' => true,
"csl" => "note"
),
'number' => array(
'label' => _("Number"),
'type' => "string",
'bibtex' => true,
"csl" => "number"
),
'organization' => array(
'label' => _("Organization"),
'type' => "string",
"csl" => false
),
'pages' => array(
'label' => _("Pages"),
'type' => "string",
'bibtex' => true,
"csl" => "page"
),
'price' => array(
'label' => _("Price"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'publisher' => array(
'label' => _("Publisher"),
'type' => "string",
'bibtex' => true,
"csl" => "publisher"
),
'school' => array(
'label' => _("University"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'series' => array(
'label' => _("Series"),
'type' => "string",
'bibtex' => true,
"csl" => "collection-title"
),
'size' => array(
'label' => _("Size"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'subtitle' => array(
'label' => _("Subtitle"),
'type' => "string",
'bibtex' => true,
"csl" => false
),
'title' => array(
'label' => _("Title"),
'type' => "string",
'bibtex' => true,
"csl" => "title"
),
'url' => array(
'label' => _("Internet Link"),
'type' => "link",
'bibtex' => true,
"csl" => "URL"
),
'volume' => array(
'label' => _("Volume"),
'type' => "string",
'bibtex' => true,
"csl" => "volume"
),
'year' => array(
'label' => _("Year"),
'type' => "int",
'bibtex' => true,
"csl" => "issued"
)
);--
View this message in context: http://xbiblio-devel.2463403.n2.nabble.com/Citeproc-json-data-input-specs-tp5135372p5137090.html
Sent from the xbiblio-devel mailing list archive at Nabble.com.