base: padding removal from top of Flask-Admin page

* Removes padding on top of Flask-Admin page.  (PR #2201)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
deposit: autocomplete data attrs configuration

* Allows autocomplete limit configuration per field.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: plupload template change

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: initial plupload separation
deposit: form.js refactor

* Moves messages to Jinja templates.

* Converts form.js into flightjs component.

* Plupload fixes.

* NOTE introduces new JS library <http://flightjs.github.io/>.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: run_base.html adapt to new JS

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: assets build fix

* Fixes asset dependency for $inveniomanage assets build to
  generate assets with all needed dependencies.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: fix for sort function for authors

* Fixes invalid `this` pointer in a function passed as a parameter
  of sortable plugin.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
deposit: fix errors in an inline form

* Shows all error messages for inline form field bellow.  (closes #2141)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
installation: testing of development requirements

* Adds list of repositories with developement version of some of the
  most important libraries Invenio is depended on.  (addresses #2044)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
template: deprecated blueprint_is_module function

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
workflows: dismissable approval alert

* Makes the default approval alert dismissable.

Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@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>
Reviewed-by: Jiri Kuncar <jiri.kuncar@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.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
testsuite: fix InvenioConnector test

* Removes unneeded call to http://cds.cern.ch in test.

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

* Adds a new utility decorator called session_manager for use
  in models to handle commit/rollback actions.

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

* Removes duplicate session_manager and instead uses the one
  recently added in ext.sqlalchemy.utils.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: add save to model

* Adds save method to OaiHARVEST model.

* PEP8/257 fixes.

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

* Fixes broken imports in admin pages of OAI harvest sources.
  (closes #2188)

* Bootstraps some templates for easier human interaction.

* Uses the oaiharvester.models.OaiHARVEST for interacting with DB.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
base: dropdown menu and mobile UI fix

* Fixes dropdown menu. (addresses #1994)

Signed-off-by: Adrian Baran <adrian.pawel.baran@cern.ch>