Updating class for Omeka 2.0 compatibility