I recently tried out version 7.x-1.0-beta10 on my development site to test an upgrade from the beta8. I noticed that some of the options including the "results per page" option were moved to the settings for each individual search page. While that increases some flexibility, other flexibility was removed. Specifically, the "results per page" option has changed from a text field to a drop down menu with multiples of 10. My layout requires multiples of three (I have a grid of images, not a list) and 30 is too many. I had it set to 18 before. Please consider restoring some flexibility here. I won't be pushing the newer version out to my live site because of this issue.

CommentFileSizeAuthor
#4 1333904.patch1.75 KBnick_vh

Comments

nick_vh’s picture

An easy hook_form_alter will save you here? I'm convinced this is a module of maximum 10 lines maybe?

nick_vh’s picture

Is this fixed for you?

vrc3’s picture

Sure I could do that. But I don't understand why the flexibility was removed from the module. Makes very little sense. I doubt I'm the only user of this module who needs it.

nick_vh’s picture

StatusFileSize
new1.75 KB

In attached patch I restored the text input of search results amount. Does this work for you?

nick_vh’s picture

Status: Active » Needs review
nick_vh’s picture

Status: Needs review » Fixed

This actually does make sense. Committing at once since it does not have a regression or update path necessary

vrc3’s picture

Thanks for committing this change!

I'm testing out beta11 now. I actually found that it gave me 10 results per page no matter what I did. I dug into the code and found a typo. In the function apachesolr_search_search_results, $param['rows'] should be $params['rows']. Since it's a once character error, I thought it would be faster to just describe the typo rather than build a patch. Let me know if you need me to submit a patch...

nick_vh’s picture

Thanks for that, committed it in a follow-up :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.