EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #02293


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

[EP-tech] Re: making SWORD 2 importers visible


Interestingly, if I copy Compressed.pm from perl_lib across to lib, and edit the name & accepts fields, it *does* appear.

**VERY** confused!!

On 11/10/13 12:27, Ian Stuart wrote:
I'm trying to write a SWORD 2 importer for EP 3.3

The [trimmed] code reads:

----- start ---------
package EPrints::Plugin::Import::RJ_Broker_3;

use strict;

use EPrints::Plugin::Import::Archive;
our @ISA = qw/ EPrints::Plugin::Import::Archive /;

sub new
{
     my( $class, %params ) = @_;

     my $self = $class->SUPER::new( %params );
warn "Foo";

     # The name to display
     $self->{name} = "SWORD 2 importer for an RJ_Broker package";

     # Who can see it, and whether we show it
     $self->{visible} = "all";
     $self->{advertise} = 1;

     # What the importer produces
     $self->{produce} = [qw( dataobj/eprint )];

     # What mime-types can trigger this importer
     $self->{accept} = [qw( application/vnd.rjbroker.1 ) ];

     # what actions to take with the data supplied
     $self->{actions} = [qw( metadata media )];

     return $self;
}
1;
----- end ---------


--

Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.

http://edina.ac.uk/

This email was sent via the University of Edinburgh.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.