Topic: Expanding taxonomic hierachy in a batch update
I am currently attempting to modify the batch update JNCCDes2AssignTaxonsToDesignationRuck.xml so that in addition to assigning the selected designation to all items in the rucksack, it also assigns it to all sub-taxa (child taxa, subspecies etc.).
I know that this must use the organism table, but at the moment I am having trouble working out the syntax.
I have got the code to extract the Taxon List Item Keys from the Rucksack into a temporary table, now presumably I need to convert these into Taxon Version Keys, to link to the Organism table, then link this to another copy of the organism table (Organism key to parent key) and loop though this process to pick up all the subtaxa, converting them back to TLIKs and inserting them into the Temp table as I go.
I have looked at this a few times, based on a much simpler structure I use to select sub-sites of locations (copied from one of Mike's reports), but so far I just can't seem to get it right.
Any help would be gratefully recieved.
Wildlife Sites Officer
Wiltshire & Swindon Biological Records Centre