search: typeahead js code style improvements

* Affects search/typeahead.js and search/search_parser.js

* Fixes warnings produced by jshint.

* Breakes too long lines.

* Removes unused variables.

* Updates comments.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: requirejs for search typeahead

* Modifies search/search_parser.js, and search/typeahead.js to be
  compatible with requirejs.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
deposit: usage of requirejs for typeahead

* Makes form.js using twitter typeahead through a requirejs
  dependency.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
base: removal of typeahead.js from bundles

* Removes twitter's typeahead.js from bundles as it is only used with
  requirejs now.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix of undefined query_range in typeahead

* Initializes query_range in the constructor.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for improper suggestions merging

* Synchronizes internal twitter's typeahead query variable on query
  change.

* Deletes reseting query value to the complete input field value in
  special cases.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for stucked focus on the search field

* Prevents setting the caret position by typeahead on blur event.
  Changing the caret position in this situation is not needed, and
  causes the field to focus back.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
base: new `demosite populate` force-recids option

* Adds new extra option `-e force-recids` to the `demosite populate`
  command.  Useful to load files with wanted pre-set record IDs.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
docs: fix links in overlay.rst

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
session: fix duplicate session commit

* Removes duplicate code that has been moved to model.
  (PR #2264)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
session: fix commit after automatic table creation

* Fixes `commit()` call on database session object.  (PR #2265)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibClassify: case insensitive taxonomy

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

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>
BibClassify: error handling and PEP8

* Adds a new exception type TaxonomyError when there is a problem
  reading the ontology passed to legacy BibClassify.

* Performs some PEP8 fixes across ontology_reader.py and engine.py.

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

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

Co-authored-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: use static function

* Use function to create BibWorkflowObject instead of instantiating
  directly in start_workflows() function.

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

* Updates the HTML, RAW and MARC views in the details page.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: detailed workflow task list

* Calculates the path of tasks that workflow has
  followed and represents it on Holding Pen detailed record display
  with different colors for completed, current and remaining tasks.

* Task names to display are chosen from the description attributes
  of the task, if not present from the first line of the docstring,
  if still not present, the function name is finally used.

* Adds a decorator to pass the attributes (docstring, name) of a
  function to its closure.

Tested-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
workflows: PEP8 fixes

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

* Adds signals to workflows for when a workflow is started, halted
  and finished.

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