EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09800
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
RE: [EP-tech] Override 3.4.5 Import plugin
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: RE: [EP-tech] Override 3.4.5 Import plugin
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Thu, 25 Jul 2024 15:46:15 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi Alan, From:
https://github.com/eprints/eprints3.4/blob/v3.4.5/flavours/pub_lib/cfg.d/plugins.pl#L46-L54 it looks like they do.
$c->{plugin_alias_map}->{"Import::DOI"} = "Import::LocalDOI"; $c->{plugin_alias_map}->{"Import::LocalDOI"} = undef; # hide this so only the above shows in the import list might do the trick? Cheers, John From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk>
On Behalf Of Alan.Stiles [He/Him/They]
CAUTION:
This e-mail originated outside the University of Southampton. CAUTION:
This e-mail originated outside the University of Southampton. Hi, I’m trying to override the way /opt/eprints/flavours/pub_lib/plugins/EPrints/Plugin/Import/DOI.pm checks for duplicates so it includes the review buffer. Obviously, if I update that file it will work fine, but it also means I’ve changed the core code, which is not good. I’ve attempted to override it in /opt/eprints/archive/{ARCHIVE_ID]/cfg/plugins/EPrints/Plugin/Import/DOI.pm with and without replacing the function pointers e.g. package EPrints::Plugin::Import::DOI; undef &EPrints::Plugin::Import::DOI::input_text_fh; *EPrints::Plugin::Import::DOI::input_text_fh = \&local_input_text_fh; and it just doesn’t seem to pick up my code changes. Please tell me the obvious thing I’m overlooking! Alan |
- References:
- [EP-tech] Override 3.4.5 Import plugin
- From: "Alan.Stiles [He/Him/They]" <alan.stiles@open.ac.uk>
- [EP-tech] Override 3.4.5 Import plugin
- Prev by Date: [EP-tech] Override 3.4.5 Import plugin
- Next by Date: [EP-tech] MyISAM to InnoDB
- Previous by thread: [EP-tech] Override 3.4.5 Import plugin
- Next by thread: [EP-tech] MyISAM to InnoDB
- Index(es):