session: simple cache fix

* Fixes issue with simple in-memory cache not being able to
  work with timedelta timeouts.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
installation: relax requirement on reportlab

* Relax constraint on reportlab to allow 2.x release series since
  Python 2.6 support was removed in reportlab 3.x series.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
communities: search fixes

* Fixes search form to include search term.

* Adds number of results found to template.

* Fixes css classes used for icons.

* Rearranges search and sort widgets.

* Fixes search to search for terms in both title and description as
  at any location and not only the beginning of the text.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
base: undefined config variables fix

* Adds missing configuration variables from invenio.conf to
  invenio.base.config to ensure that legacy code can still be
  imported.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
base: CFG_WEBDIR fix

* Sets CFG_WEBDIR to value of app.static_folder instead of
  PREFIX/var/www.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
tests: new demo record with CSV data files

* Adds new demo record with several CSV data files and ZIP files.
  (closes #1927) (PR #2208)

* Fixes `test_legacy_record.py` accordingly.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Signed-off-by: Antonios Manaras <antonios.manaras@cern.ch>
installation: fix for typos in install doc

Signed-off-by: Gilles Louppe <g.louppe@gmail.com>
deposit: plupload filter option addition

* Adds filters to plupload settings in order, for example, to limit
  the mime types allowed.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: plupload error div selector addition

* Adds .upload-errors class to plupload.js to show errors related to
  the uploader.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
search: typeahead js code style improvements

* Affects search/typeahead.js and search/search_parser.js

* Fixes warnings produced by jshint.

* Breakes too long lines.

* Removes unused variables.

* Updates comments.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: requirejs for search typeahead

* Modifies search/search_parser.js, and search/typeahead.js to be
  compatible with requirejs.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
deposit: usage of requirejs for typeahead

* Makes form.js using twitter typeahead through a requirejs
  dependency.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
base: removal of typeahead.js from bundles

* Removes twitter's typeahead.js from bundles as it is only used with
  requirejs now.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix of undefined query_range in typeahead

* Initializes query_range in the constructor.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for improper suggestions merging

* Synchronizes internal twitter's typeahead query variable on query
  change.

* Deletes reseting query value to the complete input field value in
  special cases.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for stucked focus on the search field

* Prevents setting the caret position by typeahead on blur event.
  Changing the caret position in this situation is not needed, and
  causes the field to focus back.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
base: new `demosite populate` force-recids option

* Adds new extra option `-e force-recids` to the `demosite populate`
  command.  Useful to load files with wanted pre-set record IDs.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
docs: fix links in overlay.rst

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>