BibKnowledge: lxml port get_kbt_items_for_bibedit

* Replaces usage of `libxml2` and `libxslt` with `lxml` in
  `get_kbt_items_for_bibedit` function.

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

* Uses either libxml2 or lxml depending on which library is present.
  (closes #1879) (closes #1895)

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
installation: lxml recommended

* Recommends lxml now that libxml2 and libxslt1 are fully optional.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: CERN-specific hack for latest additions

* Reverses the order of the records following the latest
  changes in the search engine.  (closes #1976)

* Also, removes a few outdated hacks.

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibFormat: add sponsor information to copyright

* Displays information about the sponsor along with the copyright,
  if applicable.  (closes #1975)

Co-authored-by: Ludmila Marian <ludmila.marian@gmail.com>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: grant access to the superadmin as owner

* Grants acesss to the superadmin as owner.  (closes #2065)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: allow image conversion of .tiff

* Allows image conversion of TIFF files.  (closes #1909)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibDocFile: get_icon() for smallest size icon

 * Updates get_icon() function to return the BibDocFile
   associated with the subformat CFG_BIBDOCFILE_ICON_SUBFORMAT_RE,
   or, if this does not exist, the smallest size icon available.
   (closes #1350) (closes #1743)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>
BibDocFile: fix type of bibrec-bibdoc connection

* Changes the default value of the type in the bibrec_bibdoc
  table to the doctype of the bibdoc, instead of 'Main'.
  (closes #1759)

Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibDocFile: escape file URLs in /files tab

* Escapes file URLs in /files tab.  (closes #2067)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Co-authored-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: allow record owners to upload files

* The uploadfile should also allow record owners to submit
  files, not only users that are authorized via WebAccess roles.

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
WebSubmit: fix access restrictions in /uploadfile

* Takes into account the 'categ' parameter when checking if a user
  is allowed to upload files. (closes #1703) (closes #2066)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
WebSearch: fix IndexError in is_hosted_collection

* Fixes possible IndexError situations in is_hosted_collection().
  (closes #1764)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: better retrieval of record tabs

 * When retrieving the tabs for the detaild record pages,
   use the guess_collection_of_a_record() function that
   also takes into account the referer. (addresses #2068)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: improve detection of record owners

* If CFG_CERN_SITE, consider the possibility of the owner
  of a record being an egroup, defined as 'foo@cern.ch'
  insted of 'foo [CERN]'. (addresses #2068)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: CERN-specific lecture latest additions

* CERN-specific selection of records to populate the latest
  additions for the lectures collections. (addresses #2068)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: CERN-specific video latest additions

* CERN-specific selection of records for the latest additions
  of the videos collections. (closes #2068)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibCatalog: ticket_submit() docstring update

* Fixes the inconsistency in the documentation of ticket_submit(), since
  this function returns ticket_id on success.  (PR #2094)

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibSched: authorization typo fix in BibTasklet

* Fixes authorization typo in BibTasklet.  (PR #1746)

Reported-by: Georgios Papoutsakis<georgios.papoutsakis@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  BibSched: authorization typo fix in BibTasklet