upgraded for Omeka 2.0