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>
search: PEP8/257 improvements in models

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
docs: fix spelling in getting started with overlay

* Adds note about documentation for translations.  (PR #2595)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
elasticsearch: fix for signal receivers arguments

* Adds keyword arguments to signal receivers.  (PR #2594)

Acked-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
sorter: multiple tag sorting fixes

* Fixes issue in sorting according to multiple MARC tags.

* Fixes issue with ordering of sorted records as well as handling of
  unsorted records.

* Fixes record slicing issue using 1-indexed value instead of
  0-indexed value.

* Adds generic method to decide whether to rank or sort records and
  changes facets to use this method.

* Adds two configuration variables to control default sort field and
  order.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>