Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fungarium specimen hotlink #2471

Closed
16 tasks done
JoeCohen opened this issue Oct 7, 2024 · 2 comments · Fixed by #2552
Closed
16 tasks done

Fungarium specimen hotlink #2471

JoeCohen opened this issue Oct 7, 2024 · 2 comments · Fixed by #2552

Comments

@JoeCohen
Copy link
Member

JoeCohen commented Oct 7, 2024

Automatic hotlink both the MO Fungarium Record and Observation to the official (remote) Fungarium's specimen record (for MO Fungarium records with an accession number).

  • The MO Fungarium Record should link to a search for the remote fungarium's record for that accession number.
  • Ditto for the MO Observation page.

TODO

  • Obtain list of Fungaria searchable by MyCoPortal
  • Add Herbarium#mycoportable? method.
  • Hotlink on appropriate MO Fungarium Record pages
  • Replace MCP_COLLECTIONS hash with Herbaria table mycoportal-db numeric field
    • add new field
    • update our code to get db from table
  • Hotlink on appropriate Observation pages
  • Herbarium show: display mycoportal_db
  • Herbarium form: display mycoportal_db, instructions for finding db number
  • Herbarium update/save
  • Bug MO Fungarium record page is missing a link to the record. Ex: http://localhost:3000/herbarium_records/44948
  • In Herbarium form, help, the link to mcp should open in a new tab. Can't do this because the link is created by a xlation string
  • Rubocop
  • PR
  • Respond to suggestions
  • Merge, Deploy, Close issue and switch attention to immediate post-deploy tasks MCP link post-deploy #2555

[MO] Question From pinonbistro@msn.com
2 messages
webmaster@mushroomobserver.org webmaster@mushroomobserver.org Sun, Oct 6, 2024 at 4:55 PM
Reply-To: pinonbistro@msn.com
To: webmaster@mushroomobserver.org
(from User #4674 Terri Clements/Donna Fulton(pinonbistro))
I use MO as my master list for AZ specimens, collected by myself and others, that are vouchered and sequenced. MO allows me to add both fungarium and GenBank accession numbers to MO obs created by others. This is great but while the GenBank link is a hot link to the record on GenBank the fungarium record is not linked by a hot link to the fungarium. The MycoPortal link is a hot link to the fungarium record but for some reason only the MO obs owner can add the MycoPortal link. It would seem to make sense to allow others to add the MP link.

Thanks,

Terri
webmaster mushroomobserver.org webmaster@mushroomobserver.org Sun, Oct 6, 2024 at 7:27 PM
To: pinonbistro@msn.com
Bcc: "webmaster mushroomobserver.org" webmaster@mushroomobserver.org
Terri:
Good point. Thanks for the suggestion!
I agree that more people should be able to create a hot link to the fungarium.
I'll create a ticket for this. I won't be able to look at it further for at least a week.
(The Northeast Mycological Foray, which is happening next weekend, is using MO Field Slips and is recording foray collections in MO; the MO developers are focused on making that happen with minimum glitches.)
Best,
Joe

@JoeCohen JoeCohen self-assigned this Nov 29, 2024
@JoeCohen JoeCohen changed the title MyCoPortal Fungarium Links Fungarium specimen hotlink Nov 29, 2024
@JoeCohen
Copy link
Member Author

MO virtual herbarium which are mcp searchable:

Herbarium.where(code: mcp_keys).pluck(:code)
  Herbarium Pluck (2.9ms)  SELECT `herbaria`.`code` FROM `herbaria` WHERE `herbaria`.`code` IN ('PH', 'ACAD', 'CHSC', 'N/A', 'BMSC', 'BISH', 'BRIT', 'BDWR', 'BRU', 'HSC-F', 'CDA-Fungi', 'HAY', 'AAFC-DAOM', 'WSP', 'CHRB', 'CLEMS', 'HCOA', 'CUP', 'CBBG', 'DEWV', 'DBG-DBG', 'DUKE', 'EIU', 'EWU', 'QCAM', 'TAM', 'BAFC-H', 'F', 'FNL', 'FLD', 'GLM', 'M', 'KR', 'FH', 'FR', 'IND', 'TAAM', 'EAA', 'INEP-F', 'PACA', 'USU-UTC', 'ICMP', 'ISC', 'SUCO', 'LSUM-Fungi', 'MUHW', 'BR', 'MU', 'MSC', 'MOR', 'CORD', 'CR', 'PC', 'MNA', 'IBUNAM-MEXU:FU', 'TNS-F', 'NMC-FUNGI', 'UT-M', 'L', 'NBM', 'NY', 'NYS', 'PDD', 'NCSLG', 'OSC', 'OSC-Lichens', 'USFWS-PRR', 'PUR', 'PUL', 'QFB', 'E', 'TRTC', 'TAES', 'SFSU', 'SBBG', 'LJF', 'CORT', 'SYRF', 'SWAT', 'S', 'TALL', 'IBUG', 'CMMF', 'UACCC', 'ARIZ', 'UARK', 'UBC', 'UC', 'UCSC', 'IRVC', 'LA', 'FTU', 'CSU', 'CINC', 'C', 'FLAS', 'GAM', 'GB', 'HAW-F', 'ILL', 'ILLS', 'KANU-KU-F', 'MAINE', 'WIN', 'MICH', 'MIN', 'MISS', 'MONTU', 'NEB', 'UNM-Fungi', 'UNCA-UNCA', 'NCU-Fungi', 'O', 'URV', 'USAM', 'USCH-Fungi', 'USF', 'TU', 'TENN-F', 'UCHT-F', 'TEX', 'VT', 'WTU', 'UWAL', 'WIS', 'UWSP', 'RMS', 'UPS-BOT', 'USAC-USCG Hongos', 'CFMR', 'FPF', 'BPI', 'VSC', 'VPI', 'YSU-F')

@JoeCohen
Copy link
Member Author

How to get the MCP db number for a fungarium:

Screenshot 2024-11-30 at 10 02 50 AM

@JoeCohen JoeCohen changed the title Fungarium specimen hotlink Fungarium collection hotlink Nov 30, 2024
@JoeCohen JoeCohen changed the title Fungarium collection hotlink Fungarium specimen hotlink Nov 30, 2024
@JoeCohen JoeCohen linked a pull request Dec 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant