|
title: "", |
|
description: "" |
the first field in this form should be Ontology uri and it should display the http://uri.interlex.org/{group}/ontologies/uris/ prefix as immutable context and the user typing adds after that.
currently posts to title + random suffix
|
const ontologyName = newOntology?.title.replace(/\s+/g, '_') + "_" + Math.random().toString(36).substring(2, 10); |
so the new field would populate that value directly instead of need a mangle
for reference the api call is
|
const endpoint = `/${groupname}/ontologies/uris/${ontologyName}/spec`; |
interlex/src/components/SingleOrganization/AddNewOntologyDialog.jsx
Lines 35 to 36 in 54e35e4
the first field in this form should be
Ontology uriand it should display thehttp://uri.interlex.org/{group}/ontologies/uris/prefix as immutable context and the user typing adds after that.currently posts to title + random suffix
interlex/src/components/SingleOrganization/AddNewOntologyDialog.jsx
Line 75 in 54e35e4
for reference the api call is
interlex/src/api/endpoints/apiService.ts
Line 154 in 54e35e4