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

Merge branch 'release-4.1'

parents bcbcd4bf d7798df0
No related merge requests found
......@@ -90,10 +90,10 @@ class RecordDataFormatterFactory implements FactoryInterface
[
'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(
......@@ -158,10 +158,10 @@ class RecordDataFormatterFactory implements FactoryInterface
[
'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