Updating CALI Author Viewer code to work with D7.