BibCirculation: fix for CERN returnees

Acked-by: Tibor Simko <tibor.simko@cern.ch>
BibAuthorID: hotfix in author-hepnames connection

* Correctly initializes session before use.

Signed-off-by: Samuele Carli <samuele.carli@cern.ch>
BibAuthorID: fix in WAPAFF format

* Correctly handles repeatable affiliations.

Signed-off-by: Samuele Carli <samuele.carli@cern.ch>
BibAuthorID: javascript ticket system optimization

* Optimises the ticketing system sync, significantly reducing server
  polling load.

Signed-off-by: Minn Soe <minn.soe@cern.ch>
BibIndex: bibauthorid performance improvements

* Re-implements get_author_canonical_ids_for_recid() to bypass
  complex BibAuthorID API usage and directly retrieve data
  from the DB for a gain of speed of ~800x.

* Fixes bug introduced in previous re-implementation of
  get_author_canonical_ids_for_recid() where the flag column
  was not considered.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Co-authored-by: Samuele Carli <samuele.carli@cern.ch>
Co-authored-by: Alessio Deiana <alessio.deiana@cern.ch>
Reported-by: Annette Holtkamp <annette.holtkamp@cern.ch>
BibEdit: holdingPen fix

* When merging a record with a template, if the record is a hp record
  makes all its subfields volatile.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Nikolaos Kalodimas <nikolaos.kalodimas@cern.ch>
BibEdit: logs all user actions to help debugging

* On the client side, keeps all actions in a list.

* On the server side, when an exception occurs, the action list is
  displayed on top of the exception.

Co-authored-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Alessio Deiana <alessio.deiana@cern.ch>
BibEdit: fix check for record in BibSched queue

* Takes into account all OAIID_TAGs. Before, only the first OAIID_TAG
  was considered.

* Fixes problem when metadata contains regular expression special
  characters.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: modal submission preview window

* Makes the submission preview window modal.

* Additionally avoids double submission by disabling submit button on click.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: catch InvalidCache exception on clone

* Catches InvalidCache exceptions on clone.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: fix int object is not iterable

* Fixes "int object is not iterable" exception.

Signed-off-by: Alessio Deiana <alessio.deiana@cern.ch>
WebStyle: req with no headers

* Correctly handles situations where the request object has no HTTP
  headers (e.g. during regression tests).

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: new RT ticket through UI dialog

* Creates a UI dialog on new ticket click. It contains a minimal form
  for quick submission of a new RT ticket.

* For chosen queues, produces template subject and content for the
  ticket, through the use of ticket templates plugin.

* Retrieves all needed information through an Ajax request.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: removes duplicate code

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: add author names to history revisions

* Retrieves the author name for every revision of the record and
  displays it inside the history revision entry.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: autocompletion of fields from KBs

* In CFG_BIBEDIT_AUTOCOMPLETE we declare for which fields data will
  be loaded from which Knowledge Base, in order to help user by
  autocompleting the value. Also we choose if the data will be
  loaded when page is loaded or when typing and how will be
  displayed.

* Reimplements addHandler_autocompleteAffiliations with a generic
  function that handles the behavior for any given tag.

* Handles both static and dynamic KBs.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Nikolaos Kalodimas <nikolaos.kalodimas@cern.ch>
BibEdit: remove old autocomplete code

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibEdit: fixes wrongly displayed HP changeset bug

* When switching from table to marc view
  cache was created again without adding
  information about the disabled_hp_entries.

* As a result when record was retrieved again
  all HP changesets were displayed as non applied.

* When changing from marc to table view
  gDisabledHpEntries are saved to the cache.

* Displays a message when user has applied a HP
  changeset, has not taken action for all changes
  and tries to switch to marc view.

Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
BibAuthorID: bibref selection dropdown bug

* Fixes bibref selection dropdown bug in claiming system.

Signed-off-by: Minn Soe <minn.soe@cern.ch>
BibAuthorID: name resolution problem

* Clicking on a name on a paper now brings correctly to the author
  page instead of a person search page. Solves some minor ambiguity
  problems.

Signed-off-by: Samuele Carli <samuele.carli@cern.ch>