[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Altering DajaObj/Eprint.pm behaviour without altering core code
- Subject: [EP-tech] Altering DajaObj/Eprint.pm behaviour without altering core code
- From: J.Salter at leeds.ac.uk (John Salter)
- Date: Wed, 4 Apr 2012 12:18:41 +0100
I'm trying to do something the 'right way'*.
This advice: http://wiki.eprints.org/w/Read_Only_Directories says I shouldn't be editing anything under eprints3/perl_lib/ (with a couple of exceptions).
I need to alter the 'render_fileinfo' subroutine in ~/perl_lib/EPrints/DataObj/EPrint.pm.
How do I achieve this without:
- altering the Eprint.pm file
- ending up with some 'Subroutine render_fileinfo redefined' messages
- using "no warnings 'redefine';" ;o)
I've tried various attempts - without success.
I'm sure it can be done, and I'm sure it's a bit of perl magic I'm missing, and hopefully someone here can help!
Cheers,
John
*http://blogs.ecs.soton.ac.uk/oneshare/2009/09/25/taking-stock-and-mopping-up-the-mess-i-made-of-eprints/