assets: cleancss url rebasing

* Adds cleancss assets filter with support for rebasing relative URLs
  against COLLECT_STATIC_ROOT.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
previewer: Mozilla pdf.js viewer component

* Adds pdfjs viewer component from Mozilla pdf.js as a single commit.
  This commit is needed since the viewer part of pdf.js cannot be
  installed via bower.

* NOTE: All source code in commit is copyrighted by Mozilla
  Foundation and licensed under Apache License Version 2.0.

Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>
previewer: initial pdf.js integration

* Integrates pdf.js support in Invenio including customization of
  default pdf.js viewer.

* Fixes problem with pdftk bundle naming collision.

* Fixes problem with jQuery loading in records module.

Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>
previewer: zip preview and styling fixes

* Fixes issue with ZIP files with no content.

* Fixes minor styling issues.

* Changes icons from Bootstrap to Font Awesome.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
docs: sphinx target not found for ExternalTool fix

* Adds new alias for `webassets.filter.ExternalTool`.

Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>
knowledge: fix get_kbr_values returned value

* Fixes the returned value of get_kbr_values:
  list of one element list instead of list of elements.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
indexer: PEP8/257 improvements in models

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
records: PEP8/257 improvements in models

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
editor: PEP8/257 improvements in models

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
accounts: enhancement in UserUsergroup

* Adds in the model the update of the date after last change of
  user status.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
restful: addition of validate method

* Adds a `validate` method in RestfulPagination class that checks
  the ranges of `page` and `per_page` parameters.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
oaiharvester: authorlist extraction task

* Updates post-process task for authorlist extraction to
  properly fall back to the default XSLT stylesheet.

* Adds a check that the script file is found for the filtering
  script task.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: OAI post process update

* Improves the logic and documentation of the tasks to
  post-process harvested records to be less error prone.

* Updates some tests with comments and missing logic.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
OAIHarvest: logging creation fix

* Properly sets the OaiHARVESTLOG.date_harvested value when creating
  a log entry by calling datetime.now() in the proper way.

* Removes exception masking in create_oaiharvest_log_str().

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: record extraction improvement

* Improves the OAI-PMH record extraction to better use namespaces to
  output cleaner data without dummy namespaces.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: post process check record

* Adds a new task check_record in the default post_process workflow
  to check if there is valid data in the record after conversion. If
  not, then skip further execution of this object.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: configurable namespace addition

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
OAIHarvest: session_manager usage

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
jsonalchemy: fix problem with reserved names

* Addresses issue when `try_to_eval` function was evaluating missing
  subfields to existing global Python functions.  (closes #2593)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibSort: Admin Guide improvements

* Adds description how to define sorting options.

Signed-off-by: Kennethhole <kenneth@tind.io>