1 (edited by bazmole 26-01-2016 16:41:18)

Topic: UK Master List on testwarehouse.indicia

Hi Jim,

Nice to speak with you and thanks for your time just now.

Many common species appear to be missing from the UK Master List. I've also tried searching with a * prefix & suffix to get around problems like 'common blackbird'. Here are some examples:



*northern diver OR *Gavia immer

REQUESTS

http://testwarehouse.indicia.org.uk/index.php/services/data/taxa_taxon_list?callback=jsonp1453824810870&q=*northern%2520diver&limit=21&timestamp=1453824916488&orderby=taxon&mode=json&qfield=taxon&auth_token=[ content deleted for NBN forum ]&taxon_list_id=34
http://testwarehouse.indicia.org.uk/index.php/services/data/taxa_taxon_list?callback=jsonp1453824810941&q=gavia%2520immer&limit=21&timestamp=1453825540714&orderby=taxon&mode=json&qfield=taxon&auth_token=[ content deleted for NBN forum ]&taxon_list_id=34

RESPONSES
jsonp1453824810870([])

jsonp1453824810941([])



*whooper swan OR

REQUEST

http://testwarehouse.indicia.org.uk/index.php/services/data/taxa_taxon_list?callback=jsonp1453824810935&q=*whooper%2520swan&limit=21&timestamp=1453825231915&orderby=taxon&mode=json&qfield=taxon&auth_token=[ content deleted for NBN forum ]&taxon_list_id=34
http://testwarehouse.indicia.org.uk/index.php/services/data/taxa_taxon_list?callback=jsonp1453824811002&q=cygnus%2520cygnus&limit=21&timestamp=1453826241987&orderby=taxon&mode=json&qfield=taxon&auth_token=[ content deleted for NBN forum ]&taxon_list_id=34

RESPONSE
jsonp1453824810935([])
jsonp1453824811002([])



It might be to do with character encoding of spaces or something as one word species appear to return fine i.e.



bittern

REQUEST

http://testwarehouse.indicia.org.uk/index.php/services/data/taxa_taxon_list?callback=jsonp1453824810938&q=bittern&limit=21&timestamp=1453825384293&orderby=taxon&mode=json&qfield=taxon&auth_token=[ content deleted for NBN forum ]&taxon_list_id=34

RESPONSE

jsonp1453824810938([{"id":"18060","taxon_id":"17633","taxon":"Bittern","authority":null,"language":"eng","common":"Bittern","preferred_name":"Botaurus stellaris","taxon_group":"bird","taxon_list_id":"34","preferred":"f","taxon_list":"UK Master List","website_id":null,"external_key":"NHMSYS0000530210","allow_data_entry":"t","taxon_meaning_id":"7880","taxon_group_id":"475"},{"id":"507522","taxon_id":"239585","taxon":"Bitternut Hickory","authority":null,"language":"eng","common":"Bitternut Hickory","preferred_name":"Carya cordiformis","taxon_group":"flowering plant","taxon_list_id":"34","preferred":"f","taxon_list":"UK Master List","website_id":null,"external_key":"NHMSYS0000456962","allow_data_entry":"t","taxon_meaning_id":"197041","taxon_group_id":"491"}])

In fact I've just had success with "great*northern" and "whooper*swan". However the use of multiple wildcards seems to break the search request i.e. "*northern" brings up a match but as soon as I type the extra characters "*northern diver" OR "*northern*diver" I get zero matches.

From what I read the taxon_list service should tolerate different space and hyphen combinations.

2

Re: UK Master List on testwarehouse.indicia

Hi bazmole,

First thing I'll do is log in to iRecord and try entering these species. This searches against the UK Master List on our live warehouse (warehouse1.indicia.org.uk). Everything seems to be fine there which is good news for the live sites and also gives me a benchmark to refer to.

Now I'll try to select these species using a recording form wired up to the test warehouse (testwarehouse.indicia.org.uk). Its working okay for me as well.

So let's look at my Ajax requests.
*Northern diver

http://testwarehouse.indicia.org.uk/index.php/services/data/cache_taxon_searchterm?callback=jsonp1453829125232&q=*northerndiver&limit=21&timestamp=1453829407003&mode=json&qfield=searchterm&auth_token=...&nonce=...&taxon_list_id=34&orderby=original,preferred_taxon&query={"where":["(simplified='t' or simplified is null) AND (preferred='t' or language_iso<>'lat')"]}

Wow. That is quite different.

There is a configuration setting for the form, in the Species section, called Cache lookups. I've got that checked and I don't think you have. So, I've unchecked it and am trying again. Still working but a more similar request.

http://testwarehouse.indicia.org.uk/index.php/services/data/taxa_taxon_list?callback=jsonp1453829891297&q=*northern diver&limit=21&timestamp=1453829911444&mode=json&qfield=taxon&auth_token=...&nonce=...&taxon_list_id=34&orderby=taxon&query={"where":["(preferred='t' or language<>'lat')"]}

Getting closer...problem spotted I think.
For clarity I have been url decoding my requests. Look at your request with its

q=*northern%2520diver

There is some double encoding going on.

So, I could investigate further but this is the point where I always shuffle with slight embarrassment and say how the files on http://www.indicia.org.uk/downloads are getting very old and haven't been updated with bug fixes and could you please try using the code from the development branch of the Github repository, https://github.com/Indicia-Team/drupal- … e/develop.

I can email downloads or more instructions if Github puts up a fight.

Best wishes,
Jim Bacon.

3

Re: UK Master List on testwarehouse.indicia

Hi Jim,

The latest development branches of iform and indicia_features have fixed this issue with the species livesearch, along with many other problems I have been experiencing i.e. lists of available forms not matching up to the tutorials, issues with Google Maps layers not displaying etc. I now have no outstanding issues in my issue tracking spreadsheet.

Thanks again

Paul

4

Re: UK Master List on testwarehouse.indicia

Bonanza! Well done for sticking with it. Sound like you are really getting to grips with things.

Jim Bacon.