Loop through metadata values?


#1

Hi,
and sorry about really newbie question.

$item->value(‘dcterms:creator’) gives me only the first value, right? But what if there are multiple creators? How can I loop through these values or get them as array?

Best,
Ari


#2

You can add the option "all" = true:

$item->value(‘dcterms:creator’, ['all' => true, 'default' => []]);