EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03760
< 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: Lizz Jennings <E.Jennings@bath.ac.uk>
- Date: Sun, 11 Jan 2015 10:31:02 +0000
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 used this in numerous places to work out what's in a particular variable, and when I tried it in the perl_lib it did exactly what I needed, but obviously once I've worked out what's where, I'll want to be able to change it so I need the local file to actually register. 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>
Sent: 09 January 2015 19:40 To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Re: Local plugin 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
EPrints Services On 9 Jan 2015, at 18:56, Lizz Jennings <e.jennings@bath.ac.uk> wrote:
|
- 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] Local plugin
- Prev by Date: [EP-tech] sorting of Divisions
- Next by Date: [EP-tech] Re: sorting of Divisions
- Previous by thread: [EP-tech] Re: Local plugin
- Next by thread: [EP-tech] Re: Local plugin
- Index(es):