OmekaS
To edit the ValueSuggest module for Omeka-S to index your thesaurus handle by Opentheso
- Install the ValuSuggest module
- Go to the folder (homeOmekaS/modules/ValueSuggest/src/Suggester/Pactols)
- Edit the file (PactolsAll.php), and adapt the information about you thesaurus:
$lang = $lang ?: ‘fr‘;
$params = [‘q’ => $query, ‘lang’ => $lang, ‘theso’ => ‘th267’, ‘format’ => ‘jsonld’];
$response = $this->client
->setUri(‘https://opentheso.huma-num.fr/opentheso/api/search’)
->setParameterGet($params)
->send();
if (!$response->isSuccess()) {
return [];
}
- Get back in OmekaS and activate the ValueSuggest module
- Add (Resource templates)

- Edit the data type for this field (Subject) and choose (PactolsAll)

- Add an item, choose the template (Sujets)

- Into the field (Subject), enter some letters, the autocompletion will activate to propose you corresponding terms

- !!!! Whatch out !!!!! to make it works on an Opentheso serveur with the https protocole, OmekaS must be installed with https protocole too
OpenEdition vous propose de citer ce billet de la manière suivante :
Alyssa Turgis (12 avril 2022). OmekaS. Opentheso. Consulté le 6 décembre 2025 à l’adresse https://doi.org/10.58079/sjk2

