From: Sebastian Hammer Date: Thu, 4 Jan 2007 22:03:56 +0000 (+0000) Subject: Next-previous links used different page size than retrieval. Introduced setting variable. X-Git-Tag: before.append.child~36 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=723b0382c06b5ff2bf6d4ecc8a59bd4c29ed7da0;p=pazpar2-moved-to-github.git Next-previous links used different page size than retrieval. Introduced setting variable. --- diff --git a/www/test1/search.js b/www/test1/search.js index c3658fc..6c605a1 100644 --- a/www/test1/search.js +++ b/www/test1/search.js @@ -1,4 +1,4 @@ -/* $Id: search.js,v 1.6 2007-01-04 20:00:58 quinn Exp $ +/* $Id: search.js,v 1.7 2007-01-04 22:03:56 quinn Exp $ * --------------------------------------------------- * Javascript container */ @@ -20,6 +20,7 @@ var stattimer; var session_cells = Array('query', 'startrec', 'action_type'); var old_session = session_read(); var url_surveillence; +var recstoshow = 15; function initialize () @@ -169,13 +170,13 @@ function show_records() if (start + num < merged) body.innerHTML += ' Next'; if (start > 0) body.innerHTML += ' Previous'; @@ -208,7 +209,7 @@ function check_search() var url = "search.pz2?" + "command=show" + "&start=" + document.search.startrec.value + - "&num=15" + + "&num=" + recstoshow + "&session=" + session + "&block=1"; xshow = GetXmlHttpObject();