EPrints Technical Mailing List Archive

Message: #01068


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: OAI Harvester


Hello Seb,

I still need a little help. I have no difficulty in the field "Author" with this code:

        my $nom = $self->get_node_content( $xml, 'creator' );
        my( $family, $given ) = split /,\s*/, $nom;
push @{$epdata->{creators_name}}, { family => $family, given => $given };

But now i am trying to write data into a field of type "subject" like:

"<instit><item>INPT</item></instit>"

I tried without success things like:
        my $instit = "INPT";
        push @{$epdata->{instit}}, { instit => $instit };

This code writes well but not what I want:

Institution:    ?? HASH(0x6207540) ??

how could I do this? It must be very simple, but I can not do it ...

Finally, if you have a complete example code, I'm interested!

Thanks again.

Jean-Marie

--

***********************************************
Jean Marie Le Bechec
Service Commun de la Documentation
Responsable ingenierie documentaire
&
Direction du Systeme d'Information
Referent Etudes

Institut National Polytechnique de Toulouse
6 allee Emile Monso - bp 34038 -
31029 Toulouse cedex 4
Tel : 05 34 32 31 16
Mail : lebechec@inp-toulouse.fr
***********************************************

Le 11/09/2012 12:02, Sebastien Francois a écrit :
Hello Jean-Marie,

Try with: http://files.eprints.org/798/

(and can you let me know if this fixed your issue?...)

Seb.

On 10/09/12 08:36, Jean-Marie Le Bechec wrote:
Hi,

I try to install OAI Harvester 1.02 on my eprints (3.2.4) but the script
give me this error :

sh-3.2$ ./harvest oatao --plugin=OAIPMH::OAI_DC --conf=stub
Are you sure you want to make bulk changes to the eprint table in the
oatao repository [yes/no] ? yes
Can't locate object method "getElementsByTagName" via package
"XML::LibXML::Text" at
/appli/eprints/perl_lib/EPrints/Plugin/Import/OAIPMH.pm line 427,
<STDIN>  line 1.

Thank you for your help.

Jean-Marie

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/