diff --git a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php index f2da01a84343bf6d659ec0422716d9b71d142832..75e6dba5e6ddec9a19350336387d2f28463f0efa 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php @@ -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(