Skip to content

Global search not working correctly in Skosmos 3.3 #2036

Description

@asferreira

URL address of the page where you encountered the problem

https://agrotermos.dados.embrapa.br/busca/

Description of the problem

Different from what happens on the vocabulary search field, when an user type something on the global search field the dropdown list does not appear. If after typing the user clicks inside the search field, the dropdown
appears, but clicking one of the listed concepts does not open the concept page. Also the list seems to be formatted incorrectly.
It's worth mentioning that if user presses ENTER or clicks on the magnifier button, the search result page opens correctly.
I also noticed that errors are reported on the browser's debugger window while user is typing on the search field.

Additional information (e.g. screenshots) about the problem

  1. Error reported on the debugger window:
Uncaught (in promise) TypeError: can't access property "skos:Concept", window.SKOSMOS.types is undefined
    renderType https://agrotermos.dados.embrapa.br/busca/resource/js/global-search.js:184
    renderedType https://agrotermos.dados.embrapa.br/busca/resource/js/global-search.js:238
    VueJS 3
    renderResults https://agrotermos.dados.embrapa.br/busca/resource/js/global-search.js:238
    VueJS 3
    renderResults https://agrotermos.dados.embrapa.br/busca/resource/js/global-search.js:204
    search https://agrotermos.dados.embrapa.br/busca/resource/js/global-search.js:106
global-search.js:184:23
  1. Skosmos object snipped from the page source:
<script id="skosmos-global-vars">
window.SKOSMOS = {
  "content_lang": "",
  "explicitLangCodes": false,
  "lang": "pt-BR",
  "vocab": "",
  "pageType": "landing",
  "vocab_list": { "agrotermos": "agrotermos", "agrovoc": "agrovoc", "thesagro": "thesagro"  },
  "vocab_id": [ ],
  "waypoint_results": null,
  "search_count": null,
  "search_results_size": 20,
  "baseHref": "https://agrotermos.dados.embrapa.br/busca/","contentLanguages": { "es": "espanhol", "fr": "francês", "en": "inglês", "pt": "português", "pt-BR": "português (Brasil)" }
}
</script>

The browser you used when the problem appeared

Firefox 153.0
Google Chrome 150.0.7871.186

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions