accounts: require.js refactoring

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
search: require.js refactoring

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
search: affix width fix

* Fixes issue with affix loosing its width once removed from the DOM.
  This caused long facet names to extend into the search results.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: relax version number constraints

* Relaxes all the hard constraints on version numbers.

* Comments that Cerberus 0.7.1 will fail.

* Comments Flask-OAuth>=0.5 to be known to fail.

* Comments pyparsing 2.0.2 to be known to fail.

* Comments SQLAlchemy-Utils >0.24 to be depending on SQLAlchemy>=0.9.3.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
installation: Flask-OAuthlib 0.6 upgrade

* Upgrades Flask-OAuthlib to v0.6.

* Adds '/' to the endpoints that need it in the test_provider.

* Uses the url_for in some functions in helpers testsuite in order to
  not hardcode the url.

* Fixes some PEP257 issues.

* NOTE require_api_auth no longer passes oauth request as view
  arguments. Instead user request.oauth to access oauth request.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: Flask-OAuthlib upgrade fix

* Fixes API changes related to Flask-OAuthlib upgrade.

* Some PEP257 love.

Co-authored-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
documents: Flask-OAuthlib upgrade fix

* Fixes API changes related to Flask-OAuthlib upgrade.

* Some PEP257 love.

Co-authored-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
webhooks: Flask-OAuthlib upgrade fix

* Fixes API changes related to Flask-OAuthlib upgrade.

* Some PEP257 love.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
tags: Flask-OAuthlib upgrade fix

* Fixes API changes related to Flask-OAuthlib upgrade.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
base: user 'Login' and 'Register' button  addition

* Shows the 'Register' button if the value of
  'CFG_ACCESS_CONTROL_LEVEL_ACCOUNTS' is 0 or 1. (addresses #1943)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
base: global tooltip activation

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
deposit: removal of alert attribute

* Removes useless alert attribute
  appended to the class.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
utils: addition of DOI json data fetch

* Adds JSON data response for a given DOI.

* Adds etree to dictionary translation on
  processor utils.

* Corrects get_marcxml_for_doi() misuse of
  plain text params in the url.

* Needs the user's email as a configuration
  variable.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: API for Crossref DOI fetch

* Searches the DOI on crossref and returns the result as JSON format,
  also handles if the DOI isn't found or it's malformed.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: PEP8 fixes

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
records: API for database querying with DOI

* Adds API to query the database with a DOI.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
utils: minimize crossref code

* Squashes common code in get_crossref_content()
  function to minimize repetitions.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
base: removal of demosite-specific stylesheets

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
previewer/base/assets: rename invenio.css -> base.css

* Renames invenio.css to base.css as base.css is a common base stylesheet.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>