Dear Johnny,
In data lunedì, 26 marzo 2012 08.16:56, Johnny Mariéthoz ha scritto:
> nobody really?
> Is it a dummy question? Do I miss something in the documentation or in the
> mailing list?
Nope. It's not a dummy question :-)
> Sorry in advance if it is the case.
>
> Le 16 mars 2012 à 13:01, Johnny Mariéthoz a écrit :
> > Dear all,
> >
> > I want to import records from an old instance of cds to a new one
> > (maint-1.0) using an marcXml file. As I want to keep the same recid I
> > have a controlfield in the marc file.
> >
> > After the bibupload I have two controlfileds. This problem seems
> > correspond to the #721 trac ticket but the patch has not be integretated,
> > why?
Because that patch was not implementing a simple fix that could have been
backported to maint easily, rather adding some new functionality.
> > Do I have to this in a different way?
If you need to preserve recids, you can e.g. run the following in a python
shell: (say you want to insert 1234 records (max recid is 1234)
$ from invenio.dbquery import run_sql
$ for i in xrange(1, 1235):
. run_sql("insert into bibrec() VALUES()")
In this way you will have pre-allocated the records. Then you can launch the
bibupload in --replace mode and you will have correctly allocated each record
to each recid.
Best regards,
Samuele
--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>