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.
Re: [EP-tech] import subjects from 2.3 to 3.x
From: Zeno Tajoli <tajoli AT cilea.it>
Date: Thu, 10 Jul 2008 16:41:28 +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/%3C200807101441.m6AEfUBj013119%40cormorant.ecs.soton.ac.uk%3E *** EPrints community wiki - http://wiki.eprints.org/ Hi to all, At 09.06 08/07/2008, Yuri wrote: >Did you solve this problem? I cannot import my own subjects and >leave the division subjects together, using the --nopurge option. > >Also recreating the tables don't help (erase-data or erase-eprint >option of epadmin) I have solved the problem Now I can imprt subjects with the command: ./import_subjects eprints3 --xml subjects.xml in the ../bin dir The problem was in the import_subjects script. I didn't use the last version of the script, from the tar ball http://files.eprints.org/369/1/eprints-3.1.0-rc-2.tar.gz Now all is OK Bye >Zeno Tajoli ha scritto: >> >>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 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]




