You are here

public function BiblioStyleBibtex::formatPublisher in Bibliography Module 7.3

Return the value of the publisher property.

Parameters

EntityMetadataWrapper $wrapper: The wrapper object.

$key: The property name which holds the value of the field.

Return value

The value of the property.

File

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

Class

BiblioStyleBibtex
@file BibTeX style.

Code

public function formatPublisher(EntityMetadataWrapper $wrapper, $key) {
  return !in_array($this->biblio->type, array(
    'thesis',
    'report',
  )) ? $wrapper->{$key}
    ->value() : NULL;
}