How does one change the language and/or place specificity of the common name, and add common names in two languages if possible, in the js file? For example I would like to have non-American English spelling, and add Afrikaans names.
Just noticed a style error that I’m pretty sure wasn’t there before. Anyway, the right arrow (→) on the “View more…” is not rendering correctly. When I changed the symbol on the js file to → then it renders correctly (Brave (Chromium) on Linux).
I will try to fix this issue and also add other languages, will let you know once is done
I’ve just discovered this thread. Fantastic! I’ve just replaced the old widget with the new one. MUCH better. Thanks
.
@glauber735 Thanks a lot for taking on this topic and your development!
I had posted here https://forum.inaturalist.org/t/embed-place-species-widget-on-website-iframe-no-longer-working/78160
that we have been using a widget that shows observed species at a place instead of individual observations.
This does no longer work and I don’t find any information about that widget right now either.
Do you think displaying species would be something your new widget could support?
Thank you.
Yes, I think it could support. Are you planning to use it on a website? Can you send more details?
@glauber735 We have this platform for users to monitor wetland areas: atlas.humedalescosteros.org
In the map there are markers for places in this project, which we have also created in iNaturalist. If you click any of the markers, a detail page opens with additional information.
If you scroll down there is the “Especies por iNaturalist” section with an iframe from iNaturalist that shows nothing at the moment.
At this location we would like the overview of species encountered at this place to be visible again.
Thanks for any feedback if this is manageable.
I am updating my personal garden blog with a more accessible modern Wordpress theme, which doesn’t seem to allow the old style widgets anyway. Your new HTML widget is exactly what I needed for my Observations page. Thank you for making this!!
Hey everyone,
I added these features:
Show Top species
Enable pagination
Custom text on top right
Please let me know what you think.
I have tried using the widget within iNat on a journal post. The iframe option works (yay!) but not the script option (not so yay).
Tip: to use this in iNat posts you needs to change the html formatting option at the bottom from ‘simple’ to ‘NONE’. Also means you do have to put in all html tags and can’t use Markdown… Swings and roundabouts ![]()
Looks nice!
if each instance is a transaction, does it somehow do rate limiting between the instances? maybe it’s not necessary for some reason. just wondering if there’s a limit wrt number of instances on a single page.
I don’t know. If there is I haven’t reached it yet.
Yes, it would be lovely if it could just pass through arbitrary iNat search parameters to the underlying API call. This way could filter by so much more, like tags, fields, etc.
I don’t even need a UI for it, I’m fine adding it to the iframe URL myself.
But wouldn’t it need to be in a ui flow to limit the instances of it loading on a single page?
I’m truly curious… maybe caching has gotten way more sophisticated than it used to be.
Sorry, I don’t understand what you mean by this.
Probably not explaining myself clearly, but trying to. :) I love the widget. I use it myself. What I’m thinking of is…
Let’s say I have two properties, each with their own inat project. I want to show the most recent observations from both properties from within a single journal post. I would have two iframes that presumably would both execute an API transaction on a single page load. But what if I had four projects… would four independent transactions on one page load be ok?
That’s my concern… and it may not be a valid concern. I just didn’t want to not ask. The concern is amplified by things like tags without a UI flow… because I’d have multiple instances on a page for different tags… potentially.
I have used 7 instances of the iframe on this journal post - https://www.inaturalist.org/projects/drepanogynini-moths-elegants-thorns/journal/134405 - without an issue.
I have used 11 instances of the script on a web page and not had an issue - https://buffelsdrift.org.za/insects.html
I mean, I guess that answers it. I particularly like the tab idea (2nd example)! I’ll definitely try to add it to a UI flow if you add support for tags and obs fields. Thx :)
Cool bananas :-)
Not my code! You will need to ask Glauber if he’s in the mood for adding tags etc.
