EPrints Technical Mailing List Archive

Message: #09543


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Default import plugin


CAUTION: This e-mail originated outside the University of Southampton.

Thanks John,

I knew I’d gone too deep!

 

The correct setting, (tested in version 3.4.5), for anyone else’s future reference, is:

 

$c->{plugins}->{"Screen::Import"}->{params}->{"default_import_plugin"} = "Import::DOI";

 

Alan

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk>
Date: Thursday, 18 January 2024 at 11:08
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: RE: [EP-tech] Default import plugin

External email: if the sender or content looks suspicious, please click the Report Message icon, or forward it to report-phishing

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi Alan,
I’d have guessed something like this (in an appropriate cdf.d file) is all that would be needed:
$c->{plugins}->{"Screen::Import"}->{params}->{
default_import_plugin} = ‘DOI’;

 

Not tested – but should be easy to try!

 

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]
Sent: 18 January 2024 10:57
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Default import plugin

 

CAUTION: External Message. Use caution opening links and attachments.

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi all,

 

I’m trying to remove old customisations where the current core code now performs similar functions. One of the things is a custom version of the Screen::Import::render_import_bar to set a default plugin using a config value, where it appears TMB added a similar function to core, as seen in

 

https://github.com/eprints/eprints3.4/blob/98f41c2b64c4b06701fae6edc3d66f2f724a6ec4/perl_lib/EPrints/Plugin/Screen/Import.pm#L652

 

In order to set that “default_import_plugin” parameter, am I right in thinking I’d still need to have a customised Screen::Items plugin to call (something like) “render_import_bar( default_import_plugin=’DOI’); “   or have I completely overthought it?

 

Thanks,

 

Alan

The Open University logo

Alan Stiles (he/him), Digital Repository Developer
Library Services, Learner and Discovery Services

oro.open.ac.uk
The Open University, Walton Hall, Milton Keynes, United Kingdom, MK7 7DA

signature_408893004orcid.org/0000-0003-3343-1088