EPrints Technical Mailing List Archive

Message: #02375

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

[EP-tech] Re: editing default pins

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?


From: eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Derek Lawrie [d.lawrie@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?


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

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