Added option selection for display or csv

The selection box and case statement for csv output on the index page

Signed-off-by: Kieran Briggs <kieran.briggs@sheffcol.ac.uk>