EPrints Technical Mailing List Archive

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

Message: #04906


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

[EP-tech] Re: citation modification


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/