Re: Bibupload #721

2012-03-26 Thread Johnny Mariéthoz
Dear Jerome,

you are right, but the actual version of our invenio instance do not use FFT 
but our deprecated own version of file management. The idea is to migrate to 
the invenio FFT system.
My idea is to export the XML Marc and convert all our 8564_ fields into FFT.

Many Thanks,
Regards,

--
Johnny Mariéthoz
RERO, Av. de la Gare 45, CH - 1920 MARTIGNY
Téléphone:  +41(0)27 721 8579
Fax  : +41(0)27 721 8586
Web: http://www.rero.ch
ReroDoc: http://doc.rero.ch, doc.supp...@rero.ch
--


Le 27 mars 2012 à 07:37, Jerome Caffaro a écrit :

> Hi Johnny,
> 
> On 03/16/2012 01:01 PM, Johnny Mariéthoz wrote:
> 
>> I want to import records from an old instance of cds to a new one 
>> (maint-1.0) using an marcXml file. [...]
> 
> Just a small precision: it might not be important for your use case,
> but remember that doing so will not include files attached to the
> record (unless you include an FFT tag), nor would it consider history
> of the record (including previous version files), so it is not the
> recommended way to upgrade an Invenio server (in case other readers of
> the list would wonder).
> 
> Best regards
> -- 
> Jerome Caffaro ** CERN Document Server ** 



Re: Bibupload #721

2012-03-26 Thread Johnny Mariéthoz
Dear Samuele,

if I'm right when I try to access to an non existent record I got a different 
message than for a deleted record, right?

Even if it is not really important, both have a different behavior. Are the 
messages the only difference?

Many thanks.

--
Johnny Mariéthoz
RERO, Av. de la Gare 45, CH - 1920 MARTIGNY
Téléphone:  +41(0)27 721 8579
Fax  : +41(0)27 721 8586
Web: http://www.rero.ch
ReroDoc: http://doc.rero.ch, doc.supp...@rero.ch
--


Le 26 mars 2012 à 16:57, Samuele Kaplun a écrit :

> Dear Johnny,
> 
> In data lunedì, 26 marzo 2012 16.32:51, Johnny Mariéthoz ha scritto:
>> many thanks for your help. I'm worry about the deleted records with your
>> method. Do I have to retrieve the list of used rec id in the reference
>> instance of invenio and push it in the bibrec table?
> 
> I am not totally sure I have understood your question, but I will try to 
> answer :-)
> 
> Recids are always allocated sequentially. So, for deleted records that will 
> not be available in the incoming MARCXML, they will simply stay as empty 
> record (which would behave almost identically to deleted ones).
> 
> Does this answer your question?
> 
> Best regards,
>   Samuele
> 
> -- 
> Samuele Kaplun
> Invenio Developer ** 
> 



Re: Bibupload #721

2012-03-26 Thread Cristian Bacchi
Dear Johnny and Sam,
I'm very curious about this your exchange, and I was wondering whether this
case could be solved using the "--force" option of BibUpload: "when
--replace, use provided 001 tag values, even if the matching record does
not exist (thus allocating it on-the-fly).

Hi !
Cristian

On Mon, Mar 26, 2012 at 16:57, Samuele Kaplun wrote:

> Dear Johnny,
>
> In data lunedì, 26 marzo 2012 16.32:51, Johnny Mariéthoz ha scritto:
> > many thanks for your help. I'm worry about the deleted records with your
> > method. Do I have to retrieve the list of used rec id in the reference
> > instance of invenio and push it in the bibrec table?
>
> I am not totally sure I have understood your question, but I will try to
> answer :-)
>
> Recids are always allocated sequentially. So, for deleted records that will
> not be available in the incoming MARCXML, they will simply stay as empty
> record (which would behave almost identically to deleted ones).
>
> Does this answer your question?
>
> Best regards,
>Samuele
>
> --
> Samuele Kaplun
> Invenio Developer ** 
>
>


Re: Bibupload #721

2012-03-26 Thread Johnny Mariéthoz
Dear Samuele,

many thanks for your help. I'm worry about the deleted records with your 
method. Do I have to retrieve the list of used rec id in the reference instance 
of invenio and push it in the bibrec table?

Regards,

-- Johnny

Le 26 mars 2012 à 11:02, Samuele Kaplun a écrit :

> 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 ** 
> 



Re: Bibupload #721

2012-03-26 Thread Alexander Wagner

On 26.03.2012 08:16, Johnny Mariéthoz wrote:

Hi!


nobody really?
Is it a dummy question? Do I miss something in the documentation or in the 
mailing list?


AFAIK neither.

I can not be of particular help here, though especially from the
scenario you outline here you strengthen my feeling that it's not wise
to stick to record IDs, but use other mechanisms to identify individual
records. (Ie. real persistent identifers, authority stuff and so on.)

--

Kind regards,

Alexander Wagner
Subject Specialist
Central Library
52425 Juelich

mail : a.wag...@fz-juelich.de
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
www.fz-juelich.de/zb/DE/zb-fi




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt



Kennen Sie schon unsere app? http://www.fz-juelich.de/app


Bibupload #721

2012-03-16 Thread Johnny Mariéthoz
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?

Do I have to this in a different way?

Regards, 


--
Johnny Mariéthoz
RERO, Av. de la Gare 45, CH - 1920 MARTIGNY
Téléphone:  +41(0)27 721 8579
Fax  : +41(0)27 721 8586
Web: http://www.rero.ch
ReroDoc: http://doc.rero.ch, doc.supp...@rero.ch
--