gon
1
I’m trying to get the text of the field ‘Spatial Coverage’ (Dublin Core) of an public item.
Actually, I’ve got this:
$db = get_db();
$elementTable = $db->getTable(‘Element’);
$coverageElement = $elementTable->findByElementSetNameAndElementName(‘Dublin Core’, ‘Spatial Coverage’);
$item = $args[‘record’];
How can i do it?
Thank you very much.
You probably just want to use the metadata
helper function. All you need is the $item:
metadata($item, array('Dublin Core', 'Spatial Coverage'))
gon
3
It works!
Thank you so much!
I think I should have a look at the documentation to learn all functions…
system
Closed
4
This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.