Medical ontology

main
Bob Mottram 2021-08-08 19:25:05 +01:00
parent 62dc1aace7
commit 5d54f41533
4 changed files with 2117 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,7 +44,7 @@ from content import getPriceFromString
def _dfcProductTypes() -> []:
# this list should match the ontology json files
# eg. ontology/foodTypes.json
return ['food', 'tool', 'clothes']
return ['food', 'tool', 'clothes', 'medical']
def _loadDfcIds(baseDir: str, systemLanguage: str,

View File

@ -5190,7 +5190,7 @@ def _testGetPriceFromString() -> None:
def _translateOntology() -> None:
ontologyTypes = ('food', 'clothes', 'tool')
ontologyTypes = ('food', 'clothes', 'tool', 'medical')
url = 'https://translate.astian.org'
apiKey = None
ltLangList = libretranslateLanguages(url, apiKey)

View File

@ -363,7 +363,7 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
extraFields += '<br>' + \
editTextField(translate['Type of shared item. eg. hat'] + ':',
'itemType', '', '', True)
categoryTypes = ("food", "clothes", "tool")
categoryTypes = ("food", "clothes", "tool", "medical")
catStr = translate['Category of shared item. eg. clothing']
extraFields += '<label class="labels">' + catStr + '</label><br>\n'