Homec4science

WebSearch: always return full recID list via API

Authored by Tibor Simko <tibor.simko@cern.ch> on Aug 8 2012, 15:04.

Description

WebSearch: always return full recID list via API

  • Fixes API calls (of=id) when the search engine should always return the full hit list of record IDs. That is, the pagination arguments (rg, jrec) are ignored in this case, while sorting arguments (rm, sf) are respected.

    This used to be the long-standing behaviour of Invenio that was altered few months ago in the master branch as per the introduction of BibSort in 64fc501bfd4ed9b0f7b1762cc89c2c8389f5eb15. So this commit reverts back to the original behaviour as is present e.g. in the maint-1.0 branch.

    Note that this fixes one failed WebSearch regression test case.
  • Adds more test cases and documentation to better cover this special paging behaviour in case of API output.
  • Note: in the future we may want to alter the paging behaviour again, as part of introducing generators for Ajax like search engine calls, as part of the Flask branch.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Aug 8 2012, 15:36
Parents
R3600:03997cac46d1: Merge branch 'maint-1.0' into bbb
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:37a286587653: WebSearch: always return full recID list via API (authored by Tibor Simko <tibor.simko@cern.ch>).Aug 8 2012, 15:36