Controlled vocabulary for careers

29 views
Skip to first unread message

Emilia Lobo

unread,
Aug 2, 2024, 2:54:59 PM8/2/24
to DSpace Developers
Good afternoon, could you help me with this situation?
In the three images that I uploaded to this query, you can see that I created a controlled vocabulary for the "careers" metadata through the xml that I attached.
What I was able to prove is that the "Search" button does not work correctly (that is, it does not filter correctly). The images show that I am looking for all the courses that contain the word "diplomatura" and it only brings up one record when there are many more. .. The other two buttons "Reset" and "Add" do nothing. Where can I review the code for these buttons to correct them or see their functionality?
Captura de pantalla de 2024-08-02 15-35-37 - 1.png
Captura de pantalla de 2024-08-02 15-43-36.png
Captura de pantalla de 2024-08-02 15-43-58.png
Thanks,
Emilia.-
carreras.xml

DSpace Developers

unread,
Aug 5, 2024, 4:17:47 PM8/5/24
to DSpace Developers
Hi Emilia,

Because the user interface runs in your browser, then information you are searching for can be found in your browser.

To see what is happening when you click a button:
* Open your browser's DevTools & go to the "Network" tab
* Login , go to that page.
* Enter text and click the button.  On that "Network" tab in your DevTools you will see the REST API call(s) that are made when you click that button.  You can click on those calls to see all the details that the UI sent to the REST API and how it responded.

To find the code behind the button:
* Right click on the button & select "Inspect" in your browser.  This will bring you to the HTML code for that button
* In the parent HTML code, look for the *first* parent tag that stars with "ds-*", in this case it should be "ds-vocabulary-treeview"
* Search for "ds-vocabulary-treeview" (as a "selector") in the dspace-angular codebase.  You'll find it in "vocabulary-treeview.component.ts"
* This means that the code behind that button is in that "vocabulary-treeview" component...specifically the "html" file and "ts" (typescript) file for that component.

Hopefully that helps give you some hints on how to debug this code!

Tim

Reply all
Reply to author
Forward
0 new messages