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>
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: 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>
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>
workflows: html raw marc views fixed

* Fixes HTML, RAW and MARC views in details page.

Signed-of-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: better workflow representation

* Calculates the path of tasks that workflow has
  followed and represents with different colors
  the completed, last and blocked tasks.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task description added

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: added a decorator

* Adds a decorator to pass the atributes of a
  function to its closure.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task details fixed

* Adds more information for each
  task in details page.

* Removes workflows.css.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: workflow representation improvements

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: bibclassify results templating

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: PEP8 fixes

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: task names update

* Task names to display are chosen from
  the description attribute of the task,
  if not present from the first line of
  the documentation, if still not present
  or too big the function name is used.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>