WebSearch: new Add-to-Search Interface

* New search box interface that contains both simple search
  and advanced search (javascript dependent) (addresses #622).

* Replaces the 3-line advanced search, with only 1-line add-to-search,
  with the possibility of adding patterns to the current search pattern.

* Ammends regression tests to take into account a third search
  interface.

* Moves the config variables CFG_WEBSEARCH_ENABLED_SEARCH_INTERFACES and
  CFG_WEBSEARCH_DEFAULT_SEARCH_INTERFACES from the inveniocfg.py to
  invenio.config (closes #271)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
WebSubmit: new output of link to successfully created record

* Shows link to new record if possible. (closes #1641)

Signed-off-by: Patrick Glauner <patrick.oliver.glauner@cern.ch>
WebSearch: fix for snippet highlighting

* Highlights terms that are only searched in fulltext.

Signed-off-by: Patrick Glauner <patrick.oliver.glauner@cern.ch>
Merge pull request #3 from egabancho/1641-websubmit-link-record-success

WebSubmit: new output of link to successfully created record
WebColl: fix for "--language" option

* Fixes cache re-creation for a subset of all available
  languages.  (closes #1399)
Merge pull request #4 from egabancho/websearch-fix-snippet

WebSearch: fix for snippet highlighting
Merge pull request #5 from egabancho/1399-webcoll-fix-lang-option

WebColl: fix for "--language" option
Websubmit: Fix for Link_Records.py

* Fixes the bug in str.join(recids) in get_recid_and_reportnumber function
  (recids should be converted to strings before calling join function)

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Merge pull request #6 from switowski/Link_Records_fix

Websubmit: Fix for Link_Records.py
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
WebNews: New module to display and manage news

* The WebNews module that will be responsible for presenting the site's news
  to the users and keeping a history of them.

* This first release includes the tooltip functionality and the database
  structure.

  (addresses #1288)
Merge pull request #8 from kasioumis/master-webnews

WebNews: New module to display and manage news
WebSubmit: grant access to the superadmin as owner

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Merge pull request #9 from ludmilamarian/master-websubmit-admin-is-owner

WebSubmit: grant access to the superadmin as owner
WebSubmit: support for elements' custom_level

* Adds support for optionally setting a custom_level ('M' for mandatory or
  'O' for optional) for each element through the element description,
  overriding the default level. Useful for dynamically produced elements.

  Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
WebSubmit: print white space instead of None

* Avoids printing "None" (by passing None to string formatting).
  Instead, print a single white space.

  Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
WebSubmit: more robust javascript check

* Before running a custom JavaScript function on an element, check if
  the element is not undefined.

  Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
Merge pull request #10 from kasioumis/master-websubmit-fixes-and-improvements

Websubmit: fixes and improvements
BibDocFile: escape file URLs in /files tab

Co-authored by: Jerome Caffaro <jerome.caffaro@cern.ch>
Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>