setup: WTForms pin version 1.0.5

* NOTE Invenio installation is currently broken. Flask-Admin does
  not support WTForms>2.0.0. This is a temporary commit until it is
  fixed.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
knowledge: API migration to SQLAlchemy

* Replaces run_sql queries with SQLAchemy query.

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

* Fixes bibknowledge webinterface kb mapping update.

Signed-off-by: Leonardo Rossi <leonardo.r@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>
oaiharvester: authorlist extraction task

* Updates post-process task for authorlist extraction to
  properly fall back to the default XSLT stylesheet.

* Adds a check that the script file is found for the filtering
  script task.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: updates OAI record filtering

* Improves the logic and documentation of the task to filter
  out already harvested records from the same run.

* Also adds the OAI identifier to the record extra_data.

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

* Saves the checkbox values on changed.

* Corrects FileUploadField RequiredIf validation.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Co-authored-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: separation of typeahead initialization

* Separates connecting events and initializing typeahead so that
  one can set up a custom typeahead with all the events connected
  with the form.

Co-authored-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
oaiharvester: updates OAI post process

* Improves the logic and documentation of the tasks to
  post-process harvested records to be less error prone.

* Updates some tests with comments and missing logic.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
OAIHarvest: logging creation fix

* Properly sets the OaiHARVESTLOG.date_harvested value when creating
  a log entry by calling datetime.now() in the proper way.

* Removes exception masking in create_oaiharvest_log_str().

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: record extraction improvement

* Improves the OAI-PMH record extraction to better use namespaces to
  output cleaner data without dummy namespaces.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: Holding Pen display

* Provides a default label for an object in the Holding Pen main
  table in cases where there is no title extracted from the data.

* Adds a convenience button to restart workflow on the current task
  if there is an error (useful while fixing a problem).

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: post process check record

* Adds a new task check_record in the default post_process workflow
  to check if there is valid data in the record after conversion. If
  not, then skip further execution of this object.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: always save current object

* Adds missing saving points of BibWorkflowObjects in the workflow
  engine when using engine execution manipulation functions such
  as `continueNextToken()`, `jumpTokenBack()`, `jumpTokenForward()`.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: merge with postprocess changes
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.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@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.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
search: fix for search typeahead configuration

* Lets search typeahead syntax be configurable again after moving
  typeahead configuration fo form.js in commit
  3ed48581607a534319c0b1624a20b84016c4a649

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