utils: orcid validation enhancement

* Adds support for identifying ORCIDs in URLs.

* Adds support for normalizing ORCIDs.

* Fixes issue in generating URLs for ORCIDs.

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

* Fixes issue with max date overflow when in e.g. US timezones.

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

* Adds support for previewing Markdown files.

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

* Fixes use of uppercase in mimetype.

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

* Removes broken bibsched upgrader pre-check which is also
  unnecessarily slow.

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

* Changes ordering of fields in client form.

* Adds extra documentation for public vs confidential clients.

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

* Fixes issue with upgrade recipe not encrypting access tokens when
  a refresh token was not issued.

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

* Relax URL decoding. Oauthlib enforces very strict URL decoding,
  which causes troubles for end-users, thus Flask's URL decoding
  is used to properly reencode the request URL for oauthlib.

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

* Fixes robustness issue in upgrade recipe.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: pid processor normalization enhancement

* Adds support in pid normalization post-processor for specifying
  and/or detecting the scheme.

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

* Disables edit button when deposition state does not allow for
  editing, as well as flashes a message if a user still tries to
  access the URL.

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

* Fixes issue with created database objects not having the type
  defined.

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

* Fixes issue with snapshots of workflow objects being accessible via
  the deposit interface.

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

* Fixes issues with files being loaded over http instead of https.

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

* Fixes Flask application context issue.

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

* Includes Jasmine extension in documentation.

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

* Adds support for limiting the number of entries returned.

* Fixes backward incompatible change in order of keyword arguments
  introduced in a6115ff.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
installation: WTForms, dateutil and redis update

* Removes version constraints on WTForms, python-dateutil and redis
  packages.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
indexer: port of field tokenizer cache

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
search: initial query parser usage

* Adds new record matching API.

* Ports logging and fulltext terms extraction from query string.

* Fixes sorting and ranking with new search engine.

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