When I use an RIS formatted import file created by Reference Manager 9 through 12, the suffix field is not parsed correctly, and indeed the presence of a suffix messes up the author name parsing of the contributor field. An example of a valid author text string produced by this software and exported in text format would be:
Smith,A.M.,III
However, the author name parsing in the biblio_parse_author function in the biblio.contributors.inc file, seems to want the suffix to be in the middle of the text sting, so for the name above to work, it would depend on the order of the segments to instead be:
Smith,III,A.M
Here is the segment of the code where this is parsed, based on the number of commas in the name being two, and the number of segments being 3, from biblio.contributors.inc in 6.x-2.0-rc2, lines 544-550:
// If $size is 3, name is something like Bush, Jr. III, George W
else {
// Middle element of array is 'Jr.', 'IV', etc.
$appellation = implode(' ', array_splice($author, 1, 1));
// First element of array is surname (perhaps with prefix).
list($surname, $prefix) = _biblio_extract_surname_parts(array_shift($author));
}
To get this to work for my RIS file, I have to actually replace the code so it parses a different piece of the name. I've done this to get my import to work, but my version won't work with an import file that places suffixes in the middle of the author name string instead of at the end.
In case anyone else runs into this issue, here is my replacement code for just line 547 in the chunk above:
$appellation = implode(' ', array_splice($author, -1));
This tiny revision fixed the suffix parsing for my RIS file, but (obviously) it won't work for any import file where the name string is like that cited in the notes (i.e. Bush, Jr. III, George W).
I wonder if perhaps there needs to be a check on which style is used here, in order have the parsing of suffixes work correctly on all imports? Or perhaps there should be some pre-parsing done in the biblio_ris.module somewhere? I'm not sure.
For reference, here is a link to the Reference Manager instructions for entering author suffixes:
http://www.refman.com/support/risformat_tags_02.asp
Phil.
Comments
Comment #0.0
pkiff commentedFixed spelling, and number of commas statement.
Comment #0.1
pkiff commentedAdded link to Reference Manager instructions for entering suffix info.
Comment #1
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.