On Fri, 30 Mar 2012, Peter J. Halliday wrote:
> I'm using the /list pages as a search.  On arXiv, at
> http://www.arXiv.org/list/astro-ph.CO/new, you'll see something that
> we're incorporating into a search page.  However, the results look
> very different than the regular search page.  So, I'm trying to find
> out the best way to accomplish this.

One possibility, if you would like this to be rather decoupled from the
vanilla Invenio search facility, is to write a new /list URL handler,
i.e. introduce new module WebList (or simply a new function `list()' in
websearch_webinterface.py), write perform_request_list() that would
implement its business logic where you can place calls to
search_pattern() and other search functions in order to generate list of
records satisfying given user request, and for these record IDs you
would then generate HTML output for the given user via weblist_templates
using print_record() with a customised output format.  In this way you
will be able to also respect your special paging (`skip=0&show=100') and
stuff.

Best regards
-- 
Tibor Simko

Reply via email to