search: loading of Bloodhound using requirejs

* Adds the missing export of twitter's typeahead.js and properly
  loads it with requirejs at search typeahead.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: configuration of facets per collection

* Adds FacetCollection model with db upgrade.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
search: flask-admin module to configure facets

* Adds Flask-Admin module available at /admin/facetcollection/.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
search: facets relation definition move

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
global: Invenio 1.9999.4.dev

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
tests: registry addition for testsuites

* Adds registry style loading of testsuites.  (closes #2211)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
formatter: display record with no record id

* Fixes an issue 'Default_HTML_detailed' template when record does not
  have a 'recid'.

* Handling this issue in the template has a unexpected side-effect
  this commit handles the issue in the back-end.  (PR #2278)

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
search: fix for return key handling in search form

* Fixes an issue where pressing the return key in the simple search
  dropdown caused the form to be submitted with no data. (closes #2253)
  (PR #2282)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Joe MacMahon <joe.macmahon@cern.ch>
legacy: indexer recjson value fix

* Prevents BibIndex to crash when indexing `recjson` values.
  (closes #2285)

* Fixes problem with unicode strings.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
assets: bundles cleanup per request

* Stores bundles on request context stack.  (closes #2290)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
deposit: fix PLUpload in IE9

* Enables 'html4' runtime in PLUpload.

* Forces IE9 standard mode.  (PR #2299)

Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>
legacy: bibrecord scripts move

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
legacy: fix for run_sql import in bibrecord

* Addresses issue with imports outside application context.
  (closes #2295)

* Amends imports from `invenio.legacy.bibrecord.scripts`.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
mixer: dump database fixes

* Adds new command `inveniomanage database dump` to allow dumping the
  content of the database using the mixer.

* Fixes imports and trailing white spaces on json dump.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
search: tuning of hierarchical facet

Tested-by: Tibor Simko <tibor.simko@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
search: quickfix pagination troubles with facets

* Fixes problem with ignoring pagination options while using facets.
  (closes #2306) (PR #2308)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>