EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04943
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Use as Template
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Use as Template
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- Date: Thu, 15 Oct 2015 15:21:07 +0000
Two emails in a row with “Might work, not sure if it’s a good idea!” or variations thereof!
J I’ll speak internally and see if it’s so pressing that we do this – if not I’d rather err on the side of caution given the fragile nature of our repo as is! From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field Ooohhh, once again, John has spotted the issue. I wonder if you can set the can_clone property on the fly by subclassing the UseAsTemplate class: package EPrints::Plugin::Screen::EPrint::TemplateWithContactEmail; use strict; use warnings; use EPrints::Plugin::Screen::EPrint::UseAsTemplate; sub action_use_as_template { my ($self) = @_; my $field = $self->repository->dataset('eprint')->metafield('contact_email); my $p = field->get_property('can_clone'); $metafield->set_property('can_clone', 1); $self::SUPER->action_use_as_template; $metafield->set_property('can_clone', $p); } ...then use the settings in plugins.pl to disable the default plugin and mask the new one as that. I've no idea if this will work, or even if it's a good idea. -- On 15 Oct 2015, at 14:58, John Salter <J.Salter@leeds.ac.uk> wrote:
Hi, Hello all,
|
- Follow-Ups:
- [EP-tech] Re: Use as Template
- From: Adam Field <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Use as Template
- References:
- [EP-tech] Use as Template
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Use as Template
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Use as Template
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Re: Use as Template
- From: Adam Field <af05v@ecs.soton.ac.uk>
- [EP-tech] Use as Template
- Prev by Date: [EP-tech] Re: Use as Template
- Next by Date: [EP-tech] Re: Use as Template
- Previous by thread: [EP-tech] Re: Use as Template
- Next by thread: [EP-tech] Re: Use as Template
- Index(es):