EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05955
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Quick export plugin question
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] Quick export plugin question
- From: Thomas Lauke <th.lauke@arcor.de>
- Date: Thu, 22 Sep 2016 10:31:48 +0200 (CEST)
Good morning Robin,
> $data->{B} = $dataobj->get_value( "divisions" ) if $dataobj->exists_and_set( "divisions" );
following ~/Eprints/perl_lib/EPrints/DataObj/Subject.pm what about
if( $dataobj->exists_and_set( "subjects" ) )
{
my $subjectid;
foreach $subjectid ( @{$dataobj->get_value( "subjects" )} )
{
my $subject = EPrints::DataObj::Subject->new( $plugin->{session}, $subjectid );
# avoid problems with bad subjects
next unless( defined $subject );
my $path = $subject->render_with_path( $plugin->{session}, $subject->top ) ;
my $name = $subject->render_description( ) ;
print STDERR 'ID, path, name', $subject, $path, $name, "\n";
}
}
?
Hth
Thomas
- Prev by Date: [EP-tech] When will be http://demoprints.eprints.org/ online again?
- Next by Date: Re: [EP-tech] Quick export plugin question
- Previous by thread: Re: [EP-tech] Quick export plugin question
- Next by thread: Re: [EP-tech] Quick export plugin question
- Index(es):
