BiologicalRecordsCentre / ABLE

Assessing ButterfLies in Europe project repository
2 stars 3 forks source link

Transect - input form. Enable 'Country' species list #233

Open DavidRoy opened 4 years ago

DavidRoy commented 4 years ago

On https://butterfly-monitoring.net/ebms-input-data

current species list options are:

A further option would be helpful:

This would be populated using the taxon-attributes available for the eBMS taxon list

Gary-van-Breda commented 4 years ago

Country species lists enabled on the Dev site: configured on Hungarian and Luxembourg. For this trial, I've set it up to use the relevant taxon presence attribute (we can set up a similar attribute if this is not appropriate) for each of those 2 countries, using "P" and "M" values (this can be configured to different values.)

As noted in #278 I've disabled the Full species list because it is so big (unwieldy?) and has performance issues.

DavidRoy commented 4 years ago

@xaviermestdagh could you test this for Luxembourg on https://dev-butterfly-monitoring.pantheonsite.io/walk-data-entry-new

DavidRoy commented 4 years ago

@Gary-van-Breda I tested out for Hungary. Am I misunderstanding how this functionality should work?

This screenshot shows that species 'Aglais ichnusa' is still available on the list, even though this taxa is 'A' for HU. http://warehouse1.indicia.org.uk/index.php/taxa_taxon_list/edit/432427

wde

DavidRoy commented 4 years ago

Actually, ignore my comment. I've now noticed the 'Branch species' option. The species search enables the full species list which is sensible.

Can 'Branch specific' be relabelled as 'Region species list'

DavidRoy commented 4 years ago

Rename 'Butterfly life stage' (which appears for both the butterfly and moth section). to 'Life stage'.

DavidRoy commented 4 years ago

Default life stage to 'Adult' throughout

Gary-van-Breda commented 4 years ago

Label changed to "Region specific list" Default life stage set to "Adult" I'm assuming you don't want the attribute name changed on the warehouse? In which case we need to wait until the live node number is known before we can change the attribute title

xaviermestdagh commented 4 years ago

Here a screenshot of what I see, how can I have the view with live stage, outside transect counts...? There are several "UNKNOWN DATA TYPE "" FOR ID: CAPTION:" The page start with a large error (?) code (second screenshot).
image image

DavidRoy commented 4 years ago

@Gary-van-Breda I get the same error. Is this to do with the 'reliability' functionality as these errors only show for Luxembourg I think

Gary-van-Breda commented 4 years ago

@DavidRoy : sorry - I had some finger trouble, and put in 1383 instead of 1393 for the reliability attribute ID. Now fixed.

@xaviermestdagh : Currently the live stage and outside transect counts are only active for the Hungarian scheme, not Luxembourg, on the Dev site. Would you like me to activate them for Luxembourg as well?

Gary-van-Breda commented 4 years ago

Form modified to allow override to occurrence attribute labels. Deployed to Dev as part of the new walk data entry form, and config set so 'Butterfly life stage' shown as 'Life stage': https://dev-butterfly-monitoring.pantheonsite.io/walk-data-entry-new

DavidRoy commented 4 years ago

Looks good to me. @xaviermestdagh can you test again?

xaviermestdagh commented 4 years ago

Great for Luxembourg. Under discussion with colleagues whether to switch to "live stage" view like in Hungary or not. @DavidRoy : is it expected to have live stage and outside transect counts available for transect in the mobile app as well? For Bumblebee, recording queen, worker or male is of importance, could it be part of the values in "Live stage"? Alternatively, adding a field sex for all groups...?!

Gary-van-Breda commented 2 years ago

@DavidRoy @xaviermestdagh : Live stage view is live for Hungary only. Do you wish for it to be enabled for Luxembourg? (If so do you want the outside transect count, the comments and/or the occurrence images as well?)

Should I also start setting up the config for the Country species lists? What value(s) should I use for the presence attributes to indicate a taxon should be included in the country list?

DavidRoy commented 2 years ago

The 'country' lists are held within Indicia as taxon_attributes. @JimBacon - can you advise Gary on the setup and relevant report? There will need to be a method to link the scheme to the right taxon attribute?

xaviermestdagh commented 2 years ago

@Gary-van-Breda is there a way I can see the hungarian form? (the dev-butterfly... link here below is not working)

Gary-van-Breda commented 2 years ago

@xaviermestdagh You should be able to see it on https://butterfly-monitoring.net/walk-data-entry?sample_id=18498444 : Bare in mind that this is Live Hungarian data

Would you rather I set it up for Luxembourg on Test or Dev?

JimBacon commented 2 years ago

@DavidRoy The question from @Gary-van-Breda is one for you, I think.

What value(s) should I use for the presence attributes to indicate a taxon should be included in the country list?

The values (from https://warehouse1.indicia.org.uk/index.php/termlist/edit/816) are as follows:

You might be generous and say 'all except A' or mean and say 'only P', or anything in between!

DavidRoy commented 2 years ago

Good question. All except 'A' is the best approach to start with

Gary-van-Breda commented 2 years ago

@DavidRoy : Shall I set the country list up for just one country first so you can check it? if so, which one?

DavidRoy commented 2 years ago

@Gary-van-Breda good idea. Please test using Luxembourg so @xaviermestdagh can confirm the list makes sense?

xaviermestdagh commented 2 years ago

@xaviermestdagh You should be able to see it on https://butterfly-monitoring.net/walk-data-entry?sample_id=18498444 : Bare in mind that this is Live Hungarian data

Would you rather I set it up for Luxembourg on Test or Dev?

Thanks @Gary-van-Breda, I could have a look at live stage view on live on Hungarian site. For butterflies I am not in favor of having this live stage view for Luxembourg because:

xaviermestdagh commented 2 years ago

@Gary-van-Breda good idea. Please test using Luxembourg so @xaviermestdagh can confirm the list makes sense?

If I understood well, list of species should be filtered for Luxembourg? FYI, I still see species with no potential presence in Luxembourg. But Indeed all values except "A" are worth to keep I believe. image

JimBacon commented 2 years ago

Colias aurorina has a value of 'A' for Luxembourg so, when Gary has finished, it should no longer appear in the list for you @xaviermestdagh.

@Gary-van-Breda, the list now includes Kenyan species, for which the presence value in European countries will be null. Your query may need to be filter on != 'A' and not null or use an inner join to exclude taxa with a null presence. Also, only the preferred names have the presence information so, if listing by common name, you might need to join by preferred_taxa_taxon_list_id