When I try to import the attached RIS file the import stops with an error in the log:

ADCI\FullNameParser\Exception\NameParsingException: The regex being used has multiple matches. in ADCI\FullNameParser\Parser->removeTokenWithRegex() (line 641 of /var/www/vendor/adci/full-name-parser/src/Parser.php).

The error does not occur when I remove the second initial from the third author's name: "Villuendas, M. V." -> "Villuendas, M.".

The same error occurs with the bibliography in Endnote-XML format.

CommentFileSizeAuthor
test-ris.txt186 bytesrobcast

Comments

robcast created an issue. See original summary.

antongp’s picture

Hello @robcast! Thank you for your issue. This issue is not in the module itself, it arises from one of the used libraries. Issue has been moved here https://github.com/ADCI/full-name-parser/issues/2 , please watch for updates in this library (fix should be there soon).

Thanks!

  • adci_contributor committed 318bab9 on 8.x-1.x
    Issue #2945406 by robcast: Import breaks on author with multiple...

  • adci_contributor committed 00e1306 on 8.x-1.x
    Issue #2945406 by robcast: Import breaks on author with multiple...

antongp’s picture

Issue is fixed in adci/full-name-parser library in 0.2.0 version version.
Please note that you'll need to update library manually by running `composer require adci/full-name-parser:^0.2` in case you do not manage your Drupal dependencies via Composer and update the module to latest dev if you do manage your Drupal dependencies via Composer. New library version (0.2.0) does not satisfy previously used constraint ^0.1.

Please let us know if you have issues with some other names parsing, maybe of different format, etc.

Thanks!

robcast’s picture

Thanks for the quick fix @antongp!

I will try out the updated full-name-parser library as soon as possible.

(I am currently trying out the D7-biblio-to-bibcite migration module, wish me luck ;-)

antongp’s picture

Good luck with migration! :)

We're really glad to have new users for the module. This results in more feedback and allows us to discover and fix bugs quicker and add useful functionality. Feel free to post new issues. Thanks!

antongp’s picture

Status: Active » Fixed

I believe issue is fixed, closing for now... Feel free to re-open.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.