search: fix advanced add to search form

* Adds missing class and fixes syntax error in generated javascript
  code.  (closes #1811)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
records: return cleaned record json

* NOTE `get_unique_record_json` returns cleaned data by
  `Record.dumps(clean=True)`.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
utils: function remove_underscore_keys removal

* Removes unused function `remove_underscore_keys`.

* Improves PEP8/257 and adds documentation entry.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
crossref: initial release of Flask extension

* Queries DOI record data from the database or CrossRef as JSON
  (closes #1906).

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
crossref: database search fix

* Adds an instance wide search parameter prefix to perform the database
  search.

* NOTE: for the search to be performed in the database, the DOI field
  prefix for the corresponding instance config file should be added to
  invenio.cfg as DOI_SEARCH_PREFIX (e.g. DOI_SEARCH_PREFIX = u'doi:').

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
crossref: tests addition

* Adds tests for DOI found and not found.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
crossref: docs entry addition

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>