iDigBio / idb-portal

iDigBio search portal
https://www.idigbio.org/portal
GNU General Public License v3.0
6 stars 4 forks source link

interface missing descriptive text (hover bubble text) for some DQ flags #10

Open danstoner opened 6 years ago

danstoner commented 6 years ago

The flags listed in

https://github.com/iDigBio/idb-portal/blob/master/public/client/js/lib/dq_flags.js

should match what is documented in the backend wiki

https://github.com/iDigBio/idigbio-search-api/wiki/Data-Quality-Flags

which should match what is available in the backend / index.

danstoner commented 6 years ago

Flags currently assigned to records via

http://search.idigbio.org/v2/summary/top/records?top_fields=[%22flags%22]&count=1000

(sorted json thru tool at http://novicelab.org/jsonabc/)

{
    "flags": {
        "datecollected_bounds": {
            "itemCount": 91975
        },
        "dwc_acceptednameusageid_added": {
            "itemCount": 62245
        },
        "dwc_basisofrecord_invalid": {
            "itemCount": 632801
        },
        "dwc_basisofrecord_removed": {
            "itemCount": 534884
        },
        "dwc_class_added": {
            "itemCount": 38874787
        },
        "dwc_class_replaced": {
            "itemCount": 10912560
        },
        "dwc_continent_added": {
            "itemCount": 42717944
        },
        "dwc_continent_replaced": {
            "itemCount": 11885746
        },
        "dwc_country_added": {
            "itemCount": 49403
        },
        "dwc_country_replaced": {
            "itemCount": 12596704
        },
        "dwc_datasetid_added": {
            "itemCount": 81643690
        },
        "dwc_datasetid_replaced": {
            "itemCount": 8663517
        },
        "dwc_family_added": {
            "itemCount": 3367943
        },
        "dwc_family_replaced": {
            "itemCount": 9076044
        },
        "dwc_genus_added": {
            "itemCount": 1483983
        },
        "dwc_genus_replaced": {
            "itemCount": 4630120
        },
        "dwc_infraspecificepithet_added": {
            "itemCount": 1462376
        },
        "dwc_infraspecificepithet_replaced": {
            "itemCount": 163560
        },
        "dwc_kingdom_added": {
            "itemCount": 22042345
        },
        "dwc_kingdom_replaced": {
            "itemCount": 469256
        },
        "dwc_kingdom_suspect": {
            "itemCount": 863672
        },
        "dwc_multimedia_added": {
            "itemCount": 53309975
        },
        "dwc_order_added": {
            "itemCount": 29973132
        },
        "dwc_order_replaced": {
            "itemCount": 4686574
        },
        "dwc_originalnameusageid_added": {
            "itemCount": 25579403
        },
        "dwc_parentnameusageid_added": {
            "itemCount": 90307207
        },
        "dwc_phylum_added": {
            "itemCount": 34482694
        },
        "dwc_phylum_replaced": {
            "itemCount": 14336026
        },
        "dwc_scientificnameauthorship_added": {
            "itemCount": 34256710
        },
        "dwc_scientificnameauthorship_replaced": {
            "itemCount": 42316371
        },
        "dwc_specificepithet_added": {
            "itemCount": 6553474
        },
        "dwc_specificepithet_replaced": {
            "itemCount": 9177974
        },
        "dwc_stateprovince_replaced": {
            "itemCount": 1093524
        },
        "dwc_taxonid_added": {
            "itemCount": 78906800
        },
        "dwc_taxonid_replaced": {
            "itemCount": 11400407
        },
        "dwc_taxonomicstatus_added": {
            "itemCount": 89282406
        },
        "dwc_taxonomicstatus_replaced": {
            "itemCount": 1023782
        },
        "dwc_taxonrank_added": {
            "itemCount": 65759810
        },
        "dwc_taxonrank_invalid": {
            "itemCount": 36450
        },
        "dwc_taxonrank_removed": {
            "itemCount": 36450
        },
        "dwc_taxonrank_replaced": {
            "itemCount": 14804691
        },
        "dwc_taxonremarks_added": {
            "itemCount": 4172984
        },
        "dwc_taxonremarks_replaced": {
            "itemCount": 90076
        },
        "gbif_canonicalname_added": {
            "itemCount": 90307207
        },
        "gbif_genericname_added": {
            "itemCount": 90307207
        },
        "gbif_reference_added": {
            "itemCount": 70853487
        },
        "gbif_taxon_corrected": {
            "itemCount": 90307207
        },
        "gbif_vernacularname_added": {
            "itemCount": 59500192
        },
        "geopoint_0_coord": {
            "itemCount": 212754
        },
        "geopoint_bounds": {
            "itemCount": 63593
        },
        "geopoint_datum_error": {
            "itemCount": 7578337
        },
        "geopoint_datum_missing": {
            "itemCount": 35861954
        },
        "geopoint_low_precision": {
            "itemCount": 11663420
        },
        "geopoint_pre_flip": {
            "itemCount": 671
        },
        "geopoint_similar_coord": {
            "itemCount": 198993
        },
        "idigbio_isocountrycode_added": {
            "itemCount": 90567424
        },
        "rev_geocode_both_sign": {
            "itemCount": 2978
        },
        "rev_geocode_corrected": {
            "itemCount": 183487
        },
        "rev_geocode_eez": {
            "itemCount": 6729986
        },
        "rev_geocode_eez_corrected": {
            "itemCount": 29796
        },
        "rev_geocode_failure": {
            "itemCount": 488284
        },
        "rev_geocode_flip": {
            "itemCount": 3423
        },
        "rev_geocode_flip_both_sign": {
            "itemCount": 7215
        },
        "rev_geocode_flip_lat_sign": {
            "itemCount": 1353
        },
        "rev_geocode_flip_lon_sign": {
            "itemCount": 270
        },
        "rev_geocode_lat_sign": {
            "itemCount": 34109
        },
        "rev_geocode_lon_sign": {
            "itemCount": 134139
        },
        "rev_geocode_mismatch": {
            "itemCount": 818995
        },
        "scientificname_added": {
            "itemCount": 1512964
        },
        "taxon_match_failed": {
            "itemCount": 30191258
        }
    },
    "itemCount": 112017821
}
danstoner commented 6 years ago

Flags that are "live" in backend have now been added to doc (mostly not defined yet though).

https://github.com/iDigBio/idigbio-search-api/wiki/Data-Quality-Flags

danstoner commented 6 years ago

Flag descriptions added to codebase via commit b59716ea7a679b47c86f2afec02dc1399614c1c1

Ready to integrate.