Commit 3c5a268
committed
Normalize fulfillment links
Why these changes are being introduced:
Fulfillment link logic exists in three separate
places. This is not necessary, as UXWS would like
the link text to always be 'View full record.'
Relevant ticket(s):
- [USE-252](https://mitlibraries.atlassian.net/browse/USE-252)
How this addresses that need:
This simplifies fulfillment link logic and
normalizes the text as requested.
Side effects of this change:
The nested conditional logic in the Primo result
partial is starting to get some code smell.
I find it unlikely that we'll want to render all
of the links long-term, though, so I think we
can accept this for now with the understanding
that it can probably be simplified later.1 parent d38b405 commit 3c5a268
File tree
4 files changed
+6
-19
lines changed- app
- helpers
- views/search
- test/helpers
4 files changed
+6
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 29 | | |
41 | 30 | | |
42 | 31 | | |
| |||
0 commit comments