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>
BibDocFile: more robust decompose_bibdocfile_url()

* Improves decompose_bibdocfile_url() function to be more robust with
  respect to uncommon characters in docnames.  (PR #1957)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibDocFile: change name failure raises exception

* If the bibdoc name was not changed, the `change_name()` function will
  raise an exception.  (PR #2071)

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Bibdocfile: change_name missing parameter fix

* Fixes the missing parameter in BibDoc.change_name function in
  bibdocfile_managedocfiles (GENSBM was failing due to that).
  (PR #1818)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: `deferRelatedFormatsCreation` param fix

* Adds `deferRelatedFormatsCreation` of `Create_Upload_Files_Interface`
  to the table filling step, fixing submission troubles, following up
  40c208ec8b6908a463db452476d2cf19bec47ed8.  (addresses #2142)

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: `test_revise_picture_admin` test fix

* Fixes `test_revise_picture_admin` web test.  (closes #2142)

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: support for elements' custom_level

* Adds support for optionally setting a custom_level ('M' for mandatory or
  'O' for optional) for each element through the element description,
  overriding the default level. Useful for dynamically produced elements.
  (PR #1741)

Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: print white space instead of None

* Avoids printing "None" (by passing None to string formatting).
  Instead, print a single white space.  (PR #1741)

Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: more robust JavaScript check

* Before running a custom JavaScript function on an element, check if
  the element is not undefined.  (PR #1741)

Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
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 Simkop <tibor.simko@cern.ch>