Skip to content

Fix Paginating, Sorting, and Searching Issues Within "Research Outputs" Tab #3477

Open
aaronskiba wants to merge 3 commits intoDMPRoadmap:developmentfrom
portagenetwork:aaron/upstream/issues/3464
Open

Fix Paginating, Sorting, and Searching Issues Within "Research Outputs" Tab #3477
aaronskiba wants to merge 3 commits intoDMPRoadmap:developmentfrom
portagenetwork:aaron/upstream/issues/3464

Conversation

@aaronskiba
Copy link
Contributor

Fixes the "Create paginable/research_outputs_controller.rb TODO" in #3464

Changes proposed in this PR:

  • Add scope :search to ResearchOutput model: 8ecced5
    • Search query is performed by research_outputs.title (case-insensitive)
  • Create app/controllers/paginable/research_outputs_controller.rb 301231c
    • This new controller fixes the following features on the /plans/:plan_id/research_outputs page:
      • The clickable pagination options (e.g. View all,1,2,Next,Last)
      • The search box (for research_outputs.title matches)
      • The clickable sorting arrows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant