You are here

public function BiblioStyleBibtex::importYear in Bibliography Module 7.3

Import year.

Parameters

EntityMetadataWrapper $wrapper: The wrapped Biblio object.

$key: The key to import.

$entry: The data to import from.

File

plugins/biblio_style/bibtex/BiblioStyleBibtex.class.php, line 113
BibTeX style.

Class

BiblioStyleBibtex
@file BibTeX style.

Code

public function importYear(EntityMetadataWrapper $wrapper, $key, $entry) {
  if (empty($entry[$key])) {
    return;
  }
  if (strtolower($entry[$key]) == 'in press') {

    // Biblio is in press, set the Biblio's status to be "In Press" and leave
    // the year empty.
    $wrapper->biblio_status
      ->set('in_press');
    return;
  }
  $this
    ->importGeneric($wrapper, $key, $entry);
}