#454: WebSearch: introduce next-hit/previous-hit/back-to-search links on 
detailed
record pages
-------------------------+--------------------------------------------------
 Reporter:  simko        |       Owner:  rajimene
     Type:  enhancement  |      Status:  new     
 Priority:  major        |   Milestone:          
Component:  WebSearch    |     Version:          
 Keywords:               |  
-------------------------+--------------------------------------------------
 It would be useful to "remember" the last query a user did in order to
 be able to quickly flip between detailed record pages.  Say a user
 launches a search, gets 17 results, views the 2nd hit, and sees some
 nice //Next result// and //Previous result// arrows on the Detailed
 record page of the 2nd hit in order to jump quickly to the 1st and 3rd
 hit.  Also, a //Back to search// button would be useful to see there,
 so that after much flipping back and forth, the user can go back to
 the last search results page.  (And perhaps save this search into an
 alert etc.)

 UI-wise, the next-hit/previous-hit/back-to-search links could be
 simply offered as greenish "service" links, like the other //Similar
 records// are.  But we can also experiment with having nice images, or
 with offering not only next/previous but also first/last links, etc.

 Implementation-wise, the last query could be remembered in a new
 session parameter or two, say `websearch-last-query` and
 `websearch-last-query-hits`.  Firstly, a call to `session_param_set()`
 should be plugged in search engine's `perform_request_search()`
 e.g. near query logging that will remember the last query and the hits
 found as the above-mentioned session parameter(s).  Secondly, the
 display of the next-hit/previous-hit/back-to-search links on the
 detailed record pages can be done as a new WebSearch template function
 say `tmpl_display_back_to_search()` that will be living independently
 of the BibFormat framework, quite like the other "service" green links
 are, and will be simply plugged into search engine's `print_record()`
 when the desired output format is HTML Detailed.

-- 
Ticket URL: <http://invenio-software.org/ticket/454>
Invenio <http://invenio-software.org>

Reply via email to