EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02802
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Rendering multilingual fields
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Rendering multilingual fields
- From: Lourdes Calvo Montero <lcalvom@pas.ucm.es>
- Date: Thu, 20 Mar 2014 12:31:28 +0100
Hi all,
I have a multilingual field (abstract_other) :
{ name => 'abstract_other', type => 'multilang', multiple=>1, fields => [{sub_name => 'abstract2', type => 'longtext', input_rows=>10 , render_value =>'render_paras'},], },
In one eprint it has been populated with two instances (english and french),
but when I try to render it with this code:
if( $eprint->is_set( "abstract_other" ) ) { my $div = $session->make_element( "div", class=>"ep_block" ); $page->appendChild( $div ); my $h2 = $session->make_element( "h2" ); $h2->appendChild( $session->html_phrase( "eprint_fieldname_abstract_other" ) ); $div->appendChild( $h2 ); $p = $session->make_element( "p", style=>"text-align: left; margin: 1em auto 0em auto" ); $p->appendChild( $eprint->render_value( "abstract_other" ) ); $div->appendChild( $p ); } else { $page->appendChild( $session->make_element( 'br' ) ); }
I can get only the first one (english).
How can I render the other instances??
Cheers,
Lourdes
Universidad Complutense de Madrid
Spain
- Prev by Date: [EP-tech] Problems with configuration changes [NIC]
- Next by Date: [EP-tech] Re: Problems with configuration changes [NIC]
- Previous by thread: [EP-tech] Problems with configuration changes [NIC]
- Next by thread: [EP-tech] To conect it to the mail server.
- Index(es):