Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have downloaded a RIS file in which there is no space after the final
"ER -"
With the current version of ris_parser.inc, which determine the tag by searching for " - "
, this causes the ER tag not to be recognised, and the node is therefore not created.
According to the RIS spec, biblio's behaviour is correct. But the patch I will attach to the next comment fixes this behaviour by searching for " -"
(note the absence of the final space). The extra resulting space should be take out by the subsequent trim(), so hopefully this fix is OK.
Comment | File | Size | Author |
---|---|---|---|
#1 | biblio-403484-1.patch | 1016 bytes | egfrith |
Comments
Comment #1
egfrith CreditAttribution: egfrith commentedComment #2
egfrith CreditAttribution: egfrith commentedComment #3
rjerome CreditAttribution: rjerome commentedLooks good, I just adjusted the start position to reflect the fact that there is one less character in the search string...
I've committed it to CVS.
Ron.
Comment #4
egfrith CreditAttribution: egfrith commentedThanks for the quick response! The amended fix works fine.