RIS Import omits Journal Abbreviation field (JA)

pkiff - January 22, 2009 - 17:26
Project:Bibliography Module
Version:6.x-1.0-rc2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When importing from a Reference Manager file in RIS format, it appears that the Journal Abbreviation (JA) field is being omitted. From what I can tell, a typical journal article record in Reference Manager (version 9 & 11, and possibly others) contains a field to store the journal title (JF) (from: Journal - Full format) as well as a field to store the journal title abbreviation (JA).

It looks like this JA field should be inserted into the biblio_alternate_title field in biblio.

To fix this, I've added a single line to the ris_parser.inc:

            case 'JA' :
              $node['biblio_alternate_title'] = $value;
              break;

I inserted it at line 173, just after SP and EP, since that is where this field appears in a typical record in my exported RIS file. But maybe it makes better sense to insert it up where the JF field appears.

When I run the import using RC2 under Drupal 6.6, I receive a long series of errors (one error for each record) like this one:
user warning: Duplicate entry '777' for key 1 query: comment_nodeapi /* pkiff : comment_nodeapi */ INSERT INTO node_comment_statistics (nid, last_comment_timestamp, last_comment_name, last_comment_uid, comment_count) VALUES (777, 1232643649, NULL, 0, 0) in /Applications/MAMP/htdocs/drupaltestbed/modules/comment/comment.module on line 607.

However, from what I can tell, these errors had no effect on the integrity of the data and the import process was actually successful.

Could this additional field import perhaps be added to the RIS import parser?

Phil.

#1

pkiff - January 22, 2009 - 17:58

Link to relevant RIS field descriptions:
http://www.risinc.com/support/risformat_tags_05.asp

#2

rjerome - January 22, 2009 - 18:08

Yep, I'll include those changes.

Ron.

#3

pkiff - January 23, 2009 - 02:42

Great, thanks Ron.

Excellent module, by the way. Much appreciated.

Phil.

 
 

Drupal is a registered trademark of Dries Buytaert.