utils: datacite ssl protocol fix

* Fixes issue with SSL protocol version due to change by DataCite.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
debug_toolbar: error reporting fix

* Fixes an issue where an error message would be produced even if
  Flask-DebugToolbar was explicitly disabled via DEBUG_TB_ENABLED
  set to False.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
email: celery error email fix

* Fixes issue with celery not sending error emails due to config
  variable ADMIN being set different by the Flask Email extension.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
webhooks: minor documentation update

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
tests: testsuite iteration fix

* Fixes invalid attribute access to application configuration.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
search: requirejs facets fix

* Wraps facets JavasScript module in requirejs definition.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: jquery datepicker leftovers

* Removes jQueryUI css which is no longer needed after integrating
  bootstrap-datetimepicker.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: form button click fix

* Fixes refactoring issue with form button clicks not being sent to
  server.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: field_display kwargs support

* Adds support for passing kwargs to Jinja macro field_display
  that can pass it to the field. This is useful for passing
  attributes to specific field widgets like (e.g. rows/cols
  for a textarea).

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
knowledge: API migration to SQLAlchemy

* Replaces run_sql queries with SQLAlchemy query.

* Refactors module in order to move logic from api to model.

* Fixes bibknowledge webinterface kb mapping update.

* NOTE If you are running Invenio 1 and Invenio 2 on top of
  the same database, please use only Invenio 2 knowledge base
  administration interface from now on, in order to ensure
  data consistency.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
groups: user selection by autocomplete

* Implements a reusable RemoteAutocompleteField.

* Implements a Jasmine testsuite.

* Improves user selection with the autocomplete field.

* Improves group selection with the autocomplete field.
  (addresses #1788)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
deposit: js uploader component

* Adds flightjs uploader component with support for pluggable
  uploader engines such as PLUpload and DropBox.

* NOTE RequireJS path to FlightJS was changed from vendors/flight/lib
  to vendors/flight. Scripts defining flight components MUST update
  their require statement from require('flight/lib/component') to
  require('flight/component').

Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>
deposit: InvalidDepositionType handling

* Handles the InvalidDepositionType exception being raised when
  trying to initialize a deposition type on older submissions which
  is disabled via the DEPOSITION_TYPES config variable.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: Holding Pen previous/next robustness

* Makes the previous/next object getter more robust.

* Adds unit tests for this functionality.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: aborting and skipping

* Adds support in the workflow engine for aborting execution and
  skipping objects using new functions `eng.skipToken()` and
  `eng.abortProcessing()` that will not save the workflow object.
  Useful in complex workflow where for example the workflow object
  is deleted as a final step in a task before aborting/skipping.

* Removes legacy DEBUG flag from engine as logging is anyway logged
  with the debug loglevel.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
deposit: checkbox support addition

* Saves the checkbox values on changed.

Signed-off-by: Pedro Gaudencio <pedro.gaudencio@cern.ch>
Co-authored-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibSched: post-process data exchange

* Adds the ability for tasks to transfer arbitrary data to BibTasklets
  specified via the `--post-process=` argument via a new task parameter
  `post_process_params`.

Co-authored-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
WebSearch: webcoll post-process data

* Adds sending of added/modified record IDs during webcoll run to
  `post-process` tasklet via a new task parameter `post-process_params`.

Co-authored-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
jasmine: registry fix

* Includes also normal js files not only the tests.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
jasmine: fix for ASSETS_DEBUG=False

* Adds init.js for jasmine extension.

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