[EP-tech] Re: Local version of screen plugin (v.3.3.10)
Jose Martin
J.Martin at ulcc.ac.uk
Fri Feb 8 14:17:08 GMT 2013
Maybe you need to add
use EPrints::Plugin::Screen::Workflow;
under the package line?
Cheers,
Jose
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of John Salter
Sent: 08 February 2013 13:59
To: 'eprints-tech at ecs.soton.ac.uk'
Subject: [EP-tech] Re: Local version of screen plugin (v.3.3.10)
> I was following thiese instructions:
Which it appears I wrote... Don't remember doing that (sorry if they've led anyone astray). I'm guessing they're not quite right (but possibly worked in 3.1).
Anyone care to suggest the best way to do this (or shall I scrap that wiki page)?
Cheers,
John
From: John Salter
Sent: 08 February 2013 13:47
To: 'eprints-tech at ecs.soton.ac.uk'
Subject: RE: [EP-tech] Re: Local version of screen plugin (v.3.3.10)
I was following thiese instructions:
http://wiki.eprints.org/w/Instructions_for_local_plugins
Are they correct?
From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Sebastien Francois
Sent: 08 February 2013 13:40
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Re: Local version of screen plugin (v.3.3.10)
Could your @ISA confuse PERL?
Seb.
On 08/02/13 10:54, John Salter wrote:
I'm trying to render the workflow stages as a UL, and I'm trying to do it the *right* way (as a local plugin).
This is what I have:
~/archives/ARCHIVEID/cfg/plugins/EPrints/Plugin/Screen/LocalWorkflow.pm
######################################
package EPrints::Plugin::Screen::LocalWorkflow;
@ISA = ( 'EPrints::Plugin::Screen::Workflow' );
use strict;
sub render_blister
{
#Stuff, returning a div with ul/li instead of a table
}
1;
######################################
~/archives/ARCHIVEID/cfg/cfg.d/plugins.pl
$c->{plugin_alias_map}->{"Screen::Workflow"} = "Screen::LocalWorkflow";
$c->{plugin_alias_map}->{"Screen::LocalWorkflow"} = undef;
This isn't working - but I *think* it should be OK.
What am I missing?
Cheers,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20130208/a567ca62/attachment.html
More information about the Eprints-tech
mailing list