/[drupal]/contributions/modules/biblio/ris_parser.inc
ViewVC logotype

Diff of /contributions/modules/biblio/ris_parser.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.15 by rjerome, Thu Oct 1 01:45:42 2009 UTC revision 1.15.2.1 by rjerome, Fri Oct 30 02:33:09 2009 UTC
# Line 1  Line 1 
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   *   *
# Line 19  Line 19 
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    }    }
# Line 106  function _ris_tagged_import($file, $term Line 107  function _ris_tagged_import($file, $term
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;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.15.2.1

  ViewVC Help
Powered by ViewVC 1.1.3