plazi / treatmentBank

Repository devoted to house keeping of treatmentBank
0 stars 0 forks source link

Pteronotus parnellii Pteronotus parnellii Gray, 1843 sec. Wilson & Mittermeier, 2019 not in TB stats #87

Open myrmoteras opened 1 year ago

myrmoteras commented 1 year ago

@gsautter do you have an idea, why Pteronotus parnellii Gray, 1843 sec. Wilson & Mittermeier, 2019 does not show up in the TB stats?

https://tb.plazi.org/GgServer/srsStats/stats?outputFields=doc.uuid+bib.title+bib.source+tax.name+tax.genusEpithet+tax.speciesEpithet+tax.status+treatCit.genusEpithet+treatCit.speciesEpithet&groupingFields=doc.uuid+bib.title+bib.source+tax.name+tax.genusEpithet+tax.speciesEpithet+tax.status+treatCit.genusEpithet+treatCit.speciesEpithet&FP-tax.genusEpithet=Pteronotus%20&FP-tax.speciesEpithet=parn%25&format=HTML

gsautter commented 1 year ago

Searching by UUID, it's actually there: https://tb.plazi.org/GgServer/srsStats/stats?outputFields=doc.uuid+doc.name+doc.articleUuid+tax.name&groupingFields=doc.uuid+doc.name+doc.articleUuid+tax.name&FP-doc.uuid=03A637439151FFECE1DACFC62B2BA5FB&format=HTML

Looks like the treatment citation isn't marked properly, and thus, as as you add the treatment citation fields, the treatment proper falls out of the join for lack of a join partner ... without the treatment citations, it does show, as do several others: https://tb.plazi.org/GgServer/srsStats/stats?outputFields=doc.uuid+bib.title+bib.source+tax.name+tax.genusEpithet+tax.speciesEpithet+tax.status&groupingFields=doc.uuid+bib.title+bib.source+tax.name+tax.genusEpithet+tax.speciesEpithet+tax.status&FP-tax.genusEpithet=Pteronotus&FP-tax.speciesEpithet=parn%25&format=HTML

myrmoteras commented 1 year ago

Yes. But this species does not show up at all

gsautter commented 1 year ago

Not if you select any fields from the treatment citations ... it's that same old 1:n join effect where n=0 that is perfectly correct from the SQL point of view, yet counter intuitive on the UI ... In the second link I posted above, it definitely does show ... here the same link, but ordered by UUID (treatment in question in first position): https://tb.plazi.org/GgServer/srsStats/stats?outputFields=doc.uuid+bib.title+bib.source+tax.name+tax.genusEpithet+tax.speciesEpithet+tax.status&groupingFields=doc.uuid+bib.title+bib.source+tax.name+tax.genusEpithet+tax.speciesEpithet+tax.status&orderingFields=doc.uuid&FP-tax.genusEpithet=Pteronotus&FP-tax.speciesEpithet=parn%25&format=HTML

myrmoteras commented 1 year ago

Just search for this treatment, not treatment citation. You can't find this Pteromotus species from HBMSW.

gsautter commented 1 year ago

You might want to try "Pteronotus" instead of "Pteromotus" ("n" instead of "m") ... gave me a good shock not to find anything with the "m" ... HBMW most definitely show up in a search for the former: https://tb.plazi.org/GgServer/srsStats/stats?outputFields=doc.uuid+doc.name+tax.name+tax.genusEpithet+tax.speciesEpithet&groupingFields=doc.uuid+doc.name+tax.name+tax.genusEpithet+tax.speciesEpithet&FP-tax.genusEpithet=Pteronotus&format=HTML