Created
April 27, 2012 11:47
-
-
Save robertberry-zz/2508608 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
robert@robert-uol:~$ cat /usr/share/eprints3/archives/test/cfg/plugins/EPrints/Plugin/Export/Test/HelloExport.pm | |
package EPrints::Plugin::Export::Test::HelloExport; | |
@ISA = ('EPrints::Plugin::Export'); | |
use strict; | |
sub new | |
{ | |
my ($class, %opts) = @_; | |
my $self = $class->SUPER::new(%opts); | |
$self->{name} = 'Hello, World!'; | |
$self->{accept} = [ 'dataobj/eprint', 'list/eprint' ]; | |
$self->{visible} = 'all'; | |
$self->{suffix} = '.txt'; | |
$self->{mimetype} = 'text/plain; charset=utf-8'; | |
return $self; | |
} | |
sub output_dataobj | |
{ | |
my ($plugin, $dataobj) = @_; | |
$dataobj->get_value('title')."\n"; | |
} | |
1; $dataobj->get_value('title')."\n"; | |
} | |
1; | |
robert@robert-uol:~$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package EPrints::Plugin::Export::Test::HelloExport; | |
@ISA = ('EPrints::Plugin::Export'); | |
use strict; | |
sub new | |
{ | |
my ($class, %opts) = @_; | |
my $self = $class->SUPER::new(%opts); | |
$self->{name} = 'Hello, World!'; | |
$self->{accept} = [ 'dataobj/eprint', 'list/eprint' ]; | |
$self->{visible} = 'all'; | |
$self->{suffix} = '.txt'; | |
$self->{mimetype} = 'text/plain; charset=utf-8'; | |
return $self; | |
} | |
sub output_dataobj | |
{ | |
my ($plugin, $dataobj) = @_; | |
$dataobj->get_value('title')."\n"; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment