jats_package: affiliations fix

* Adds an extra check before adding the
  affiliations to the author.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
edpsciences_package: new function get_date

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
Merge pull request #64 from GiorgosPa/edps-date

edpsciences_package: new function get_date
jats_package: fix authors aff check

Co-authored-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
global: Bibrecord dependecy removed.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
edpsciences_package: attach fulltext fix

* Modifies _attach_fulltext function to use requests.

* Removes the need for a special EDPS config in harvesting-kit.

* Fixes a typo in pos_package.

Co-authored-by Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
jats_package: empty affiliation fix

* Handles the case of empty affiliations.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
jats_package: author note fix

* Handles more than one note per author.

* Updates tests and removes tests.py which is unnecessary.

Tested-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
edpsciences_package: attach fulltext fix

* Modifies _attach_fulltext function to handle url timeout errors
  and retries to open the url 10 times.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
global: refextract calls surrounded in try blocks

* Sometimes the refextract calls produce a RuntimeError
  maximum recursion depth this commit surrounds refextract
  calls with try blocks to avoid the task's termination untill
  the problem is fixed.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>