Problems in global search of Skosmos 3.3

13 views
Skip to first unread message

Anderson Soares Ferreira

unread,
Jun 26, 2026, 11:22:47 AMJun 26
to Skosmos Users
Hello,

I'm working on a Skosmos 3 installation for the Brazilian 
Agricultural Research Corporation and I'm facing some problems related to the global search component shown in top bar.
When an user type some letters in the search field nothing happens. If after typing the user clicks in the search field, the dropdown list appears, but clicking one of the listed concepts does not open the concept page, as it was expected.
Investigating the problem I notice that the browser's debugger shows the following error for every letter typed in the search field:

Uncaught (in promise) TypeError: can't access property "skos:Concept", window.SKOSMOS.types is undefined
    renderType http://gtermos/resource/js/global-search.js:184
    renderedType http://gtermos/resource/js/global-search.js:238
    VueJS 3
    renderResults http://gtermos/resource/js/global-search.js:238
    VueJS 3
    renderResults http://gtermos/resource/js/global-search.js:204
    search http://gtermos/resource/js/global-search.js:106
    promise callback*search http://gtermos/resource/js/global-search.js:102
    _timerId http://gtermos/resource/js/global-search.js:91
    setTimeout handler*autoComplete http://gtermos/resource/js/global-search.js:91
    VueJS 44

Interestingly, the error only occurs in the global search. Vocabulary search works as expected.
I observed the problem in Skosmos v3.3 and 3.4-dev, using our own container build and also using the container image available in quay.io.
Curiously, I haven't observer the problem when using the Skosmos demo (demo.skosmos.org) installation, what makes me think whether this problem is a bug in Skosmos or some kind of issue in our config.ttl.

Could this behavior be caused by a configuration issue or is this really an application bug?

Best regards,

Anderson


__________________________
Aviso de confidencialidade

Esta mensagem da Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), empresa publica federal  regida pelo disposto  na Lei Federal no. 5.851,  de 7 de dezembro de 1972,  e  enviada exclusivamente  a seu destinatario e pode conter informacoes  confidenciais, protegidas  por sigilo profissional.  Sua utilizacao desautorizada  e ilegal e  sujeita o infrator as penas da lei. Se voce  a recebeu indevidamente, queira, por gentileza, reenvia-la ao emitente, esclarecendo o equivoco.

Confidentiality note

This message from Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), a government company  established under  Brazilian law (5.851/72), is directed exclusively to  its addressee  and may contain confidential data,  protected under  professional secrecy  rules. Its unauthorized  use is illegal and  may subject the transgressor to the law's penalties. If you are not the addressee, please send it back, elucidating the failure.

Osma Suominen

unread,
Jul 27, 2026, 9:36:47 AM (5 days ago) Jul 27
to skosmo...@googlegroups.com
Hello Anderson,

thanks for your message and sorry for the belated response.

I think this looks like a bug. For some reason, the "types" fiels in the
SKOSMOS global object is not being properly initialized. Can you please
report this as a bug on GitHub?

Please include the snippet from the HTML source where the SKOSMOS object
is initialized. It looks something like this:

<script id="skosmos-global-vars">
window.SKOSMOS = {
"content_lang": "en",
"explicitLangCodes": false,
"lang": "en",
[...]
"pluginParameters": [],"baseHref":
"https://demo.skosmos.org/","types":
{"http://www.w3.org/2004/02/skos/core#Concept": "Concept"
},"contentLanguages": { "en": "English" }
}
</script>


Especially the "types" field near the end is the crucial part.

Best,
Osma
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com <mailto:skosmos-
> users+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/skosmos-
> users/75bcdf96-3cbb-4b5d-8018-57797b0fd4e5n%40googlegroups.com <https://
> groups.google.com/d/msgid/skosmos-
> users/75bcdf96-3cbb-4b5d-8018-57797b0fd4e5n%40googlegroups.com?
> utm_medium=email&utm_source=footer>.

--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 15 (Unioninkatu 36)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi

Reply all
Reply to author
Forward
0 new messages