WebSearch: better retrieval of detailed record tabs

 * When retrieving the tabs for the detaild record pages,
   use the guess_collection_of_a_record() function that
   also takes into account the referer.

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Merge pull request #7 from ludmilamarian/master-websearch-record-tabs

WebSearch: better retrieval of detailed record tabs