Skip to content
Snippets Groups Projects
Commit d7798df0 authored by Demian Katz's avatar Demian Katz
Browse files

Fix bug: missing main author on collections.

parent 6e890fbe
No related merge requests found
......@@ -72,10 +72,10 @@ class RecordDataFormatterFactory
[
'useCache' => true,
'labelFunction' => function ($data) {
return count($data['main']) > 1
return count($data['primary']) > 1
? 'Main Authors' : 'Main Author';
},
'context' => ['type' => 'main', 'schemaLabel' => 'author'],
'context' => ['type' => 'primary', 'schemaLabel' => 'author'],
]
);
$spec->setTemplateLine(
......@@ -140,10 +140,10 @@ class RecordDataFormatterFactory
[
'useCache' => true,
'labelFunction' => function ($data) {
return count($data['main']) > 1
return count($data['primary']) > 1
? 'Main Authors' : 'Main Author';
},
'context' => ['type' => 'main', 'schemaLabel' => 'author'],
'context' => ['type' => 'primary', 'schemaLabel' => 'author'],
]
);
$spec->setTemplateLine(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment