dspace-angular
dspace-angular copied to clipboard
Disabled vocabularies should not appear as sidebar facets
Describe the bug When a subject vocabulary is disabled, it still gets a "Browse subject tree" link in the sidebar subject facet.
To Reproduce Steps to reproduce the behavior:
- Configure your repository to disable the default srsc vocabulary with the following setting:
webui.browse.vocabularies.disabled = srsc - keep the default
enabled: falsevalue here: https://github.com/DSpace/dspace-angular/blob/bfeeeac96f52b6eddab360778a5f22e84693db70/src/config/default-app-config.ts#L485 - (Re)deploy your DSpace
- Observe that the Browse By Subject Category no longer appears in the top navigation dropdown
- Complete a search and open the "Subject" facet
- Observe that there is still a "Browse subject tree" link, which when clicked will open a modal using the disabled vocabulary
Expected behavior When a vocabulary is disabled, there should not be a link to use it as a search facet. If no vocabularies are enabled, there should be no "Browse subject tree" link at all.
Related work Original PR for the feature: #1988
A couple of screenshots documenting the issue: