Correctly get the author, at least when only one
This commit is contained in:
parent
4ddfa5fc7c
commit
c584a088fb
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ function geo_citation_pseudo_field($entity) {
|
|||
return $markup;
|
||||
}
|
||||
|
||||
$authors = $entity->field_authors->getValue();
|
||||
$authors = $entity->field_authors->entity->title->value;
|
||||
$date = $entity->field_publication_date->value;
|
||||
$year = substr($date, 0, 4);
|
||||
$title = $entity->title->value;
|
||||
|
|
Loading…
Add table
Reference in a new issue