[EP-tech] Re: editing default pins

John Salter J.Salter at leeds.ac.uk
Wed Nov 6 16:51:01 GMT 2013


Look at ~/perl_lib/EPrints/Plugin/Screen/Login.pm

If what you want to change is contained solely within the phrases it uses, copy those phrases from ~/lib/lang/en/phrases/system.xml (or wherever they may be) to ~/archives/ARCHIVEID/cfg/lang/en/phrases/system_overrides.xml (or any sensible XML file in there).

If you need to change things  bit more radically:
Copy ~/perl_lib/EPrints/Plugin/Screen/Login.pm to ~/archives/ARCHIVEID/cfg/plugins/EPrints/Plugin/Screen/... Use a filename like ArchiveIDLogin.pm

Change the package name in that file to reflect the new name you've just given it.

In ~/archives/ARCHIVEID/cfg/cfg.d/plugins.pl (or some other file in that directory), define:

$c->{plugin_alias_map}->{"Screen::Login"} = "Screen::AcrchiveIDLogin"; #or whatever you've called your new copy
$c->{plugin_alias_map}->{"Screen::Login"} = undef;

Once you get this working OK (maybe add an extra class to something that's being rendered so you can check that the copy is being used to generate the login page), start hacking your ArchiveIDLogin.pm to do what you want it to.

I thought there was some easy way to set a template for this, but currently I haven't been able to work out how :o\
I was expecting to do something like:
$self->{template} = 'login';
 - but this doesn't seem to work.

Maybe someone else can offer guidance on how to achieve this?

Cheers,
John


________________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk [eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Derek Lawrie [d.lawrie at nua.ac.uk]
Sent: 05 November 2013 14:59
To: Eprints
Subject: [EP-tech]  editing default pins

I'd like to edit the output of the default login form, I presume the
output is generated from the epc:pin "page"?
I don't know if I should be editing that or if I could apply a template to
only apply to the login?

Any thoughts?

Thanks
Derek

Rated top Specialist Arts Institution in the UK (National Student Survey 2013) and best Specialist Institution in Art and Design (Complete University Guide 2014)

Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the University.

This email and any files sent with it are intended only for the named recipient and may be confidential. If you are not the named recipient please email the sender immediately then delete this message. You should not disclose the content, distribute or retain any copies of this message.


Norwich University of the Arts,
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Tel: 01603 610561
Fax: 01603 615728
www.nua.ac.uk<http://www.nua.ac.uk>

NUA Business Limited
Registered office:
Francis House,
3-7 Redwell Street,
Norwich, NR2 4SN.
Registered in England & Wales number 3001912



More information about the Eprints-tech mailing list