utils: fall back to text node

* Falls back to text node should parseString raise ExpatError
  when calling record_add_field with erroneous data.

* Adds a test to cover this case.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
harvesting-kit: Adds nations field while harvesting

* Adds add_nations_field to utils.py to check affiliations and add
  the corresponding nation. 'HUMAN CHECK' if something went wrong

* Adds '--extract-nations' flag to valid arguments, since currently
  only SCOAP3 is going to use the nations field

Signed-off-by: Martin Vesper <martin.vesper@cern.ch>
Merge pull request #72 from mvesper/add_nations_field_in_harvesting_kit

harvesting-kit: Adds nations field while harvesting
ftp_utils: fix for creating folders
Elsevier: automatic update of delivery dates for packages.

* Adds date of delivery for packages downloaded from Elsevier,
  data are stored in database. DOI of articles are associeted with
  packages they come from (one doi can be connected to multiple
  packages - updates of article).
harvesting-kit: Filters empty subfields of field 773

* Empty subfields are now removed before being added to the record

Signed-off-by: Martin Vesper <martin.vesper@cern.ch>
Merge pull request #77 from mvesper/filter_field_773

harvesting-kit: Filters empty subfields of field 773
Merge pull request #78 from Dziolas/master

Elsevier: automatic update of delivery dates for packages.
Removes whitespaces from package names in db "package" table.
Merge pull request #79 from Dziolas/master

Removes whitespaces from package names for db "package" table.
tests: fix bad import

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
utils: new function to fix author names

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
scripts: new script to fix common record errors.

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>
Elsevier: Fix for Elsevier doi finding and fixes adding new field.

* Changes search_pattern to perform_request_search in Elsevier to
  better find recid basing on DOI,
* Adds casting values to strings in record_add_field in utils.py.
Merge pull request #80 from Dziolas/master

Elsevier: Fix for Elsevier doi finding and fixes adding new field.
utils: changes to multiple affiliations in nations field

* It is now possible to have multiple affiliations in the fields
  100__w or 700__w

* In case of Switerland and CERN in one affiliation, Switerland will
  be dropped.

Signed-off-by: Martin Vesper <martin.vesper@cern.ch>
Merge pull request #81 from mvesper/add_nations_field_in_harvesting_kit

utils: changes to multiple affiliations in nations field