Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C catalog.genesys-pgr.org
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGR
  • Genesys Catalog
  • catalog.genesys-pgr.org
  • Issues
  • #322

Closed
Open
Created Jun 25, 2018 by Matija Obreza@mobrezaOwner

Vocabulary term selector

Implement a new React component to select vocabulary term using autocomplete. The component should display 10 initial values and then use autocomplete.

  1. The vocabulary is determined by its UUID.
  2. The field value returned is the term code.
<VocabularyTermPicker uuid="21b10067-ba15-44dd-867f-6a18a117fee8" value={ dataset.language } />

API endpoints

Existing API endpoints provide required data:

  • GET /api/v0/vocabulary/{UUID}
  • POST /api/v0/vocabulary/{UUID}/autocomplete
  • POST /api/v0/vocabulary/{UUID}/terms
  • GET /api/v0/vocabulary/{UUID}/{code}

See https://api.catalog.demo.genesys-pgr.org/swagger-ui.html#/vocabulary45controller for details.

Application

Apply the new component to select Dataset#language:

Dataset language should include Spanish (and other languages). Best to use the ISO Language codes Controlled vocabulary at https://catalog.demo.genesys-pgr.org/vocabulary/21b10067-ba15-44dd-867f-6a18a117fee8. The vocabulary has 8036 terms, autocomplete is required.

Edited Jun 25, 2018 by Matija Obreza
Assignee
Assign to
Time tracking