installation: mercurial addition

* Adds mercurial to the list of dependencies for installation
  in INSTALL guide after 787b62e8.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
deposit: assets import clean-up

* Changes js and css import to use url_for.  (closes #1817)

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: removal of alert attribute

* Removes useless alert attribute
  appended to the class.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: fix of field messages

* Fixes field info/warning/error/success
  messages, according to Bootstrap's newest
  documentation; also, adds a variable that
  prepares for future changes on the 'error'
  field name.

* Updates to $.map() for better browser
  integration.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
utils: fix of arxiv validator function

* The same regex was being verified twice,
  instead of checking the pre and post 2007,
  only the post one was being checked.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
utils: addition of DOI json data fetch

* Adds JSON data response for a given DOI.

* Adds etree to dictionary translation on
  processor utils.

* Corrects get_marcxml_for_doi() misuse of
  plain text params in the url.

* Needs the user's email as a configuration
  variable.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: addition of holding pen

* This task adds the deposition to the
  Holding Pen so it gets approved or
  rejected by an administrator.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: addition of api for crossref doi fetch

* This searches the DOI on crossref and returns
  the result as JSON format, also handles if the
  DOI isn't found or it's malformed.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: addition of block tags to template

* Adds block tags to run_base.html template
  to improve costumization.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: PEP8 fixes

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
records: API for database querying with DOI

* Adds API to query the database with a DOI.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
utils: minimize crossref code

* Squashes common code in get_crossref_content()
  function to minimize repetitions.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
utils: etree to dict translation reorganization

* Adds xmlhelpers to utils to handle custom XML.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: helper function to autocomplete from dynamic KB

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibFormat: assert that recid is an integer in constructor

* When creating a BibFormatObject, if the recid passed is not an int
  cast it and alert the admin
 BibFormat: assert that recid is an integer or a long in constructor

* When creating a BibFormatObject, if the recid passed is not an int or a long
  cast it and alert the admin.
* Also convert to int when it is taken from the marcxml.
deposit: fieldlist adaptation for import

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