Skip to content

Get projects vocabularies from Annif API instead of project ids #25

@juhoinkinen

Description

@juhoinkinen

Currently the vocabulary that a project uses is determined from the project id (prefix):

// Assume vocabulary id is a prefix of project id
this.vocab_ids = [...new Set(this.projects.map(item => item.project_id.split("-")[0]))];

Now, since NatLibFi/Annif#839, it is possible to get that information from Annif API, and when Annif version with the updated API is deployed to Finto AI, the js-code should be updated to utilize this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions