UP-4009: Adjusting the xsl to only display the gallery when portal view is not focused.

https://issues.jasig.org/browse/UP-4009

Adjusting the xsl to only display the gallery when portal view is not focused.