EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04931
< 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: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: citation modification
- From: Gilles Fournié <gilles.fournie@cirad.fr>
- Date: Tue, 13 Oct 2015 18:20:26 +0200
Hi,
At http://wiki.eprints.org/w/API:EPrints/MetaField#Rendering,
the parameters order seems to be different than yours:
$repo first, then $field...
Le 13 octobre 2015 18:03:46 CEST, Thomas Lauke <th.lauke@arcor.de> a écrit :
Hi Adam,Ah, it's a compound multiple field.as usual ;)You need to render creators_name, not creators.After integration of your above mentioned modifications, I got the following output:
Also, try putting the render_single_value in the name subfield definition
Let us know if it works.
family:Foote
given:H.W.
That's it:Foote+ H.W.
Can't locate object method "xml" via package "EPrints::MetaField::Name" at (eval 63) line 13.
... thus the code stops at the first creator.
The rendering routine looks like
$c->{render_name_with_initials} = sub
{
my( $field, $repo, $value ) = @_;
my $family = $value->{family};
my $given = $value->{given};
print STDERR "family:", $family, "\n";
print STDERR "given:", $given, "\n";
my $name = $family . '+ ' . $given;
print STDERR "That's it:", $name, "\n";
return $repo->xml->create_text_node( $name );
}
Which object method should be used instead?
Regards
Thomas
*** 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/
--
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
- References:
- [EP-tech] Re: citation modification
- From: Thomas Lauke <th.lauke@arcor.de>
- [EP-tech] Re: citation modification
- Prev by Date: [EP-tech] Re: citation modification
- Next by Date: [EP-tech] [accomplished] citation modification
- Previous by thread: [EP-tech] Re: citation modification
- Next by thread: [EP-tech] metadata elements in each eprint page
- Index(es):