Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#17 searchResultsPerPage does not persist in session

v1.1.1
open
nobody
3
2011-10-17
2011-10-17
eggwhites
No

When the searchResultsPerPage setting in gpt.xml is set to a number other than 10, the search results on the Geoportal search page displays up to that number of results per page. However, if a user clicks "Clear", or lets the session wait for fifteen or so minutes, the next time they search the number of results shown per page will be 10.

Desired behavior is that the searchResultsPerPage setting is persisted throughout the session, regardless of session length or clicking 'clear'.

Workaround: in criteria.jsp, remove the parseInt and change to number, as shown below. Save the file and restart geoportal web application.

From this -> var intMaxResultsPerPage = parseInt(scMaxResultsPerPage);
To this -> var intMaxResultsPerPage = 20;

Discussion