gwu-libraries / obento

Bento Box style search results page
MIT License
8 stars 1 forks source link

count parameter is handled incorrectly by databases and journals #361

Closed kerchner closed 8 years ago

kerchner commented 8 years ago

For articles, books/media, research guides, and the libsite, the optional "count" parameter determines the number of results displayed per box, instead of DEFAULT_HIT_COUNT (typically/currently set to 3).

Databases and journals handle this incorrectly. The html hard-codes this value for 3, while the data passed to the template is truncated at the count value if it's passed in the request (otherwise not truncated). This creates a mismatch between the value displayed in "See all {n} results" versus the number of results the list can be expanded to using the "Next 5" link.

Fix this so that the "count" parameter (set to DEFAULT_HIT_COUNT if not in the request) results in the first "count" results shown in expanded form when the page is first displayed, but the entire list is still available via the Next 5 link.