 				with status set to autoinsert. That would fully automate repatriation. Check results THOROUGHLY first. </p>
 		</li>
 	</ul>
-
-
 	<cfquery name="mg" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
 		select distinct (dataset_name) from htax_dataset
 	</cfquery>

		<label for="comments">comments</label>
		<input type="text" name="comments" placeholder="comments">
		<br><input type="submit" value="create dataset">

	</form>
	</cfoutput>
</cfif>
<cfif action is "saveCreateDataset">
	<cfquery name="saveCreateDataset" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
		insert into htax_dataset (

		<cfquery name="nht" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select count(*) c from htax_seed where dataset_id=#d.dataset_id#
		</cfquery>
		<cfquery name="nht_il" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select status,count(*) c from htax_temp_hierarcicized where dataset_id=#d.dataset_id# group by status order by status
		</cfquery>
		<cfquery name="ht" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select count(*) c from hierarchical_taxonomy where dataset_id=#d.dataset_id#
		</cfquery>
		<table border>
			<tr>
				<th>Operation</th>
				<th>Status</th>
			</tr>
			<tr>
				<td>Seed</td>
				<td>
					#nht.c# records have been seeded. You may add more (use the form above). Duplicates are disallowed (and Oracle bug
					qerltcInsertSelectRop_bad_state prevents silently ignoring them) - contact us if you need help.
				</td>
			</tr>
			<tr>
				<td>
					Import
				</td>
				<td>
					<cfloop query="nht_il">
						<div>#status# : #c#</div>
					</cfloop>
					<p>
						<a href="taxonomyTree.cfm?action=noSuccessimport&dataset_name=#dataset_name#">error detail</a>
						<br>
					</p>
				</td>
			</tr>
			<tr>
				<td>
					Funky Data
				</td>
				<td>
					<div>
						<a href="taxonomyTree.cfm?action=mismatch_import&dataset_name=#dataset_name#">Click here</a>
						to view records which are in your import but not in Arctos. These are classification
						terms which do not exist as names and should be corrected or created.
					</div>
				</td>
			</tr>
			<tr>
				<td>hierarchical terms</td>
				<td>
					#ht.c# records are available to manage hierarchically. This should match seed count (#nht.c#);
					if it doesn't, there are errors or the import scripts are still running.
					 Reload or return to this page to see progress. If nothing changes for ~5 minutes it's probably done all that can be done,
					 or something is stuck. Contact us if you need help.
				</td>
			</tr>
		</table>

		<hr>

		<p>
			When you are done seeding and the import scripts are done (numbers above have stopped changing), you may
			<a href="taxonomyTree.cfm?action=manageLocalTree&dataset_name=#dataset_name#">manage these data in the classification tree editor</a>
		</p>
		<hr>
