EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #06363


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

Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance


Hi Alfredo,

This sounds like the plugin itself isn't enabled. I'd started writing the stuff below before your most recent email - it should help get you started debugging!

 

To answer your 'but I don't know why and how to debug it' question:

As it's a test repository, I would turn developer mode on:

<eprints_root>/bin/epadmin set_developer_mode ARCHIVEID on

This means the config is reloaded for each request (so making changes to the plugin is quicker to test!).

 

I would then tail the apache error log in a separate terminal e.g.:

> tail -f /var/log/httpd/error_log

 

And then start editing the plugin that isn't working - printing to STDERR at relevant places - which should appear in the error log.

 

You could start by e.g. checking the plugin that should be responding is responding:

print STDERR ref $self;

 

You can turn developer mode off again by running:

<eprints_root>/bin/epadmin set_developer_mode ARCHIVEID off

 

 

 

I can't see anything obvious - I'm not quite sure why the plugin does:

use base …;

rather than

use …

@ISA = ( "…" );

 

(maybe someone can explain that - I might be doing thing wrong!).

 

Cheers,

John

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Alfredo Cosco
Sent: 22 March 2017 10:38
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance

 

There is an other strange thing.

 

e.g. comment the if statement on line 20:

#if( $eprint->exists_and_set( "eu_project" ) && $eprint->get_value( "eu_project" ) eq "yes" )


and I do NOT comment its closing bracket on line 58

 

I don't receive any error message on screen: where do I have to look to read errors?

 

Thanks,

Alfredo

 

 

 

2017-03-21 22:41 GMT+01:00 Alfredo Cosco <alfredo.cosco@gmail.com>:

Hello,

It was one of my first doubts.

I tried to comment the IF statement + reload configuration + restart apache

 

nothing happens :|

 

thanks,

Alfredo

 

2017-03-21 20:19 GMT+01:00 Alen Vodopijevec <alen@irb.hr>:

Hi!

Are sure that this IF statment passes?
https://github.com/orazionelson/openaire-compliance/blob/master/cfg/plugins/EPrints/Plugin/Export/DC_Ext.pm#L20

We are OpenAIRE 3.0 compliant and I will publish the code tomorrow. It's
a bit different solution but you will be able to compare the output part.

Best,
Alen



On 03/21/2017 05:56 PM, Alfredo Cosco wrote:
> Hi All,
> my organization asked me to implement OpenAire plugin:
>
> https://github.com/eprintsug/openaire-compliance
>
> then they asked me:
> 1) to upgrade the compliance to the level 2.0 or 3.0 of OpenAire Guidelines
> see:
> https://guidelines.openaire.eu/en/latest/index.html
>
> 2) to have a more user friendly interface
>
> So I forked the github repo and did it:
>
> https://github.com/orazionelson/openaire-compliance
>
> But there is a problem, everything works fine except the OAI push.
>
> I made a test archive with one record, as you can see there are the
> metadata for EU Projects:
>
> http://www.fedoaempty.unina.it/1/
>
> But if you look at OAI-PMH file EU Projects metadata are not displayed:
>
> http://www.fedoaempty.unina.it/cgi/oai2?verb=ListRecords&metadataPrefix=oai_dc&set=openaire
>
> It seems that:
> cfg/plugins/EPrints/Plugin/Export/DC_Ext.pm
>
> doesn't work ... but I don't know why and how to debug it.
>
> any help is appreciated, thanks,
> Alfredo
>
>

> ----------------------------- Upozorenje -----------------------------
>
> Automatskom detekcijom utvrdjeno je da tekst ove poruke
> podsjeca na tzv. phishing poruku.
>
> AKO SE U PORUCI TRAZI DA POSALJETE VASU IRB LOZINKU ILI
> DA UNESETE IRB PODATKE NA NAVEDENOM LINKU, RADI SE O
> NAPADU S CILJEM KRADJE I ZLOUPOTREBE PODATAKA.
>
> Centar za informatiku i racunarstvo,
> Institut Rudjer Boskovic
>
> ----------------------------- Upozorenje -----------------------------
>
>
> *** 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/
> *** EPrints developers Forum: http://forum.eprints.org/
>

--
Alen Vodopijevec

Odsjek za informacijske tehnologije
Centar za znanstvene informacije
Institut Ruđer Bošković
------------------------------------------------
IT Section
Centre for Scientific Information
Rudjer Boskovic Institute
------------------------------------------------
Addr: Bijenicka cesta 54, Zagreb, HR
Email: alen@irb.hr
Web: www.lib.irb.hr | www.irb.hr
Tel: + 385 1 4560 929, x1243
Mob: + 385 98 584 045

Skype: vodopijevec
GTalk: alen.vodopijevec

*** 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/
*** EPrints developers Forum: http://forum.eprints.org/

 


*** 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/
*** EPrints developers Forum: http://forum.eprints.org/