It sounds like the ajax for loading Pazpar2 results needs to refresh the results with each check. Either that or just not display any results until the 'finished' signal is returned.

On Mon, Oct 14, 2013 at 1:41 AM, David Maus <> wrote:
At Fri, 11 Oct 2013 21:58:00 +0000,
Demian Katz wrote:
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; iso-8859-1 (quoted-printable)>]
> [1.2  <text/html; iso-8859-1 (quoted-printable)>]
> We don't have sorting implemented, but you should be getting more than 20 results. It's possible there is a timing issue involved -- Pazpar2 works in a strange way: you start the search with one API request,
> then get the results with a second API request. If you make the second request before the Pazpar2 server has finished collecting all of its data, you may not get the full result set. I've considered adding a
> configuration parameter to put a sleep in between the calls to prevent that from happening... but not sure if there's a better solution.

At the conceptual level one difference between Pazpar2 and all the
other backends is, that Pazpar2 is stateful. Thus it's not a timing
issue but a fundamentally different search model (stateful
vs. stateless).

If we follow the Pazpar2 protocol [PAZPAR2] we have to initiate a
search, read the search session identifier from the response and issue
`stat' [PAZPAR2] until the search is finished -or- a configurable
maximum wait time was reached.

  -- David


> - Demian
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> From: Jay Roos []
> Sent: Friday, October 11, 2013 4:12 PM
> To:
> Subject: [VuFind-General] Pazpar2 Integration results question
> I have a basic Pazpar2 setup working with VuFind. Now the questions begin.
> It seems like I can ever only get 20 results. There is no paging or sorting so if what you want is not in the first 20 you won't find it. Am I missing something or is this just part of only having the most
> basic implementation so far?
> [2  <text/plain; us-ascii (7bit)>]
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> [3  <text/plain; us-ascii (7bit)>]
> _______________________________________________
> VuFind-General mailing list
David Maus
Herzog August Bibliothek - D-38299 Wolfenbuettel
Phone: +49-5331-808-317

Digital Humanities Research Collaboration

PGP Key 0x0CC2E093512F7385
Fingerprint 1AD2 EE67 224F 18C5 EA55  98AD 0CC2 E093 512F 7385