deposit: ckeditor sanity check

* Avoid error if deposit form is not using ckeditor in any field.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: for loop rewrite to $.each

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Reported-by: Yoan Blanc <yoan.blanc@cern.ch>
tags: REST API addition

* Creates API for tags, in order to have a reusable API
  both for restful API and views probably.

* Refactors tags REST API in order to use the new tag API.

* Tests the tags REST API.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
documents: files field rename

* Renames `_files` and `files` to `_documents` and `documents` to avoid
  name collisions with current bibupload fields. (closes #1898)

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
records: fix `get_blob` to ease transition.

* With the new uploader there is a new column inside `bibfmt` to allow
  different kind of versions of the record: `master`, `DIP`, etc. but
  bibupload is not filling this column, only `format='xm'` to identify
  the master version for `marcxml`.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
grunt: jquery.form from bower

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
BibDocFile: javascript fixes

* Preloads jquery.form via a dummy require.js script.  (addresses #1900)

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Reported-by: Petr Broz <petr.broz@gmail.com>
Tested-by: Petr Broz <petr.broz@gmail.com>
installation: fix for setuptools-bower source

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
general: translations fixes

* Fixes the string formatting.  (closes #1911)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
grunt: dev typeahead installation

* Copies development version of typeahead.js
  instead of minified one.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
ranker: RnkCITATIONDICT model update

* Adds new model created in 742f3500c86a076fabe65523f38331392b5529ae.
  (closes #1905)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
ranker: PEP8 and PEP257 improvements

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
checker: model addition

* Adds new SQLAlchemy model for table 'bibcheck_rules'.
  (addresses #1889)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
pdfchecker: model addtion

* Adds new SQLAlchemy model for table 'bibARXIVPDF'. (addresses #1790)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
editor: fix BibEDITCACHE model

* Adds missing table name definition.  (addresses #1790)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
assets: bundles 2.0

* Adding a bundles jinja2 command to specify the required bundles.

* Supporting bundles definition using a module specific bundles.py file.

* Adding `assets` command to build the bundles from the command line.

* Adding a lazy registry to collect the bundles.

* Deprecating the old css,js,get_js_bundle,get_css_bundle jinja helpers.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
assets: bower command

* Adds a command that generate the bower.json file from the bundles.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
assets: bower updates

* Reads from any existing bower.json file found.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
accounts: bundles 2.0

* Fixes the absolute path on other pages.

* NOTE jQueryUI cannot be bundled as is.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
assets: wrapper logger

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>