EPrints Technical Mailing List Archive
Message: #06358
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Antwort: a question about: render_data_element
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] Antwort: a question about: render_data_element
- From: Alfredo Cosco <alfredo.cosco@gmail.com>
- Date: Tue, 21 Mar 2017 10:33:38 +0100
It is the indent width in characters.
See perl_lib/EPrints/Repository.pm
=pod
=begin InternalDoc
=item $xhtml = $repository->render_data_element( $indent, $elementname, $value, [%opts] )
This is used to help render neat XML data. It returns a fragment
containing an element of name $elementname containing the value
$value, the element is indented by $indent spaces.
The %opts describe any extra attributes for the element
eg.
$repository->render_data_element( 4, "foo", "bar", class=>"fred" )
would return a XML DOM object describing:
<foo class="fred">bar</foo>
=end InternalDoc
=cut
############################################################ ##########
sub render_data_element
{
my( $self, $indent, $elementname, $value, %opts ) = @_;
return $self->xhtml->data_element( $elementname, $value,
indent => $indent,
%opts );
}
Cheers,
Martin
--
Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Alfredo Cosco ---21/03/2017 10:10:34---Hi All, i find a function like this:
Von: Alfredo Cosco <alfredo.cosco@gmail.com>
An: eprints-tech@ecs.soton.ac.uk
Datum: 21/03/2017 10:10
Betreff: [EP-tech] a question about: render_data_element
Gesendet von: eprints-tech-bounces@ecs.soton.ac.uk
Alfredo*** Options: http://mailman.ecs.soton.ac.
Hi All,
i find a function like this:
render_data_element( int, value, value );
eg. $dc->appendChild( $plugin->{session}->render_data_element( 8, "dc:".$_->[0], $_->[1] ) );
What does it mean the first argument, the int number?
I can't find documentation about it
Thanks
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/
*** 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/
- References:
- [EP-tech] a question about: render_data_element
- From: Alfredo Cosco <alfredo.cosco@gmail.com>
- [EP-tech] Antwort: a question about: render_data_element
- From: martin.braendle@id.uzh.ch
- [EP-tech] a question about: render_data_element
- Prev by Date: [EP-tech] Antwort: a question about: render_data_element
- Next by Date: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- Previous by thread: [EP-tech] Antwort: a question about: render_data_element
- Next by thread: [EP-tech] [Eprints 3.3.4] Plugin doesn't work on OAI-PMH push: OpenAire upgrade attempt to 3.0 compliance
- Index(es):