EPrints Technical Mailing List Archive
Message: #06374
< 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
- To: "eprints-tech@ecs.soton.ac.uk" <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
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Wed, 22 Mar 2017 21:47:36 +0000
Yay! Glad we got there in the end!
My approach to this would have been slightly different.
I would have used the plugin alias technique (see:
https://github.com/eprints/eprints/blob/3.3/lib/defaultcfg/cfg.d/plugins.pl#L46-L54) to
get the new plugin to respond where the old one would normally respond.
If the new plugin will be used by multiple archives, create it in lib/plugins/.
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.
The plugin alias would then look like (e.g. in z_oai.pl):
The config above would map the alias the plugin only for the archive with this config applied.
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.
I hope the process of debugging was useful - I find this type of thing really good to help understand how the software works!
Cheers,
John
Sent: 22 March 2017 18:16:55
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
If you don't, I wonder if there is another DC_Ext somewhere (<eprints_root>/lib/plugins/
EPrints/Plugin/Export/?) that *is* working.
- References:
- Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- From: Alfredo Cosco <alfredo.cosco@gmail.com>
- Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- Prev by Date: Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- Next by Date: [EP-tech] Problem with staff search 3.3.15
- Previous by thread: Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- Next by thread: Re: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- Index(es):