As luck would have it, I've just had to create a rucksack based on a list of species someone provided to us in a spreadsheet. Thought it might be helpful if I outlined the steps I took.
1. In the spreadsheet, the list of species is contained in column A, so I write the following formula in column B:
This wraps the species name in single quotes and adds a comma onto the end.
2. Copy this formula down the column to cover all species names
3. Copy the result
4. Create an SQL query like this, using the list you just copied (don't forget to remove the last comma from the last species):
select distinct
itn.recommended_taxon_list_item_key
from
index_taxon_name itn
where
itn.actual_name in ('Hepialus hecta',
'Hepialus fusconebulosa',
'Phragmataecia castaneae',
'Cossus cossus',
'Adscita statices',
'Adscita geryon',
'Jordanita globulariae',
'Zygaena trifolii',
'Zygaena trifolii form decreta',
'Zygaena trifolii form palustrella',
'Zygaena filipendulae x lonicerae')
5. With the resulting list of recommended_taxon_list_item_keys, paste them into a rucksack between the <TAXON></TAXON> tags.
You should now have a rucksack populated with your required species. Note, if the name in the species list you're using doesn't match one of those in Recorder, you're not going to get a result back, so you need to check to make sure the number of recommended_taxon_list_item_keys you're getting back matches the number of species you're putting in.
I've uploaded a zip file containing the files I used/generated in this process:
http://forums.nbn.org.uk/uploads.php?file=making_a_rucksack.zip
Charles Roper
Digital Development Manager | Field Studies Council
http://www.field-studies-council.org | https://twitter.com/charlesroper | https://twitter.com/fsc_digital