multimedia: Image API documentation update

Signed-off-by: Harris Tzovanakis <me@drjova.com>
formatter: better logging in xslt engine

* Uses `current_app.logger.error` or `current_app.logger.exception`
  instead of `sys.stderr`.  (closes #2049)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
formatter: format record extra context fix

* Fixes issue where certain format_record() method would not accept the
  extra_context keyword argument.

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

* Fixes issue where hidden tags was not filtered out in xm format due
  to that user info was not passed to the format_record function.

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

* Fixes admin menu to only be visible for admin users.

* Changes admin menu order to 10, to ensure it is the right
  most menu item.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
communities: hbpro format database fix

* Fixes problem in post database creation listener.

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

* Fixes refactoring issue introduced in
  6e60101a0c9dc7f2350d32872d418446a23cac0c.

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

* Adapts reporting to new repo format.  (closes #1804) (PR #1812)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
oauthclient: documentation update

* Adds overview documentation and includes it Sphinx docs.

* Fixes minor issue with GitHub/ORCID contrib modules.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
logging: sentry sanitizer for access tokens

* Sanitizes access tokens from data sent to the sentry instance.
  (closes #2130)

* NOTE Upgrades raven to 5.0.0 due to changes in
  SanitizePasswordProcessor.

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

* Includes logging documentation in main documentation.

* Fixes minor issues in logging documentation.

* Fixes some PEP257 problems.

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

* Adds license statement to documentation files.

* Fixes wrong license statement in certain docs files.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Merge branch 'next' into pu

* next: (29 commits)
  BatchUplader: fix for permission checking
  inveniogc: guest users gc optimization
  inveniogc: clean up gc tasks
  BibSched: authorization typo fix in BibTasklet
  BibCatalog: ticket_submit() docstring update
  WebSearch: CERN-specific video latest additions
  WebSearch: CERN-specific lecture latest additions
  WebSearch: improve detection of record owners
  WebSearch: better retrieval of record tabs
  WebSearch: fix IndexError in is_hosted_collection
  WebSubmit: fix access restrictions in /uploadfile
  WebSubmit: allow record owners to upload files
  BibDocFile: escape file URLs in /files tab
  BibDocFile: fix type of bibrec-bibdoc connection
  BibDocFile: get_icon() for smallest size icon
  WebSubmit: allow image conversion of .tiff
  WebSubmit: grant access to the superadmin as owner
  BibFormat: add sponsor information to copyright
  WebSearch: CERN-specific hack for latest additions
  installation: lxml recommended
  ...
formatter: 'recjson' format addition

* Adds general implementation of 'recjson' using formatter engine.
  (addresses #1908)

* Adds an upgrader recipe for the new output format.

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
deposit: base template refactoring fix

* Fixes unneeded base of base template introduced in
  461039d109480d5988b4b8d820fdd529a4a44756.

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

* Fixes several JavaScript issues introduced during refactoring of assets
  as well as dynamic field lists.

* Fixes tag template issue in field lists.

* Fixes issue when appending new elements to field lists.

* Fixes typo in message variable names.

* Fixes uninitialized variables due to strict mode.

* Removes Invenio CKEditor configuration as this is configured by each
  textarea field in the data-ckeditor-config attribute.

* Adds SPAN-tag to whitelist of HTML-tags to support MathJax integration
  in CKEditor.

* NOTE Changes deposit/form.js module to export multiple methods.
  If your instance templates invokes 'form(configuration)' it must
  be changed to 'form.init(configuration)'.

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

* Adds description for `ColumnInput` widget.  (closes #1949)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Tested-by: Javier Martin Montull <javier.martin.montull@cern.ch>
records: fix bibrec.additional_info upgrade script

* NOTE Amends upgrade script to add column `bibrec.additional_info` in
  case it does not exist.  (closes #2132)

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
WebSubmit: Link_Records error message fix

* Fixes the bug in str.join(recids) in get_recid_and_reportnumber function;
  recids should be converted to strings before calling join function.
  (PR #1734)

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
OAIHarvest: conversion argument name upgrade

* Adds the missing upgrade script for changes done to OAI harvest
  source arguments in f9271a0 that could cause name problems during
  harvesting when upgrading an existing installation.  (PR #1753)

* Amends the web-tests to look for the proper new name.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Acked-by: Tibor Simko <tibor.simko@cern.ch>