 			<th>Number Collections</th>
 			<th>Number Specimens</th>
 		</tr>
+		<cfif isdefined('getCSV') and getCSV is true>
 	<cfscript>
 		variables.joFileWriter = createObject('Component', '/component.FileWriter').init(variables.fileName, variables.encoding, 32768);
 		variables.joFileWriter.writeLine("year,NumberCollections,NumberSpecimens");
 	</cfscript>
+	</cfif>
 	<cfloop from="1995" to="#dateformat(now(),"YYYY")#" index="y">
 		<cfquery name="qy" datasource="uam_god">
  			select

			<td>#qy.numberCollections#</td>
			<td>#qy.numberSpecimens#</td>
		</tr>
		<cfscript>
			variables.joFileWriter.writeLine('"#y#","#qy.numberCollections#","#qy.numberSpecimens#"');
		</cfscript>
	</cfloop>
	</table>
	<cfscript>
		variables.joFileWriter.close();
	</cfscript>
	<hr>
	<a name="collections"></a>
	<p>List of collections in Arctos:</p>

	<p>Query and Download stats are available under the Reports tab.</p>
	<a name="growth"></a>
	<hr>
	<cfif isdefined('getCSV') and getCSV is true>
		<cfset fileDir = "#Application.webDirectory#">
		<cfset variables.encoding="UTF-8">
		<cfset fname = "arctos_by_year.csv">
		<cfset variables.fileName="#Application.webDirectory#/download/#fname#">
	</cfif>
	Specimens and collection by year
	<a href="/download/#fname#">CSV</a>
	<table border>
