EPrints Technical Mailing List Archive
Message: #01281
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] help on plugin
- To: "EPrints.org Technical List" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] help on plugin
- From: Yuri <yurj@alfa.it>
- Date: Wed, 07 Nov 2012 17:12:53 +0100
Hi! Is there a way in new() on a plugin to get the current repository? I'm tryng with: sub new { my( $class, %params ) = @_; my $self = $class->SUPER::new(%params); # $self->{priv} = # no specific priv - one per action #my $session = EPrints::Session->new(); #my $repo_name = $session->get_repository->get_id;my $repo_name = $self->{processor}->{eprint}->{session}->get_repository->get_id;
also $self->{session}->get_repository->get_id; does not work... even an hack is ok for me. Thanks!
- Prev by Date: [EP-tech] Re: Searching by creators' emails
- Next by Date: [EP-tech] Re: help on plugin
- Previous by thread: [EP-tech] RSS2 confused published date
- Next by thread: [EP-tech] Re: help on plugin
- Index(es):