Skip to content

Search in vocabulary misses query parameter "voc" #764

@nichtich

Description

@nichtich

Searching in Iconclass, e.g. at https://coli-conc.gbv.de/cocoda/ts4nfdi/?fromScheme=http%3A%2F%2Fbartoc.org%2Fen%2Fnode%2F459 e.g. for "soldier" results in a query to DANTE API like this (irrelvant query parameters removed here):

https://api.dante.gbv.de/suggest?type=http://uri.gbv.de/terminology/record_type/fcee78f8-aa5a-4706-a74e-ba2718d696a7%7Chttp://uri.gbv.de/terminology/record_type/9deaadf7-3ceb-4b36-9d20-9ed7166203b6%7Chttp://uri.gbv.de/terminology/record_type/66ca3be7-cc62-4080-81f4-d80fa5b0ce73%7Chttp://uri.gbv.de/terminology/record_type/1132370d-fc56-4729-8002-86316448400f%7Chttp://uri.gbv.de/terminology/record_type/8e188272-0607-4a65-bbeb-08d9c19064d0%7Chttp://uri.gbv.de/terminology/record_type/d933ff5b-7b58-45aa-a1c5-9b82c7002631&search=soldier&query=soldier

This misses query parameter "voc" to restrict search to a vocabulary (here: Iconclass with URI http://bartoc.org/en/node/459). Result is zero because Iconclass is not managed in DANTE although listed in BARTOC contrary.

The bug may origin from doing a search in a vocabulary with wrongly configured API (Iconclass is not in DANTE) but it should give zero results instead of arbitrary results from other vocabularies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions