fieldmuseum / EMu-Documentation

Field Museum documentation for EMu workflows, structural changes, and standardization.
14 stars 5 forks source link

etaxonomy: Clean up Taxon ID table, Filed As = No with empty row #865

Open magpiedin opened 1 year ago

magpiedin commented 1 year ago

TO DO: delete empty Taxon ID rows

Many Catalogue records include a 2nd row in the Taxon ‘Identification’ table, with no data apart from Filed As (IdeFiledAs_tab) = “No”

After live is updated with new dev, multiple rows in the Taxon ID table will cause an "id history" indicator-box to be checked. This is good for records that have multiple IDs, but not so good for records like irn 4425029.

How to find possibly-messy records

  1. Open the Catalogue module and find the "Filed As" (use File -> 'Find a Field' if needed)

  2. Search 'Filed As' = 'No'

    CatSearch_FiledAsNo
  3. Sort the results by 'Taxon' to clump the records with 'empty' Taxon id's

  4. Check the 'Identification' tab tables to see if there are indeed empty rows -- e.g.:

    Cat_MultiRows_But1ID

Note for Insects and IZ:

Please group problem-records until Sep 2023. Fixing them needs to wait until after the Sep 2023 EMu update, to address a bug in Catalogue logic related to the ID table rows.

How to fix - Individually

...e.g. if you see one while editing/searching:

  1. Right-click the row-number for the empty row, and select 'Delete'

  2. Save the record.

How to fix - In Batches (be careful)

If your batch contains ONLY records that have a 2nd (or multiple) empty rows with 'Filed As' = 'No':

  1. Run this global replace:

    • Field = 'Filed As'
    • Find = 'No'
    • Replace = [leave this blank]
    globalReplace_filedAs

    if needed - How to use the global replace tool