roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

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

Open aaronskiba opened this issue 11 months ago • 0 comments

Fixes the "Create paginable/research_outputs_controller.rb TODO" in https://github.com/DMPRoadmap/roadmap/issues/3464

Changes proposed in this PR:

  • Add scope :search to ResearchOutput model: 8ecced57b5dda5e5b9341b14adf847ae3acaf870
    • Search query is performed by research_outputs.title (case-insensitive)
  • Create app/controllers/paginable/research_outputs_controller.rb 301231c6ed27d783122e007c1f14e3af89e18458
    • 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

aaronskiba avatar Feb 10 '25 21:02 aaronskiba