diff --git a/openlibrary/catalog/marc/parse.py b/openlibrary/catalog/marc/parse.py index 68c4c920191..3494bfdffec 100644 --- a/openlibrary/catalog/marc/parse.py +++ b/openlibrary/catalog/marc/parse.py @@ -281,9 +281,37 @@ def read_edition_name(rec: MarcBase) -> str: 'ent': 'eng', 'jap': 'jpn', 'fra': 'fre', - 'fr ': 'fre', 'fle': 'dut', # Flemish -> Dutch + # 2 character to 3 character codes + 'fr ': 'fre', 'it ': 'ita', + # LOC MARC Deprecated code updates + 'cam': 'khm', # Khmer + 'esp': 'epo', # Esperanto + 'eth': 'gez', # Ethiopic + 'far': 'fao', # Faroese + 'fri': 'fry', # Frisian + 'gae': 'gla', # Scottish Gaelic + 'gag': 'glg', # Galician + 'gal': 'orm', # Oromo + 'gua': 'grn', # Guarani + 'int': 'ina', # Interlingua (International Auxiliary Language Association) + 'iri': 'gle', # Irish + 'lan': 'oci', # Occitan (post 1500) + 'lap': 'smi', # Sami + 'mla': 'mlg', # Malagasy + 'mol': 'rum', # Romanian + 'sao': 'smo', # Samoan + 'scc': 'srp', # Serbian + 'scr': 'hrv', # Croatian + 'sho': 'sna', # Shona + 'snh': 'sin', # Sinhalese + 'sso': 'sot', # Sotho + 'swz': 'ssw', # Swazi + 'tag': 'tgi', # Tagalog + 'taj': 'tgk', # Tajik + 'tar': 'tat', # Tatar + 'tsw': 'tsn', # Tswana }