<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.gmail-pl-k
        {mso-style-name:gmail-pl-k;}
span.gmail-pl-smi
        {mso-style-name:gmail-pl-smi;}
span.gmail-pl-s
        {mso-style-name:gmail-pl-s;}
span.gmail-pl-pds
        {mso-style-name:gmail-pl-pds;}
span.gmail-pl-c1
        {mso-style-name:gmail-pl-c1;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">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't created an error!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></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"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Alfredo Cosco<br>
<b>Sent:</b> 22 March 2017 10:38<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">There is an other strange thing.<o:p></o:p></p>
<div>
<p class="MsoNormal">Even if i made a voluntary error in:&nbsp;<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/orazionelson/openaire-compliance/blob/master/cfg/plugins/EPrints/Plugin/Export/DC_Ext.pm</span></a>&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">e.g. comment the if statement on line 20:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#<span class="gmail-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="gmail-pl-smi"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">$eprint</span></span><span class="gmail-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="gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span class="gmail-pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">eu_project</span></span><span class="gmail-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="gmail-pl-smi"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">$eprint</span></span><span class="gmail-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="gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span class="gmail-pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">eu_project</span></span><span class="gmail-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="gmail-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="gmail-pl-pds"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">&quot;</span></span><span class="gmail-pl-s"><span style="font-size:9.0pt;font-family:Consolas;color:#183691">yes</span></span><span class="gmail-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><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
and I do NOT comment its closing bracket on line 58<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I don't receive any error message on screen: where do I have to look to read errors?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Alfredo<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">2017-03-21 22:41 GMT&#43;01:00 Alfredo Cosco &lt;<a href="mailto:alfredo.cosco@gmail.com" target="_blank">alfredo.cosco@gmail.com</a>&gt;:<o:p></o:p></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>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<div>
<p class="MsoNormal">It was one of my first doubts.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I tried to comment the IF statement &#43; reload configuration &#43; restart apache<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">nothing happens :|<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Alfredo<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">2017-03-21 20:19 GMT&#43;01:00 Alen Vodopijevec &lt;<a href="mailto:alen@irb.hr" target="_blank">alen@irb.hr</a>&gt;:<o:p></o:p></p>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<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/orazionelson/openaire-compliance/blob/master/cfg/plugins/EPrints/Plugin/Export/DC_Ext.pm#L20</a><br>
<br>
We are OpenAIRE 3.0 compliant and I will publish the code tomorrow. It's<br>
a bit different solution but you will be able to compare the output part.<br>
<br>
Best,<br>
Alen<o:p></o:p></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/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.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/orazionelson/openaire-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.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.it/cgi/oai2?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=openaire</a><br>
&gt;<br>
&gt; It seems that:<br>
&gt; cfg/plugins/EPrints/Plugin/Export/DC_Ext.pm<br>
&gt;<br>
&gt; doesn't work ... but I don't know why and how to debug it.<br>
&gt;<br>
&gt; any help is appreciated, thanks,<br>
&gt; Alfredo<br>
&gt;<br>
&gt;<o:p></o:p></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.uk/mailman/listinfo/eprints-tech</a><br>
&gt; *** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.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>
------------------------------------------------<br>
IT Section<br>
Centre for Scientific Information<br>
Rudjer Boskovic Institute<br>
------------------------------------------------<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">&#43; 385 1 4560 929, x1243</a><br>
Mob: <a href="tel:%2B%20385%2098%20584%20045" target="_blank">&#43; 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.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.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><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></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.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.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><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>