Commit 997ab5b
committed
Updates logic to filter highlights
Why are these changes being introduced:
* Showing highlights for fields that are already displayed in the main
result view is redundant and clutters the interface.
* We updated the displayed fields, but did not update the highlight
filtering logic to match.
Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/USE-300
How does this address that need:
* Updates the list of displayed fields used to filter highlights
to match the current set of displayed fields.
* Updates tests to match the new logic.
Document any side effects to this change:
* We are filtering out `citation` even thought we don't display it for
timdex results. This is intentional as citation data is often
redundant with other displayed fields like title and contributors.1 parent 104c809 commit 997ab5b
3 files changed
Lines changed: 10 additions & 8 deletions
File tree
- app/helpers
- test
- controllers
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments