https://github.com/Islandora/islandora_internet_archive_bookreader/blob/7.x/includes/utilities.inc#L26-L27