VuFind

Better paging mechanism in mobile interface.

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: Wishlist
  • Component/s: Mobile Interface
  • Labels:
    None

Description

The current paging display doesn't look very good in the mobile interface (links to small to use practically). We should re-style or replace this with something friendlier.

Activity

Hide
Eoghan Ó Carragáin added a comment -
We could override some of the pager options in Results.php. E.g.:
            // if mobile theme, display fewer page links
            if ($_COOKIE['ui'] == 'mobile') {
                $deltaVal = 0;
            } else {
             $deltaVal = 5;
            }
            $options = array('totalItems' => $summary['resultTotal'],
                             'fileName' => $link,
                             'delta' => $deltaVal,
                             'perPage' => $summary['perPage']);
            $pager = new VuFindPager($options);

This give a centred pager with a simple [jump to start] [Prev] [Current Page] [Next][jump to end] layout. Some css to increase the font size might help too.
Show
Eoghan Ó Carragáin added a comment - We could override some of the pager options in Results.php. E.g.:             // if mobile theme, display fewer page links             if ($_COOKIE['ui'] == 'mobile') {                 $deltaVal = 0;             } else {              $deltaVal = 5;             }             $options = array('totalItems' => $summary['resultTotal'],                              'fileName' => $link,                              'delta' => $deltaVal,                              'perPage' => $summary['perPage']);             $pager = new VuFindPager($options); This give a centred pager with a simple [jump to start] [Prev] [Current Page] [Next][jump to end] layout. Some css to increase the font size might help too.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: