diff --git a/config/vufind/config.ini b/config/vufind/config.ini index 176cea68a6c3a9895213466efe0507b274be1325..ff4d5b07bcd60227def4d54ff10699642199a41e 100644 --- a/config/vufind/config.ini +++ b/config/vufind/config.ini @@ -1424,6 +1424,10 @@ comments = enabled ; create. If you change this to a more restrictive option, it is your responsibility ; to update the user_list database table to update the status of existing lists. lists = enabled +; The following two settings are equivalent to default_limit / limit_options in +; searches.ini, but used to control the page sizes of lists of favorites: +lists_default_limit = 20 +;lists_limit_options = 10,20,40,60,80,100 ; Tags may be "enabled" or "disabled" (default = "enabled") ; When disabling tags, don't forget to also turn off tag search in searches.ini. tags = enabled diff --git a/module/VuFind/src/VuFind/Search/Favorites/Options.php b/module/VuFind/src/VuFind/Search/Favorites/Options.php index d6cbba63b5baff399f09c6a0fcf0637a8a053060..d27c90d608c3ff2757ef1284ffb6c7cf08753101 100644 --- a/module/VuFind/src/VuFind/Search/Favorites/Options.php +++ b/module/VuFind/src/VuFind/Search/Favorites/Options.php @@ -52,6 +52,13 @@ class Options extends \VuFind\Search\Base\Options 'title' => 'sort_title', 'author' => 'sort_author', 'year DESC' => 'sort_year', 'year' => 'sort_year asc' ]; + $config = $configLoader->get('config'); + if (isset($config->Social->lists_default_limit)) { + $this->defaultLimit = $config->Social->lists_default_limit; + } + if (isset($config->Social->lists_limit_options)) { + $this->limitOptions = explode(',', $config->Social->lists_limit_options); + } } /** diff --git a/themes/bootstrap3/templates/myresearch/mylist.phtml b/themes/bootstrap3/templates/myresearch/mylist.phtml index c508549a8cde990ef43383a78823f43dc7eb141d..d4266fddddc36948364235fdf1d39a6aab32e938 100644 --- a/themes/bootstrap3/templates/myresearch/mylist.phtml +++ b/themes/bootstrap3/templates/myresearch/mylist.phtml @@ -52,6 +52,7 @@ <? if ($recordTotal > 0): ?> <div class="resulthead"> <div class="pull-right flip"> + <?=$this->render('search/controls/limit.phtml')?> <?=$this->render('search/controls/sort.phtml')?> </div> </div>