See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
[EP-tech] import subjects from 2.3 to 3.x
From: Zeno Tajoli <tajoli AT cilea.it>
Date: Fri, 20 Jun 2008 13:03:52 +0200
| Threading: | ↑ [EP-tech] generated_views 3.1 from C.J.Keene AT sussex.ac.uk • This Message |
*** ↵ http://www.eprints.org/tech.php/id/%3C200806201103.m5KB3rbn032741%40petrel.ecs.soton.ac.uk%3E *** EPrints community wiki - http://wiki.eprints.org/ Hi to all, I'm importing subjects from a version 2.3 to 3.x I create the subjects.xml file with the migration toolkit I try to import it into 3.x with bin/import_subjects script but there are problems It seem that the file subjects.xml doesn't have the correct data. An exrpot of subjects.xml: <?xml version="1.0" encoding="utf-8" ?> <subjects> <subject xmlns="http://eprints.org/ep3/data/3.0"><subjectid>A.</subjectid><name><item><name>A. Theoretical and general aspects of libraries and information. </name><lang>en</lang></item></name><parents><item>subjects</item></parents><depositable>TRUE</depositable></subject> <subject xmlns="http://eprints.org/ep3/data/3.0"><subjectid>AA</subjectid><name><item><name>AA. Library and information science as a field.</name><lang>en</lang></item></name><parents><item>A.</item></parents><depositable>TRUE</depositable></subject> <subject xmlns="http://eprints.org/ep3/data/3.0"><subjectid>AB</subjectid><name><item><name>AB. Information theory and library theory.</name><lang>en</lang></item></name><parents><item>A.</item></parents><depositable>TRUE</depositable></subject> [...] </subjects> The error on the command line: eprints AT ulisse-eprints3:~/bin$ ./import_subjects --verbose --force --xml eprints3 /usr/share/eprints3/archives/eprints3/cfg/subjects.xml Starting EPrints Session. Connecting to DB ... done. Purging current subjects... ...done purging. Importing from /usr/share/eprints3/archives/eprints3/cfg/subjects.xml... Use of uninitialized value in pattern match (m//) at /usr/share/eprints3/perl_lib/EPrints/DataObj/Subject.pm line 963. Use of uninitialized value in string eq at /usr/share/eprints3/perl_lib/EPrints/DataObj/Subject.pm line 118. Imported subject. Use of uninitialized value in pattern match (m//) at /usr/share/eprints3/perl_lib/EPrints/DataObj/Subject.pm line 963. DBD::mysql::db do failed: Duplicate entry '' for key 1 at /usr/share/eprints3/perl_lib/EPrints/Database.pm line 2274. SQL ERROR (do): INSERT INTO subject ( subjectid ) VALUES ("") SQL ERROR (do): Duplicate entry '' for key 1 (#1062) DBD::mysql::db do failed: Duplicate entry '' for key 1 at /usr/share/eprints3/perl_lib/EPrints/Database.pm line 2274. SQL ERROR (do): INSERT INTO subject__ordervalues_en (subjectid,rev_number,name_name,name_lang,name,parents,ancestors,depositable) VALUES ("","00000000000000000001","AA. Library and ↵ information science as a field.","English","AA. Library and information ↵ science as a field.","A.","","TRUE") SQL ERROR (do): Duplicate entry '' for key 1 (#1062) Can't call method "get_id" on an undefined value at /usr/share/eprints3/perl_lib/EPrints/Plugin/Import.pm line 206. The problem is into the migration toolkit or into import_subjects ? Thank you very much for ypur attention Bye Zeno Tajoli Zeno Tajoli CILEA - Segrate (MI) tajoliAT_SPAM_no_prendiATcilea.it (Indirizzo mascherato anti-spam; sostituisci quanto tra AT con AT )
[index] [prev] [next] [options] [help]




