Fix for Ticket #953
Fix for Ticket #871
Most of the code for this fix was taken from the main-page.xsl
added option to enable or disable map panel in metadata.show