SpeciesFileGroup / taxonworks

Workbench for biodiversity informatics.
http://taxonworks.org
Other
85 stars 25 forks source link

Handling Municipality with DWC Import in TaxonWorks #1918

Open brennaldecker opened 3 years ago

brennaldecker commented 3 years ago

Describe Issue

In DWC field, municipality is an accepted field, but TaxonWorks does not have this component.

~ How should we handle municipalities? Should they:

  1. Be included in the locality field?
  2. Have a separate field built into TaxonWorks that matches DWC terms?
    • This will help in creating a completed Collection Event (see screenshot below in Expected behavior)

To Reproduce Steps to reproduce the behavior:

  1. When I fill out the datasheet, I separate the municipality (Bishop Hills) from locality (Bluff on W Amarillo Creek)

    Screen Shot 2020-12-02 at 9 55 42 AM
  2. Then I upload using DWC-A Importer on Sandworm (INHS DWC Testing)

  3. And I make sure it uploaded properly, and go to one of the records, click the stacked icon in the top right corner to get to the Comprehensive specimen digitization page, and check both the locality and verbatim Label fields...

  4. See error

Screen Shot 2020-12-02 at 9 56 02 AM

Expected behavior

  1. The verbatim Label should have the information from the DWC verbatimLabel field, but that does not get populated.

  2. In the Collecting Event field, it does not include the municipality, even though it is part of the verbatimLabel DWC field.

    Screen Shot 2020-12-02 at 10 09 50 AM
  3. It would be great to see municipality as a separate field that is different from a specific locality. This may be important for biogeography analysis or understanding the distribution of sampling effort within a state/province.

Environment (please identify where you experience this bug:

mjy commented 3 years ago

Thanks very much for the testing @brennaldecker.

Question. Is municipality a DwC Field? (Ping @debpaul )

brennaldecker commented 3 years ago

@mjy Yes, municipalities is a DWC field = municipality (http://rs.tdwg.org/dwc/terms/municipality)

mjy commented 3 years ago

@LocoDelAssembly We'll need to map it to custom data attribute with the municipality IRI as discussed in the meeting this morning. Likely create or match on demand?

mjy commented 3 years ago

@brennaldecker steps to capture (will export with new export coming)

At this point you will see a Municipality field in Custom attributes sections

mjy commented 2 years ago

@debpaul I believe we can close this thanks to your work with Jared and Hernán?

LocoDelAssembly commented 2 years ago

Currently it works as data attribute, no special handling, just the default behavior of the importer checking if there is a DwC term enabled in the project as data attribute for CO and/or CE matching the one in the dataset. No native import is performed, and I think municipality is not exported either (although the field itself does exist in dwc_occurrences table).