Fixing for $object variable instead of standard $islandora_object variable in template files.