EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #01928
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] about references and abstract field
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] about references and abstract field
- From: "Zehra TASKIN" <zehrayanar@gmail.com>
- Date: Wed, 8 May 2013 11:00:08 +0300
Dear all, I am trying to add enter to abstract and references fields on eprints, however, it is not working. I followed the path on that link; http://permalink.gmane.org/gmane.comp.web.eprints.devel/2481 I added “render_abstract” to the eprint_field.pl’s abstract line, then added below code to the eprints>perl_lib>eprint>extras.pm sub render_abstract { my( $session , $field , $value ) = @ _; my $frag = $session->make_doc_fragment; foreach my $para ( split /\n[\r\s]*\n/, $value ) { my $p = $session->make_element( "p", class=>"abstract" ); $p->appendChild( $session->make_text( $para ) ); $frag->appendChild( $p ); } return $frag; } The repository can not open when i change the codes. generate_views also didn’t work. Please could you help me about this issue. How can i add the line to abstract and references field. With best regards. ZT |
- Prev by Date: [EP-tech] Re: IRStats filter for fulltext
- Next by Date: [EP-tech] Controlled access to data in EPrints
- Previous by thread: [EP-tech] IRUS-UK webinar for repository technical managers, Wednesday 22nd May, 2pm
- Next by thread: [EP-tech] Controlled access to data in EPrints
- Index(es):