Fix preview function for UG/PG

Namespaces preview method for ug/pg programmes. Requires updates in of-course + PP API.

https://github.com/unikent/programmes-plant/pull/514