| 1 |
<?php |
<?php |
| 2 |
// $Id: ris_parser.inc,v 1.4.2.22 2009/07/22 18:20:51 rjerome Exp $ |
// $Id: ris_parser.inc,v 1.15 2009/10/01 01:45:42 rjerome Exp $ |
| 3 |
/** |
/** |
| 4 |
* Copyright (C) 2006 Ron Jerome |
* Copyright (C) 2006 Ron Jerome |
| 5 |
* |
* |
| 19 |
* |
* |
| 20 |
*/ |
*/ |
| 21 |
function _ris_tagged_import($file, $terms = array(), $batch = FALSE, $session_id = NULL) { |
function _ris_tagged_import($file, $terms = array(), $batch = FALSE, $session_id = NULL) { |
| 22 |
if (!($fp = fopen($file->filepath, "r"))) { |
|
| 23 |
|
if (!($fp = fopen($file->uri, "r"))) { |
| 24 |
drupal_set_message("could not open RIS input file", 'error'); |
drupal_set_message("could not open RIS input file", 'error'); |
| 25 |
return; |
return; |
| 26 |
} |
} |
| 107 |
case 'T1' : |
case 'T1' : |
| 108 |
case 'CT' : |
case 'CT' : |
| 109 |
case 'BT' : |
case 'BT' : |
| 110 |
$node['title'] .= $value; |
$langcode = FIELD_LANGUAGE_NONE; |
| 111 |
|
$node['title'][$langcode][0]['value'] .= $value; |
| 112 |
break; |
break; |
| 113 |
case 'UR' : |
case 'UR' : |
| 114 |
$node['biblio_url'] .= $value; |
$node['biblio_url'] .= $value; |