MushroomObserver / mushroom-observer

A website for sharing observations of mushrooms.
https://mushroomobserver.org
MIT License
77 stars 25 forks source link

Name external links #1884

Closed JoeCohen closed 6 months ago

JoeCohen commented 6 months ago

Add iNat & Wikipedia links to RH column of Name "About this taxon" panel

Tasks

JoeCohen commented 6 months ago

Also Genbank, perhaps some others These are easy, cheap changes.

JoeCohen commented 6 months ago

Another very useful one, especially for US and NAMA-sponsored forays: MycoGuide. Searches take the form: https://www.mycoguide.com/guide/search?q=truncospora+ohiensis

mo-nathan commented 6 months ago

From Alan Rockefeller Feb 12, 2024: Regarding iNat integration, it would be cool if there was a field for an iNat link, similar to the sequence or collection number fields. I've been linking them in the comments.

It would also be cool if there was an import feature - connect to iNat with an API key and import observations one at a time via observation # or import all observations that don't have a MO URL observation field.

mo-nathan commented 6 months ago

MycoMap link would be great as well.

mo-nathan commented 6 months ago

Once we have a place to store the iNat observation link, I bet we could search and parse existing links in the comments to populate the ones that are already there.

nimmolo commented 6 months ago

~These can all be added to the "External Links"/"External Sites" tables and UI that's been there forever, and it's not hard to add them.~

~I look forward to reviewing somebody else's PR!~

Sorry - i was totally off base!

JoeCohen commented 6 months ago

@nimmolo: Is ExternalLlinks/ExternalSites the best way to do this. What I want is for every Name page to link to, e.g., the iNat page for that Name, like the existing show_name link to MyCoPortal. Similar links are currently added by individual concats in the About this Taxon panel, not via the "External Links"/"External Sites" tables and UIapp/views/controllers/names/show/_observations_menu.html.erb.

JoeCohen commented 6 months ago

MycoMap link would be great as well.

@mo-nathan We need to know MycoMap's internal id # for the taxon in order to link to the appropriate page. A link of the form [https:// ](https://mycomap.com/search/?&q=%22boletus%20edulis%22 goes to MM's observations of B. edulis. IMO what the MO Name page needs is a link to MM's taxonomy page. That link looks like this: https://mycomap.com/taxonomy/271350-boletus-edulis/

Maybe MM has an API that would let us do this differently. I'll contact Steve Russell to see if he has any suggestions.

JoeCohen commented 6 months ago

UNITE would also be nice, but there isn't a simple url that takes the text_name as input. They use the PLUTO API, but I still don't see how to get where I want using just the text_name.

JoeCohen commented 6 months ago

Don't need a separate NCBI taxonomy link because the Nucleotide page displays a taxonomy summary + a link.

JoeCohen commented 6 months ago

MushroomExpert does not have an internal name search. Instead it uses a GoogleSearch limited to mushroomexpert.com, like this: https://www.google.com/search?q=coprinus+comatus+site:www.mushroomexpert.com This works reasonably well. for IF it's better than what we have currently. The link is https://www.google.com/search?q=coprinus+comatus+site:www.indexfungorum.org

JoeCohen commented 6 months ago

@nimmolo: Thanks. Although it isn't the right thing here, you made me pay attention to the ExternalLink API, which I've ignored in the past. Result: I'll bet I can make very good use of this as a User. Furthermore, it would be nice to have something like this for the Name pages.

JoeCohen commented 6 months ago

try improving IF link for taxa lacking icn_id I've discarded this because I couldn't find a Google URL that works See, e.g., https://www.google.com/search?q=stropharia+agaricoides+website%3Awww.indexfungorum.org This is supposed to return only results from www.indexfungorum.org. But

Hmm. would Bing work better? Yes!!!

mo-nathan commented 6 months ago

You could also consider Duck Duck Go. The URL https://duckduckgo.com/?q=site%3Aindexfungorum.org+%22stropharia%22+%22agaricoides%22&t=chromentp&ia=web returns the correct page first along with only two other results both from Index Fungorum. Note that the double quotes around the genus and species help a lot.

JoeCohen commented 6 months ago

@mo-nathan Thanks for the Duck Duck Go suggestion. I like the results better than Bing (even though I get an annoying Duck Duck Go popup and one time got an eBay add).

JoeCohen commented 6 months ago

Some conditional link forms: