EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03764
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Local plugin
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Local plugin
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Mon, 12 Jan 2015 10:20:10 +0000
Presumably you only have one repository instance on this eprints install? That one has frustrated me a couple of times. Alan From: Lizz Jennings [mailto:E.Jennings@bath.ac.uk]
I’ve restarted Apache – the test says “Everything seems OK.” I’ve copied the process I’ve used on other things which are working as expected… Lizz -- Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2014) Technical Data Officer The Library 4.10, University of Bath, Bath, BA2 7AY UK Ext. 3570 (External 01225 383570) Research Data Management:
http://www.bath.ac.uk/research/data From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of John Salter That all looks sane to me… If you do a: ~/bin/epadmin test
does it return any errors (if you have multiple archives, you can add the ARCHIVEID at the end of that command to test just that one)? And I’m guessing you’ve restarted Apache (or done a ~/bin/epadmin reload ARCHIVEID)? Cheers, John From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Lizz Jennings I'm trying to make a small change to the UploadMethod.pm file from: /perl_lib/EPrints/Plugin/Screen/EPrint I've copied it to: /usr/share/eprints/archives/[name]/cfg/plugins/EPrints/Plugin/Screen/EPrint and renamed it to UBUploadMethod.pm I'm (at first) just adding a little logging script: open(LIZZLOG, ">>/usr/share/eprints/archives/[name]/lizz.log") || die "Cannot open file: $!"; print LIZZLOG "UBUploadMethod filename: $filename \n"; close(LIZZLOG);
I've renamed the package to: EPrints::Plugin::Screen::EPrint::UBUploadMethod and I've added the alias to the plugins.pl cfg file: $c->{plugin_alias_map}->{"Screen::EPrint::UploadMethod"} = "Screen::EPrint::UBUploadMethod"; $c->{plugin_alias_map}->{"Screen::EPrint::UBUploadMethod"} = undef; Lizz -- Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2014) Technical Data Officer The Library 4.10, University of Bath, Bath, BA2 7AY UK Ext. 3570 (External 01225 383570) Research Data Management: http://www.bath.ac.uk/research/data From:
eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Adam Field <af05v@ecs.soton.ac.uk> Hi
Could you post a little more detail, please. What code are you putting in which files in which directories? -- Adam Business Relationship Manager and Community Lead On 9 Jan 2015, at 18:56, Lizz Jennings <e.jennings@bath.ac.uk> wrote: Hi, I'm trying to get a local version of a perl_lib file to change some behaviour - I can't seem to get it to register - I'm only trying to write to a log
file at the moment to see what it's doing, and I temporarily put it in the perl_lib file where it works, but obviously I want to be able to make local changes. I've given it a local package name and added it to the config and restarted apache and it resolutely refuses to recognise it. What am I missing? Lizz -- Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2014) Technical Data Officer The Library 4.10, University of Bath, Bath, BA2 7AY UK Ext. 3570 (External 01225 383570) Research Data Management: http://www.bath.ac.uk/research/data *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech |
- References:
- [EP-tech] Local plugin
- From: Lizz Jennings <E.Jennings@bath.ac.uk>
- [EP-tech] Re: Local plugin
- From: Adam Field <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Local plugin
- From: Lizz Jennings <E.Jennings@bath.ac.uk>
- [EP-tech] Re: Local plugin
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Re: Local plugin
- From: Lizz Jennings <E.Jennings@bath.ac.uk>
- [EP-tech] Local plugin
- Prev by Date: [EP-tech] Re: Local plugin
- Next by Date: [EP-tech] Re: Local plugin
- Previous by thread: [EP-tech] Re: Local plugin
- Next by thread: [EP-tech] Re: Local plugin
- Index(es):