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;
Log in to post a comment.