Commit 82f441c
committed
Show Primo continuation partial only beyond page 1
Why these changes are being introduced:
A condition in the `load_primo_results` method in the Search Controller
renders the Primo continuation partial if results are empty. This is
necessary because of erratic behavior by the Primo search API, but it is
problematic because the condition also triggers if the search returns no
results.
Relevant ticket(s):
- [USE-152](https://mitlibraries.atlassian.net/browse/USE-152)
How this addresses that need:
This updates the problematic branch of the conditional so it also checks
if the current page is 2 or higher before rendering the Primo
continuation partial.
Side effects of this change:
None.1 parent 17e522b commit 82f441c
File tree
2 files changed
+43
-1
lines changed- app/controllers
- test/controllers
2 files changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
678 | 719 | | |
0 commit comments