installation: replayable jquery plugins

* All filenames are specified so that when make install-jquery-plugins
  is run, it stores the files in the right place instead of .1, .2, etc.
* Specifies -u for all unzip commands so that we are never prompted for
  replacing files.

Conflicts:
	Makefile.am
bibauthorid: change hepnames js source

* Changes captcha JS source to https

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
OPS: disable garbage collection

* Disable the garbage collection at the end of the request.
  The connection to the client would remain open (and probably the
  flushing wouldn't happen either) till gc.collect() finished.
WebStyle: broken json when profiling

* Prevents the output of debug information when the content-type
  is not text/html. This prevents from breaking json and latex.
BibRank: fix redis cache check
BibRank: bug in citation weights storage

* Prevents to store None in the citation weights cache.
Revert "BibRank: fix redis cache check"

This reverts commit adc292c40fe5730479708b541ccc603a13181a2e.
BibCheck: new creation_date check

* Exploits the BibCheck infrastructure to backdate the
  creation date of a record based on the actual content of
  its metadata. In this way tools such as BibSort will be
  able to properly sort records according to their real
  creation.
  (closes #1719)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
RefExtract: convert arxiv urls to report numbers
BibDocFile: complete 3004c20 AFS fix

* This commit complements 3004c20 patch to also check if AFS
  PATTERN is not empty.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
BibAuthorID: get_papers_affected_since() timestamp

* Fixes get_papers_affected_since() to consider timestamps
  in an inclusive manner.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Samuele Carli <samuele.carli@cern.ch>
hepdatautils: incremental harvest support

 * Adds parameter --starting-date.
 * Stores the last harvest and reuses it as starting point if
   no starting date is provided.

Co-authored-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
BibAuthorID: affiliations bookkeeping

* Adds a step in rabbit to keep a list of mappings pid -> affiliations.

Signed-off-by: Alessio Deiana <alessio.deiana@cern.ch>
Signed-off-by: Samuele Carli <samuele.carli@cern.ch>

Conflicts:
	modules/miscutil/sql/tabcreate.sql
BibEdit: new affiliation system

* Switch to using the new affiliations system that stores data
  in aidAFFILIATIONS.
Bibauthorid: Fix for name decoding in affiliations daemon.
WebSearch: date after, date before bug fix

* Fixes the following bug:
    DATE AFTER XXXX is interpreted
    * year .GT. xxxx in Spires
    * year .GE. xxxx in Inspires

* Fixes unit tests for date after/before queries.
* Deletes a duplicate unit test for 'find date 1976-04'.
* Adds unit tests for 'find date < 1978-10'.
* Adds unit tests for 'find date > 1978-10'.
* Adds unit tests for 'find date 23 Sep 2010'.
* Adds unit tests for 'find (date 23 Sep 2010)'. The parenthesis after the date is an edge case for the regexp used by th method 'convert_date'.
* Fixes method '_convert_spires_date_after_to_invenio_span_query'.
* Fixes method '_convert_spires_date_before_to_invenio_span_query'.
* Fixes regexp used by '_convert_all_dates'.
* Fixes indentation for kwalitee.
BibAuthorID: handling inconsistent data in affiliations
dbdump: use ping() to re-establish connection
RefExtract: hdl handling

Conflicts:
	modules/docextract/lib/refextract_engine.py
	modules/docextract/lib/refextract_regression_tests.py
BibMatch: 'fuzzy' result mode addition

* Adds a new result mode called 'fuzzy' that can be used in
  validation rule-sets to allow one rule to fail validation and
  marked instead as a "fuzzy" match.

* Amends the regression test to check local restricted collection
  matching ONLY if the CFG_SITE_SECURE_URL is set to HTTPS protocol.
  (Otherwise the InvenioConnector returns an error.)

* Adds tests and amends documentation for the added feature.

* NOTE Amends the default Invenio config to put an example fuzzy rule.

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

Conflicts:
	modules/bibmatch/lib/bibmatch_regression_tests.py