global: base templates creation

* Creates base templates to allow for easier and minimal block
  overwriting by site-specific templates.

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

* Adds template blocks for easier customization.

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

* Adds template blocks for easier customization.

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

* Adds template blocks for easier customization.

* Fixes issue with form validation errors in login form.

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

* Adds template blocks for easier customization.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: fix pu-branch migration issues

* Fixes issue from the migration to pu-branch.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
legacy: removal of legacy OpenAIRE code

* Removes legacy code from the old OpenAIRE Orphan Record
  Repository.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
login: change of unauthorized message for guest

* Changes the message displayed to guests when not
  authorized to perform certain action.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
translations:fixes for string messages
docs: git workflow additions and corrections

* Adds explicit requirement for empty lines between commit message body list
items.

* Changes headline length requirement to strict 50 characters.

* Breaks long lines.

* Adds note on using vim as commit message editor.

* Adds a more complete commit message example.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
results: fix for not visible variable "new_args"

Reviewed-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
comments: reviews_base.html template

* Moves reviews.html to reviews_base.html. Note that this commit is broken.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
comments: reviews.html template

* Re-adds reviews.html template extending from reviews_base.html. Fixes broken
parent move commit.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
previews: move to previewer

* Renames the previews module to previewer. Note that this commit is broken.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
previewer: post-move fixes

* Fixes issues generated by module renaming.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
previewer: refactoring

* Changes preview view function arguments, passes request arguments.

* Sends only file reference from view to plugins.

* Fixes PEP8.

* Adds previewer preference order, settable via CFG_PREVIEW_PREFERENCE, which
is a dictionary such as {'.pdf' : ['pdftk', 'gview']}, specifying that 'pdftk'
it the first choice for PDFs.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
utils: unicode fix

* Accepts unicode as well as strings for escape_shell_arg().

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
static: modal binding element filter addition

* Adds an optional jQuery filter parameter to the modal binding function; this
is useful, for example, when binding after an AJAX request for skipping already
bound elements.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
requirements: pymongo addition

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
utils: which function addition

* Adds a which function, similar to GNU which. For CPython 3.3+, this is already
included in shutil.py. For older versions it was backported.

* Fixes configuration variables that point to executable paths to use which.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>