Commit 338191d
* TUL/fix: make Subject a plain facet to stop vocabulary=undefined 400s (#781)
dc.subject at TUL is free-text keywords, not a controlled hierarchy. The
searchFilterSubject facet was HierarchicalSidebarFacetConfiguration, which
makes the Angular UI (SearchHierarchyFilterComponent) probe
/submission/vocabularyEntryDetails/search/top with vocabulary=undefined on
every search-page render (getVocabularyEntry() returns undefined because no
srsc vocabulary is enabled), producing an HTTP 400 each time.
Switch searchFilterSubject to a plain DiscoverySearchFilterFacet and drop the
hierarchical '::' splitter. The facet renders as a normal text facet and no
longer triggers the vocabulary tree probe.
Note: run `dspace index-discovery -b` after deploy; this changes how
dc.subject is indexed for faceting.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* TUL/test: expect Subject facet as text (not hierarchical) after facet change
The Subject facet was switched from HierarchicalSidebarFacetConfiguration to a
plain DiscoverySearchFilterFacet, so the REST API now reports facetType/type
"text" for subject (same as author). Update the shared matchers accordingly:
- FacetEntryMatcher.subjectFacet: facetType "hierarchical" -> "text"
- SearchFilterMatcher.subjectFilter: type "hierarchical" -> "text"
Fixes the 28 DiscoveryRestControllerIT (and ClarinDiscoveryRestControllerIT)
assertions that go through these matchers.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: milanmajchrak <minptai7@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0446ae5 commit 338191d
3 files changed
Lines changed: 7 additions & 5 deletions
File tree
- dspace-server-webapp/src/test/java/org/dspace/app/rest/matcher
- dspace/config/spring/api
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2444 | 2444 | | |
2445 | 2445 | | |
2446 | 2446 | | |
2447 | | - | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
2448 | 2452 | | |
2449 | 2453 | | |
2450 | 2454 | | |
| |||
2454 | 2458 | | |
2455 | 2459 | | |
2456 | 2460 | | |
2457 | | - | |
2458 | | - | |
2459 | 2461 | | |
2460 | 2462 | | |
2461 | 2463 | | |
| |||
0 commit comments