EPrints Technical Mailing List Archive

Message: #01611


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

[EP-tech] Re: Oai-pmh english output


On Thu, 2013-02-21 at 09:47 +0100, Paolo Tealdi wrote:
> Dear all,
> 
> we are managing to become  open-aire  and some other italian harvester compliant.
> We notice that default DC:type attribute is set in italian language (our default eprints lang).
> I think that this is not correct. I think that ~/cgi/oai script should force english language.
> The code could be this :
> 
> In ~/archives/ARCHIVEID/cfg/cfg.d/oai.pl add
> 
> $oai->{v2}->{lang} = "en";
> 
> In ~/cgi/oai add
> 
> if ( my $lang = $repo->config( "oai","v2","lang" )) {
>    $repo->change_lang( $lang);
> }
> 
> My .02 (euro)cents

Agreed.

But, given OAI-PMH builds on HTTP a harvester should probably set
"Accept-Language", which would cause EPrints to generate metadata in the
most-appropriate language for the client.

Something I hadn't considered before now.

-- 
All the best,
Tim

Attachment: signature.asc
Description: This is a digitally signed message part