EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07672
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Modifying Details.pm/Overwriting module
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Modifying Details.pm/Overwriting module
- From: James Kerwin <jkerwin2101@gmail.com>
- Date: Wed, 30 Jan 2019 07:50:15 +0000
Hi All,
Could somebody please tell me how to overwrite an existing Perl module in EPrints?
I recently made some changes to Details.pm. I know better than to modify it in-situ, so I took a copy and moved it to my specific EPrint archive.
Original:
eprints3/perl_lib/EPrints/Plugin/Screen/EPrint/Details.pm
New edited version:
eprints3/archives/uolrepo/cfg/plugins/EPrints/Plugin/Screen/EPrint/Details.pm
EPrints didn't pick up my changes (even after a server restart) unless I named the edited module something different so I called it:
Detailz.pm (package EPrints::Plugin::Screen::EPrint::Detailz;)
I've made the changes to how the page renders, but my problem now is I have a "Details" and "Details2" tab on the staff view of an EPrint. I want only my new Details.pm module to be brought in. I did follow Adam Field's YouTube video that touched on this, but it wasn't quite the same problem and didn't work.
Thanks,
James
- Follow-Ups:
- [EP-tech] Modifying Details.pm/Overwriting module
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Modifying Details.pm/Overwriting module
- References:
- [EP-tech] Modifying Details.pm/Overwriting module
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Modifying Details.pm/Overwriting module
- Prev by Date: Re: [EP-tech] Workflows involving other users
- Next by Date: Re: [EP-tech] Modifying Details.pm/Overwriting module
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):