I am attempting to remove the default metadata descriptors from the Contribution plugin. Using the Element Form Filter documentation (https://omeka.readthedocs.io/en/latest/Reference/filters/Element_ElementForm_Filter.html) and a tip from this post regarding which array value to alter, I created a plugin that removes the description from one element from one element set (eg Dublin Core). However, I would like to remove ALL descriptions from ALL element sets, ideally. Would there be a way to remove all descriptions for all element names?
My code so far, which only removes the descriptor for Title:
<?php
class AmplificationDescriptionPlugin extends Omeka_Plugin_AbstractPlugin
{
protected $_filters = array('relabelItemTitle' => array('ElementForm', 'Item', 'Dublin Core', 'Title'));
public function relabelItemTitle($components, $args)
{
$components['description'] = "";
return $components;
}
}
By the way, I believe there is an error in the linked documentation page. Line 4 is missing “protected” at the beginning. It should read:
protected $_filters = array('relabelItemTitle' => array('ElementForm', 'Item', 'Dublin Core', 'Title'));