<div dir="ltr">Thanks John,<div>I launched your script, this is the result:</div><div><br></div><div><div>eprints@myhost:~/bin/local$ ./check_plugin sandbox2 Export::OAI_DC</div><div>Checking Export::OAI_DC</div><div>Plugin Export::OAI_DC seems to be OK...</div><div>Plugin Export::OAI_DC is module: EPrints::Plugin::Export::OAI_DC.</div><div><br></div><div>eprints@myhost:~/bin/local$ ./check_plugin sandbox2 Export::OAI_DC_Ext</div><div>Checking Export::OAI_DC_Ext</div><div>Plugin Export::OAI_DC_Ext seems to be OK...</div><div>Plugin Export::OAI_DC_Ext is module: EPrints::Plugin::Export::OAI_DC_Ext.</div><div><br></div><div>eprints@myhost:~/bin/local$ ./check_plugin sandbox2 Export::DC_Ext</div><div>Checking Export::DC_Ext</div><div>Plugin Export::DC_Ext seems to be OK...</div><div>Plugin Export::DC_Ext is module: EPrints::Plugin::Export::DC_Ext.</div></div><div><br></div><div>Everything seems to be OK, but It&#39;s not working.<br></div><div>Alfredo</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-22 13:04 GMT+01:00 John Salter <span dir="ltr">&lt;<a href="mailto:J.Salter@leeds.ac.uk" target="_blank">J.Salter@leeds.ac.uk</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div class="m_-3261944825518441871WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Have a look at this:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><a href="https://gist.github.com/jesusbagpuss/6145b93171dff32800f24750eb7fd419" target="_blank">https://gist.github.com/<wbr>jesusbagpuss/<wbr>6145b93171dff32800f24750eb7fd4<wbr>19</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">It does sound like the plugin is not being loaded for some reason. This script might help locate the issue!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">John<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.<wbr>soton.ac.uk</a> [mailto:<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@<wbr>ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Alfredo Cosco<br>
<b>Sent:</b> 22 March 2017 11:05</span></p><div><div class="h5"><br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> Re: [EP-tech] [Eprints 3.3.4] Plugin doesn&#39;t work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Thank you John, <u></u><u></u></p>
<div>
<p class="MsoNormal">I have alredy enabled the developer mode, I&#39;ll follow your suggestions. to debug the module.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">PS: Even if i comment the brackets on line 21 nothing happens.<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2017-03-22 11:50 GMT+01:00 John Salter &lt;<a href="mailto:J.Salter@leeds.ac.uk" target="_blank">J.Salter@leeds.ac.uk</a>&gt;:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Reading this again, just commenting out that line will leave the opening bracket on line 21 - which
 matches the closing one on line 58 - which is a valid Perl block - so you haven&#39;t created an error!</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Try commenting out line 21 as well - I think this will make an error - but the EPrints plugin system
 may catch this - and disable the plugin automatically.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Cheers,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">John</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.<wbr>soton.ac.uk</a> [mailto:<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@<wbr>ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Alfredo Cosco<br>
<b>Sent:</b> 22 March 2017 10:38<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> Re: [EP-tech] [Eprints 3.3.4] Plugin doesn&#39;t work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">There is an other strange thing.<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Even if i made a voluntary error in: <a href="https://github.com/orazionelson/openaire-compliance/blob/master/cfg/plugins/EPrints/Plugin/Export/DC_Ext.pm#L20" target="_blank"><span style="font-size:9.5pt">https://github.com/<wbr>orazionelson/openaire-<wbr>compliance/blob/master/cfg/<wbr>plugins/EPrints/Plugin/Export/<wbr>DC_Ext.pm</span></a> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">e.g. comment the if statement on line 20:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">#<span class="m_-3261944825518441871m-6279181369195824278gmail-pl-k"><span style="font-size:9.0pt;font-family:Consolas;color:#a71d5d">if</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;background:#f8eec7">(
</span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-smi"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">$eprint</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-k"><span style="font-size:9.0pt;font-family:Consolas;color:#a71d5d">-&gt;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;background:#f8eec7">exists_and_set(
</span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">eu_project</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;background:#f8eec7">
 ) &amp;&amp; </span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-smi"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">$eprint</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-k"><span style="font-size:9.0pt;font-family:Consolas;color:#a71d5d">-&gt;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;background:#f8eec7">get_value(
</span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">eu_project</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;background:#f8eec7">
 ) </span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-c1"><span style="font-size:9.0pt;font-family:Consolas;color:#0086b3">eq</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;background:#f8eec7">
</span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">yes</span></span><span class="m_-3261944825518441871m-6279181369195824278gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;background:#f8eec7">
 )</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
and I do NOT comment its closing bracket on line 58<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I don&#39;t receive any error message on screen: where do I have to look to read errors?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Alfredo<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">2017-03-21 22:41 GMT+01:00 Alfredo Cosco &lt;<a href="mailto:alfredo.cosco@gmail.com" target="_blank">alfredo.cosco@gmail.com</a>&gt;:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<div>
<p class="MsoNormal">It was one of my first doubts.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I tried to comment the IF statement + reload configuration + restart apache<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">nothing happens :|<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Alfredo<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">2017-03-21 20:19 GMT+01:00 Alen Vodopijevec &lt;<a href="mailto:alen@irb.hr" target="_blank">alen@irb.hr</a>&gt;:<u></u><u></u></p>
<div>
<div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal">Hi!<br>
<br>
Are sure that this IF statment passes?<br>
<a href="https://github.com/orazionelson/openaire-compliance/blob/master/cfg/plugins/EPrints/Plugin/Export/DC_Ext.pm#L20" target="_blank">https://github.com/<wbr>orazionelson/openaire-<wbr>compliance/blob/master/cfg/<wbr>plugins/EPrints/Plugin/Export/<wbr>DC_Ext.pm#L20</a><br>
<br>
We are OpenAIRE 3.0 compliant and I will publish the code tomorrow. It&#39;s<br>
a bit different solution but you will be able to compare the output part.<br>
<br>
Best,<br>
Alen<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
On 03/21/2017 05:56 PM, Alfredo Cosco wrote:<br>
&gt; Hi All,<br>
&gt; my organization asked me to implement OpenAire plugin:<br>
&gt;<br>
&gt; <a href="https://github.com/eprintsug/openaire-compliance" target="_blank">https://github.com/eprintsug/<wbr>openaire-compliance</a><br>
&gt;<br>
&gt; then they asked me:<br>
&gt; 1) to upgrade the compliance to the level 2.0 or 3.0 of OpenAire Guidelines<br>
&gt; see:<br>
&gt; <a href="https://guidelines.openaire.eu/en/latest/index.html" target="_blank">https://guidelines.openaire.<wbr>eu/en/latest/index.html</a><br>
&gt;<br>
&gt; 2) to have a more user friendly interface<br>
&gt;<br>
&gt; So I forked the github repo and did it:<br>
&gt;<br>
&gt; <a href="https://github.com/orazionelson/openaire-compliance" target="_blank">https://github.com/<wbr>orazionelson/openaire-<wbr>compliance</a><br>
&gt;<br>
&gt; But there is a problem, everything works fine except the OAI push.<br>
&gt;<br>
&gt; I made a test archive with one record, as you can see there are the<br>
&gt; metadata for EU Projects:<br>
&gt;<br>
&gt; <a href="http://www.fedoaempty.unina.it/1/" target="_blank">http://www.fedoaempty.unina.<wbr>it/1/</a><br>
&gt;<br>
&gt; But if you look at OAI-PMH file EU Projects metadata are not displayed:<br>
&gt;<br>
&gt; <a href="http://www.fedoaempty.unina.it/cgi/oai2?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=openaire" target="_blank">
http://www.fedoaempty.unina.<wbr>it/cgi/oai2?verb=ListRecords&amp;<wbr>metadataPrefix=oai_dc&amp;set=<wbr>openaire</a><br>
&gt;<br>
&gt; It seems that:<br>
&gt; cfg/plugins/EPrints/Plugin/<wbr>Export/DC_Ext.pm<br>
&gt;<br>
&gt; doesn&#39;t work ... but I don&#39;t know why and how to debug it.<br>
&gt;<br>
&gt; any help is appreciated, thanks,<br>
&gt; Alfredo<br>
&gt;<br>
&gt;<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">&gt; ----------------------------- Upozorenje -----------------------------<br>
&gt;<br>
&gt; Automatskom detekcijom utvrdjeno je da tekst ove poruke<br>
&gt; podsjeca na tzv. phishing poruku.<br>
&gt;<br>
&gt; AKO SE U PORUCI TRAZI DA POSALJETE VASU IRB LOZINKU ILI<br>
&gt; DA UNESETE IRB PODATKE NA NAVEDENOM LINKU, RADI SE O<br>
&gt; NAPADU S CILJEM KRADJE I ZLOUPOTREBE PODATAKA.<br>
&gt;<br>
&gt; Centar za informatiku i racunarstvo,<br>
&gt; Institut Rudjer Boskovic<br>
&gt;<br>
&gt; ----------------------------- Upozorenje -----------------------------<br>
&gt;<br>
&gt;<br>
&gt; *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">
http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
&gt; *** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
&gt; *** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">
http://wiki.eprints.org/</a><br>
&gt; *** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">
http://forum.eprints.org/</a><br>
&gt;<br>
<br>
--<br>
Alen Vodopijevec<br>
<br>
Odsjek za informacijske tehnologije<br>
Centar za znanstvene informacije<br>
Institut Ruđer Bošković<br>
------------------------------<wbr>------------------<br>
IT Section<br>
Centre for Scientific Information<br>
Rudjer Boskovic Institute<br>
------------------------------<wbr>------------------<br>
Addr: Bijenicka cesta 54, Zagreb, HR<br>
Email: <a href="mailto:alen@irb.hr" target="_blank">alen@irb.hr</a><br>
Web: <a href="http://www.lib.irb.hr" target="_blank">www.lib.irb.hr</a> | <a href="http://www.irb.hr" target="_blank">
www.irb.hr</a><br>
Tel: <a href="tel:%2B%20385%201%204560%20929%2C%20x1243" target="_blank">+ 385 1 4560 929, x1243</a><br>
Mob: <a href="tel:%2B%20385%2098%20584%20045" target="_blank">+ 385 98 584 045</a><br>
<br>
Skype: vodopijevec<br>
GTalk: alen.vodopijevec<br>
<br>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">
http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">
http://forum.eprints.org/</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">
http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">
http://forum.eprints.org/</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">
http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">
http://forum.eprints.org/</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

<br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br></blockquote></div><br></div>