Opened 5 years ago

Last modified 23 months ago

#2434 addressed enhancement

create taxonomy common name language table

Reported by: Melanie Schori Owned by: Benjamin Haag
Priority: medium Milestone:
Component: Database, Schema Changes Version: N/A
Severity: Keywords:
Cc: kurt.endress@…, karen.kittell@…, melanie.schori@… Database Engine: N/A
Operating System: N/A

Description

Please create a table to store the 200+ common name languages used in the taxonomy_common_name table. They are currently stored in the language_description field.

The fields should be as follows:
ID
Language
Language_transcription (not a required field, parallel to alternate transcription from common name table)
Country (fkey from geography table, not required)
Note

The table may also need a simplified name field to strip out diacritic marks from the language.

The lookup for this table will need to combine the language and country (if one is entered) because languages spoken in many countries (Spanish, French, etc.) often have very different common names depending on country. If it makes more sense to add country as a fkey field in the common name table itself, please do that instead.

Attachments (1)

Trac_2434.sql​ (112.6 KB ) - added by Benjamin Haag 4 years ago.
SQL used to create new table, insert data, and update existing table.

Download all attachments as: .zip

Change History (10)

comment:1 by Benjamin Haag, 5 years ago

1) Created table on DEV.
2) Populated with distinct language names from taxonomy_common_name.
3) Created taxonomy_common_name_language_lookup dataview.

comment:2 by Benjamin Haag, 5 years ago

Status: assigned → addressed

comment:3 by Benjamin Haag, 5 years ago

On DEV:
1) Created the dataviews:

1.1) get_taxonomy_common_name_language
1.2) taxonomy_common_name_language_lookup

by Benjamin Haag, 4 years ago

Attachment: Trac_2434.sql​ added

SQL used to create new table, insert data, and update existing table.

comment:4 by Benjamin Haag, 4 years ago

Summary of dataview changes ready for review on DEV:
1) taxonomy_common_name_lookup
2) taxonomy_common_name_language_lookup
3) get_taxonomy_common_name
4) get_taxonomy_common_name_language

comment:5 by Benjamin Haag, 4 years ago

Web dataviews to be changed -- Kay, please confirm that all are currently in use, and that there are no additional dataview or codebase changes needed.
1) web_taxonomyspecies_commonnames
2) web_taxonomyspecies_commonnames_2
3) web_taxonomyspecies_commonnames_multiple_2

comment:6 by Benjamin Haag, 4 years ago

Cc: melanie.schori@… added

comment:7 by Kay Kittell, 4 years ago

Code change will likely be needed to display on the PW. A separate ticket will be needed.

comment:8 by Benjamin Haag, 3 years ago

On PROD:
1) Created taxonomy_common_name_language table.

1.1) Populated with data exported from taxonomy_common_name.

2) Modified taxonomy_common_name table, adding FK to taxonomy_common_name_language.

2.1) Updated new column based on data in taxonomy_common_name_language.

NOTE: In get_taxonomy_common_name, retained the existing language-related fields for reference; all are now read-only. Will remove fields once data reviewed -- or, immediately if desired.

  • language_name
  • language_simplified_name
  • language_transcription


comment:9 by Benjamin Haag, 23 months ago

Common Name DV currently not linked to lang. lookup.

Note: See TracTickets for help on using tickets.