deposit: exposure of handle_field_msg

* Assings event connection to handle_field_msg to make it available
  externally.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
errorlib: context support in sentry

* Introduces support for HTTP, and user context in sentry, by
  exploiting information provided in req object when available.
  (closes #1960) (PR #2147)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: kwalitee fix

* Runs `autopep8` on `websearch_services_regression_tests.py`.
  (PR #2352)

Signed-off-by: Federico Poli <federico.poli@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: new Journal Hint Service

* Adds the Journal Hint Service, that displays
  'Were you looking for a journal reference? Try: <link>'
  when the user search for a raw journal reference.
  (PR #2352)

* Adds unit and regression tests for the new search service.

* Adds two unit tests to `search_from_reference`, just to be sure that
  it accepts unicode.

Signed-off-by: Federico Poli <federico.poli@cern.ch>
Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: smarter journal hint

* Improves the JournalHintService implementation by directly
  a brief representation of a record when one is found.
  (PR #2352)

* Additionally, suggests to use find rawref "foo" when "foo"
  is searched for, rather than journal:"bar".

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibSort: improved washers

* Improves speed and realiability of BibSort washers by properly
  exploiting textutils.decode_to_unicode() and
  textutils.translate_to_ascii() functions.
  (PR #2283)

* Improves speed of textutils.translate_to_ascii().
  (addresses #1754)

* Introduces new washer
  _sort_nosymbols_case_insensitive_strip_accents().

* Makes unidecode dependency mandatory.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
mixer: fix requirements

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
BibDocFile: bibdocfile.BibDoc memory fix

* Fixes a memory leak in BibDocFile module where BibDoc instances were
  referring to BibDocFiles and viceversa, by using weakref.ref().
  (closes #2082) (PR #2136)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reported-by: Thorsten Schwander <thorsten.schwander@gmail.com>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
legacy: fix webbasket template translation string

* Fixes Babel gettext string replacement.  (closes #2362)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
legacy: new webinterfaces registry

* Adds new registry for legacy webinterfaces.  (closes #2239)

* NOTE Adds PendingDeprecationWarning for *ALL* legacy pages.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
deposit: form.js field modified fix

* Allows fields such as multi-select to properly get the values.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
base: build.js improvement

* Reuses `settings.js` configuration to avoid redundancy.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
global: removal of ZENODO mentions

* Removes mentions of ZENODO from licence and templates.  (closes #2371)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
legacy: fix websearch unformatted vars stacktrace

* Changes output generation of `perform_index` to use `.format()`.
  Requesting the admin interface page for WebSearch previously always
  resulted in a stacktrace due to unformatted strings.

Signed-off-by: Dimitrios Semitsoglou-Tsiapos <dsemitso@cern.ch>
Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
bulletin: translation fix

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
deposit: fix dynamic field list addition

* Fixes case in `update_element` function when the field index increases.
  (closes #1784) (PR #2372)

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
Tested-by: Georgios Kokosioulis <giokokos@gmail.com>
workflows: Holding Pen authorization

* Adds decorators for permission check to Holding Pen blueprints.

* Adds new ACL with basic "viewholdingpen" authorization to access
  the Holding Pen.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
access: Holding Pen role

* Adds Holding Pen role and authorization linked to the
  viewholdingpen action in workflows module.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
access: fix holdingpenusers role definition

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
previewer: fix base template for bundles support

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