You are here

public function BiblioStyleBase::import in Bibliography Module 7.3

Entry point for data import.

Parameters

$data: String of data.

array $options: Array of options to pass to the Biblio style.

Return value

array Array keyed with 'new', 'duplicate', and 'error.

1 call to BiblioStyleBase::import()
BiblioStyleEndNoteXML7::importData in plugins/biblio_style/endnote/BiblioStyleEndNoteXML7.php
@inheritdoc

File

plugins/biblio_style/abstract.inc, line 221

Class

BiblioStyleBase
An abstract implementation of MessageNotifierInterface.

Code

public function import($data, $options = array()) {
  $return = array(
    'new' => array(),
    'duplicate' => array(),
    'error' => array(),
  );
  if ($result = $this
    ->importData($data, $options)) {
    $return = $this
      ->saveOrFindDuplicateFromImportData($result);
  }
  return $return;
}