deposit: autocomplete configuration through data attrs

* Allows autocomplete limit configuration per field.

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

* Moves messages to Jinja templates.

* Converts form.js into flightjs component.

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

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: plupload fixes

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>
workflows: do not take snapshot on continue

* A new object snapshot is no longer taken continuing a
  workflow as the initial snapshot taken is enough to reconstruct
  the workflow.

* start_workflow() now has an additional parameter to pass
  the current object to the next workflow. Additionally,
  the id_parent is retained when creating a copy.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: amend start_workflow to not pass id_parent

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>
workflows: object navigation

* Adds buttons for going to previous/next workflow object
  in the Holding Pen detailed display. The previous/next
  functionality is based from the state of the maintable
  order.

Tested-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: previous/next amendment

* Moves the previous/next buttons to the nav bar on
  Holding Pen detailed display.

* Factors out some code to separate functions.

* Removes unused workflows.css.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: make sure folder exists

* Amends fulltext_download to make sure the folder to put
  the files actually exists.

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

* Fixes a bug where the look-up of ontology names from the
  taxonomies were case-sensitive.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
BibClassify: PEP8 and PEP257 fix

* Improves PEP8 and PEP257 across ontology_reader.

* Removes any rdflib checks which is no longer needed as this
  library is (1) mandatory and (2) mandatory at a high version.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
search: configuration of facets per collection

* Adds FacetCollection model with db upgrade.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: flask-admin module to configure facets

* Adds Flask-Admin module available at /admin/facetcollection/.

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