template: Flask 1.0 compatibility fix

* Fixes return value of Jinja loader iteration due to change in
  Flask 1.0. (closes #2216)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
sqlalchemy: addition of Encrypted column type

* Adds a custom type which is called `Encrypted`. It uses the AES
  algorithm provided by pycrypto in order to encrypt and decrypt.
  (PR #2204)

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
installation: postgresql driver dependency

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
sqlalchemy: name addition for Enum types

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
ranker: fix missing column in RnkCITATIONDICT

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
sqlalchemy: postgresql types support
legacy: support for postresql engine in dbquery

* Adds dynamic loading of legacy SQL functions for different database
  engines.  (addresses #2020)
base: gentler web page title warning

* Prints a bootstrap-themed warning in legacy pages.
  (PR #2215) (closes #2198)

Signed-off-by: Leonard Rossi <leonardo.r@cern.ch>
legacy: dbdump refactoring fix

* Adds missing functions from master to dbquery, which caused e.g.
  dbdump to not work. (closes #2088)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
legacy: dbquery pep8/257 fixes

* Fixes most PEP8/PEP257 errors in dbquery.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
legacy: docextract move to new code structure

* Moves legacy docextract modules to new structure. (addresses #2210)
  (PR #2223)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
legacy: docextract imports fix

* Fixes import statements after move to new structure.
  (addresses #2210) (PR #2223)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
legacy: authorlist move to new code structure

* Moves legacy authorlist module to new structure. (addresses #2210)
  (PR #2007) (PR #2223)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
legacy: authorlist imports fix

* Fixes import statements after move to new structure.
  (addresses #2210) (PR #2223)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
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>