[EP-tech] Re: citation modification
Field A.N.
af05v at ecs.soton.ac.uk
Mon Oct 12 10:58:40 BST 2015
To debug, write a script that looks something like this:
#!/usr/bin/perl -I/opt/eprints3/perl_lib
use strict;
use warnings;
use EPrints;
my $ep = EPrints->new;
my $repo = $ep->repository('archiveid');
my $eprint = $repo->dataset('eprint')->dataobj(1234); #where 1234 is a valid eprint id for an exiting record with creators set
print STDERR EPrints::Utils::tree_to_utf8($eprint->render_value('creators'));
Note that in your code, all debug code should output to STDERR.
--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services
+44 (0)23 8059 8814
On 12 Oct 2015, at 10:50, Thomas Lauke wrote:
>> I'm sorry, I can't find an attached file.
> my fault, sorry :(
>
>> how to debug my implementation (using the attached file) following your advice?
> <eprint_render_single.pl>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/
More information about the Eprints-tech
mailing list