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 plugin separation

* Renames fieldlist plugin to dynamicFieldList.

* Moves the plugin to dynamic_field_list.js.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
deposit: fieldlist wrapped to a prototype based class

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

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