If I import nodes from the biblio module and the authors do not exist in the import-to site, the authors are not imported. If the authors exist, they are imported correctly. Can this be fixed? I'm not sure whether a biblio or node export problem.

Comments

danielb’s picture

Category: bug » support
Status: Active » Closed (duplicate)

This module is not designed to export/import users or author information.

Would require a lot more work to implement something like this, see also #794836: Handle Authors

tdombos’s picture

Category: support » bug
Status: Closed (duplicate) » Active

No, I didn't mean author as in the user creating the biblio entry, but author as in the author fields within a bibliography.

danielb’s picture

Does the information that fails to import exist in the export code that you copy? If not then the information is not attached to the node and cannot be exported without specifically integrating with that module.

tdombos’s picture

Yes, the authors are there in the code. Here is what Node export produces on a biblio node. Importing this results in the creation of the node, except for the "biblio_contributors" field.

array(
  array(
    'nid' => '717',
    'type' => 'biblio',
    'language' => 'hu',
    'uid' => '3',
    'status' => '1',
    'created' => '1276645825',
    'changed' => '1276645825',
    'comment' => '2',
    'promote' => '1',
    'moderate' => '0',
    'sticky' => '0',
    'tnid' => '0',
    'translate' => '0',
    'vid' => '954',
    'revision_uid' => '3',
    'title' => 'Queering History',
    'body' => '',
    'teaser' => '',
    'log' => '',
    'revision_timestamp' => '1276645825',
    'format' => '4',
    'name' => 'tdombos',
    'picture' => 'sites/default/files/pictures/picture-3.jpg',
    'data' => 'a:22:{s:12:\"mail_confirm\";s:17:\"tdombos@hatter.hu\";s:20:\"welcome_message_body\";s:0:\"\";s:2:\"op\";s:11:\"Hozzáadás\";s:6:\"submit\";s:11:\"Hozzáadás\";s:13:\"form_build_id\";s:37:\"form-570d8895f134d9f849bc084776bb65fc\";s:10:\"form_token\";s:32:\"4e53957ea9f548791acb69e279e9708f\";s:7:\"form_id\";s:17:\"ucreate_user_form\";s:11:\"og_register\";a:1:{i:26;i:1;}s:23:\"ucreate_og_group_titles\";a:1:{i:0;s:19:\"Stratégiai műhely\";}s:19:\"biblio_show_profile\";i:0;s:19:\"biblio_my_pubs_menu\";i:0;s:21:\"biblio_contributor_id\";s:1:\"0\";s:17:\"biblio_user_style\";s:6:\"system\";s:18:\"biblio_baseopenurl\";s:0:\"\";s:18:\"biblio_openurl_sid\";s:0:\"\";s:19:\"biblio_crossref_pid\";s:14:\"dombost@ceu.hu\";s:6:\"preset\";s:18:\"atrium_user_simple\";s:17:\"messaging_default\";s:4:\"mail\";s:27:\"notifications_send_interval\";s:1:\"0\";s:14:\"picture_delete\";s:0:\"\";s:14:\"picture_upload\";s:0:\"\";s:16:\"comment_settings\";s:0:\"\";}',
    'biblio_type' => '102',
    'biblio_number' => '',
    'biblio_other_number' => '',
    'biblio_secondary_title' => 'PMLA',
    'biblio_tertiary_title' => '',
    'biblio_edition' => '',
    'biblio_publisher' => '',
    'biblio_place_published' => '',
    'biblio_year' => '2005',
    'biblio_volume' => '120',
    'biblio_pages' => '1608 - 1617',
    'biblio_date' => '10/2005',
    'biblio_isbn' => '',
    'biblio_lang' => '',
    'biblio_abst_e' => '',
    'biblio_abst_f' => '',
    'biblio_full_text' => '0',
    'biblio_url' => '',
    'biblio_issue' => '5',
    'biblio_type_of_work' => '',
    'biblio_accession_number' => '',
    'biblio_call_number' => '',
    'biblio_notes' => '',
    'biblio_custom1' => '',
    'biblio_custom2' => '',
    'biblio_custom3' => '',
    'biblio_custom4' => '',
    'biblio_custom5' => '',
    'biblio_custom6' => '',
    'biblio_custom7' => '',
    'biblio_research_notes' => '',
    'biblio_number_of_volumes' => '',
    'biblio_short_title' => 'PMLA',
    'biblio_alternate_title' => '',
    'biblio_original_publication' => '',
    'biblio_reprint_edition' => '',
    'biblio_translated_title' => '',
    'biblio_section' => '',
    'biblio_citekey' => '717',
    'biblio_coins' => '<span class=\"Z3988\" title=\"ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.atitle=Queering+History&amp;rft.title=PMLA&amp;rft.stitle=PMLA&amp;rft.issn=0030-8129&amp;rft.date=2005&amp;rft.volume=120&amp;rft.issue=5&amp;rft.spage=1608&amp;rft.epage=1617&amp;rft.aulast=Goldberg&amp;rft.aufirst=Jonathan&amp;rft_id=info%3Adoi%2F10.1632%2F003081205X73443\"></span>',
    'biblio_doi' => '10.1632/003081205X73443',
    'biblio_issn' => '0030-8129',
    'biblio_auth_address' => '',
    'biblio_remote_db_name' => '',
    'biblio_remote_db_provider' => '',
    'biblio_label' => '',
    'biblio_access_date' => '',
    'biblio_md5' => 'cb047ff7aba42cc632a423eb433cc610',
    'biblio_refereed' => '',
    'biblio_type_name' => 'Folyóirat cikk',
    'biblio_contributors' => array(
      '1' => array(
        '0' => array(
          'nid' => '717',
          'vid' => '954',
          'cid' => '579',
          'auth_type' => '1',
          'auth_category' => '1',
          'rank' => '0',
          'aka' => '579',
          'drupal_uid' => NULL,
          'name' => 'Goldberg, Jonathan',
          'lastname' => 'Goldberg',
          'firstname' => 'Jonathan',
          'prefix' => '',
          'suffix' => '',
          'initials' => '',
          'affiliation' => '',
          'md5' => 'd3bf8423b7e2d4b1242e2c580bb28ab8',
        ),
        '1' => array(
          'nid' => '717',
          'vid' => '954',
          'cid' => '580',
          'auth_type' => '1',
          'auth_category' => '1',
          'rank' => '1',
          'aka' => '580',
          'drupal_uid' => NULL,
          'name' => 'Menon, Madhavi',
          'lastname' => 'Menon',
          'firstname' => 'Madhavi',
          'prefix' => '',
          'suffix' => '',
          'initials' => '',
          'affiliation' => '',
          'md5' => 'a843a7edeb28136f9f09783ea27ba3a1',
        ),
      ),
    ),
    'biblio_keywords' => array(),
    'field_biblioproblema' => array(),
    'og_groups' => array(
      '26' => 26,
    ),
    'og_groups_both' => array(
      '26' => 'Stratégiai műhely',
    ),
    'og_public' => TRUE,
    'old_status' => '1',
    'last_comment_timestamp' => '1276645825',
    'last_comment_name' => NULL,
    'comment_count' => '0',
    'taxonomy' => array(),
    'files' => array(
      '531' => array(
        'fid' => NULL,
        'uid' => '1',
        'filename' => 'menon-goldberg_2005.pdf',
        'filepath' => '#FILES_DIRECTORY_PATH#/menon-goldberg_2005.pdf',
        'filemime' => 'application/pdf',
        'filesize' => '1147260',
        'status' => '1',
        'timestamp' => '1276645825',
        'nid' => '717',
        'vid' => '954',
        'description' => 'menon-goldberg_2005.pdf',
        'list' => '1',
        'weight' => '0',
        'new' => TRUE,
        'node_export_file_path' => 'sites/default/files/menon-goldberg_2005.pdf',
        '#_export_node_encode_object' => '1',
      ),
    ),
    'menu' => array(
      'link_title' => '',
      'mlid' => 0,
      'plid' => 0,
      'menu_name' => 'primary-links',
      'weight' => 0,
      'options' => array(),
      'module' => 'menu',
      'expanded' => 0,
      'hidden' => 0,
      'has_children' => 0,
      'customized' => 0,
      'parent_depth_limit' => 8,
    ),
    '#_export_node_encode_object' => '1',
  ),
)
danielb’s picture

Category: bug » support
Status: Active » Fixed

It is Biblio's responsibility to handle that information when a node is being saved. There is nothing Node Export should have to do. You may wind up finding that this is a constraint imposed by the Biblio module. If you can identify a specific problem with Node Export's source code that would be causing this, please submit a patch, but I don't think this is a Node Export bug.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.