legacy: xmlmarclint import fix

* Moves import of sys module into main() function for things
  to magically work.

* Removes legacy "version" parameter.

* General PEP8/PEP257 fixes.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
docs: missing mkdir command addition

* Adds command `$ mkdir -p $HOME/src` to installation tutorial.

Reported-by: Kevin Bowrin <kjbowrin@gmail.com>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
oauth2server: missing access token in test case

* Fixes missing access token in test case. (closes #2166)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
WebAlert: CSS cleanup

* Improves compatibility with Bootstrap 3.  (closes #1644)

Co-authored-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
login: fix redirection to secure page

* Fixes an issue when endpoint needed view arguments to generate
  `secure_url` for comparison with `request.base_url`.  (closes #2052)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
travis: minimal requirements testing

* Adds script for minimal requirements generation from `setup.py`.
  (addresses #2044)

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

* Adds op.has_table to upgrader for use in upgrade scripts.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
tags: initial upgrade

* Adds initial upgrade script from Invenio v1.x for tags module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
pidstore: initial upgrade

* Adds initial upgrade script from Invenio v1.x for pidstore module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
records: record_json table

* Adds upgrade recipe for adding table record_json in records module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
formatter: kind column in bibfmt

* Adds upgrade recipe adding bibfmt.kind column in
  formatter module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
messages: initial upgrade

* Adds initial upgrade script from Invenio v1.x for messages module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oauthclient: nullable extra_data column

* Upgrades remoteACCOUNT.extra_data column to be nullable.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: initial upgrade

* Adds initial upgrade from Invenio v1.x. for workflows module.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: dismissable approval alert

* Makes the default approval alert dismissable.

Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task result templates

* Amends task result rendering in Holding Pen to use templates
  under the folder templates/workflows/results.

* Fixes a problem in refextract task.

* Adds refextract template.

* Adds template for fulltext_download task to display a nicer looking
  fulltext icon to users.

* Amends tests to accommodate this new change.

Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task result upgrade

* NOTE Adds an update script to change any existing task results
  from being an WorkflowsTaskResult instance to a dict.

* Removes WorkflowsTaskResult class.

* Changes task results to no longer be grouped by last_task_name in
  order to support adding task results outside of workflows tasks.

* Updates documentation with new information on task results as well
  as actions, workers, extra_data.

* Renames actions API function add_action() to set_action() to better
  describe what the function does.

* Adds a test case for this new functionality.

* Factors out a function in utils to get rendered task results from the
  blueprint.

* Changes the fulltext route to a better schema using
  send_from_directory to avoid exposing any file on the system to
  logged in users.

* Updates location and task result of saved files in task
  fulltext_download().

* Simplifies the "heavy" workflow definitions a bit as well as the
  output of the generic harvesting workflows.

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