Can the function get_records be used to return all items that have a metadata element with a particular value? For example if 'Year' is an 'Item Type Metadata' element, and I wish to return all items where Year == 2005 would this pseudocode work?
$itemsByYear = get_records('Item',array([somehow capture Year == 2005]),1000);