function is now defined; that pull request was merged a while back, but there is another one which is needed, https://github.com/Islandora/islandora/pull/402