BiologicalRecordsCentre / iRecord

Repository to store and track enhancements, issues and tasks regarding the iRecord website.
http://irecord.org.uk
2 stars 1 forks source link

Question re dynamic attributes #1687

Closed kitenetter closed 3 months ago

kitenetter commented 4 months ago

On this form: https://irecord.org.uk/enter-bird-record

the available species are restricted to birds, and it is currently using the default (non-dynamic) stage termlist.

However, it is not possible to lock the taxon name for adding multiple records of the same species, and I'm assuming that might be because of the way that our dynamic taxon forms work (whereby a taxon has to be entered each time in order to trigger the appropriate stage termlist).

How can I change this form so that it allows the taxon to be locked?

And having done that, is it possible to change the survey structure so that it uses occurrence attribute 872 ("Stage (birds)") instead of occurrence attribute 1092 ("Stage")? In other words, can attribute 872 only be used with dynamic forms, or can it be used in place of the default stages on a non-dynamic form?

johnvanbreda commented 3 months ago

I managed to use the lock on the species control fine - are you sure it is not working?

I've switched the stage attribute over - there is nothing special about the attribute itself related to being used in a dynamic way on the general dataset, so that's fine.

kitenetter commented 3 months ago

I'm sure it wasn't working (and RSPB also were when they raised the issue), but I agree it is working now! Don't really understand why this is, but hopefully all is well - closing.

kitenetter commented 3 months ago

Just heard back from RSPB that they are still unable to lock the species: "Just trying to enter skylark data but still not working when entering a locked species record."

image

kitenetter commented 3 months ago

I've just tried again myself, using the form via the activity that RSPB are using, and the locking works. Will ask them to clear their cache.

kitenetter commented 3 months ago

RSPB say: "Just logged out of irecord, cleared all my browsing history & cookies then logged back in but still getting same issue."

johnvanbreda commented 3 months ago

@BirenRathod please can you deploy the latest master branch of iform (especially the media submodule) to the upstream, which will fix this issue. The Drupal cache will need to be cleared.

BirenRathod commented 3 months ago

@johnvanbreda & @kitenetter The site has been updated with the latest iForm release.

kitenetter commented 3 months ago

@johnvanbreda RSPB are still reporting the same problem - not sure what else we can try.

BirenRathod commented 3 months ago

@kitenetter I have just cleared the cache. Can you ask them to check again, please?

johnvanbreda commented 3 months ago

When I tried yesterday, it didn't work until I did a proper page reload (Ctrl-F5, but depending on browser). Or clear browser cache. It looks like it still works OK for me.

kitenetter commented 3 months ago

@johnvanbreda RSPB report that they still cannot get the taxon field locking to work when using MS Edge, but it does work when they use Chrome. The locking is working for me within Edge so I don't know why it isn't for RSPB. Can't think of anything else to suggest so I'll leave this closed but let me know if it is worth any further investigation.