These scripts integrate the DFG classification from the TIB ontology into Dataverse as an external vocabulary according to the Dataverse Guidelines.
get_dfg_class.js: Displays entries from DFG classification in Topic Classification field once user has entered at least three characters.
get_dfg_class_with_suggestions.js: Displays entries from DFG classification in Topic Classification field once user has entered at least three characters. Additionally, a button is provided that, when clicked, suggests relevant DFG categories based on the description text.
cvocConf_dfg.json (Dataverse-Config-file. Integrates a Javascript file. Path to respective js file on server has to be set.)
Please note that when using the TIB Terminology API, you must include a custom HTTP header named 'caller' in every request. This header identifies your institution or organization when accessing the API. In these scripts, the caller header is commented out as shown in the example:
headers: {
"accept": "application/json",
//"caller": "DARUS"
}
Before using the scripts, uncomment the caller line and replace "DARUS" with the name of your own institution or organization.
To activate the feature use:
curl -X PUT --upload-file cvocConf_dfg.json http://localhost:8080/api/admin/settings/:CVocConf
If other CVOC functionalities are to be used, they would need to be integrated into the json file.