<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Yay! Glad we got there in the end!</p>
<p><br>
</p>
<p>My approach to this would have been slightly different. </p>
<p><span style="font-size: 12pt;">I would have used the plugin alias technique (see:
</span><a href="https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/plugins.pl#L46-L54" class="OWAAutoLink" id="LPlnk620611" previewremoved="true" style="font-size: 12pt;">https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/plugins.pl#L46-L54</a><span style="font-size: 12pt;">)</span><span style="font-size: 12pt;"> to
get the new plugin to respond where the old one would normally respond.</span><br>
</p>
<p><br>
</p>
<p>If the new plugin will be used by multiple archives, create it in lib/plugins/.</p>
<p>If it will be used by one archive, but under an EPrints install that runs multiple archives, I'd add the archiveid to the package name e.g. EPrints::Plugin::Export::Fedoa_OAI_DC.</p>
<p></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
The plugin alias would then look like (e.g. in z_oai.pl):</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
</p>
<div># make the new plugin respond where the OAI_DC plugin would normally respond</div>
<div>$c->{plugin_alias_map}->{"Export::OAI_DC"} = "Export::Fedoa_OAI_DC";</div>
<div># 'hide' the new plugin - so it doesn't appear as an alternative to the overloaded plugin</div>
<div>$c->{plugin_alias_map}->{"Export::Fedoa_OAI_DC"} = undef;</div>
<br>
<p></p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
The config above would map the alias the plugin only for the archive with this config applied.</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
As always, there are many ways to do things - I'm not suggesting my approach is better - just a different way of achieving the same thing.</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
I hope the process of debugging was useful - I find this type of thing really good to help understand how the software works!</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
Cheers,</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
John</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</p>
<p></p>
<p><br>
</p>
<p><span style="font-size: 12pt;"></span></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Alfredo Cosco <alfredo.cosco@gmail.com><br>
<b>Sent:</b> 22 March 2017 18:16:55<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</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><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_1577972142706640748WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If you don't, I wonder if there is another DC_Ext somewhere (<eprints_root>/lib/plugins/<wbr>EPrints/Plugin/Export/?) that *is* working.</span></p>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>EUREKA!</div>
<div>There was the old OpenAire plug-in working with the same name in on an other archive, I couldn't imagine it was able to affect all other instances.</div>
<div><br>
</div>
<div>I changed the plugin name and everything works well! (Github upgraded)</div>
<div><br>
</div>
<div>thanks you very much, better than Dr. House</div>
<div> </div>
</div>
</div>
</div>
</div>
</body>
</html>