EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #01422
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Abstract shows html tags
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Abstract shows html tags
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Fri, 21 Dec 2012 10:54:44 +0000
Hi,
For (1), rendering a field that may contain HTML, you probably want to define a 'render_value' for the field in ~/archives/[ARCHIVEID]/cfg/cfg.d/eprint_fields.pl.
The 'suggestions' field has an example. It uses a function defined in ~/perl_lib/EPrints/Extras.pm.
You could try updating the 'abstract' definition to:
{
'name' => 'abstract',
'type' => 'longtext',
'input_rows' => 10,
'render_value' => 'EPrints::Extras::render_xhtml_field',
},
You can test the change by and regenerate an abstract by running ~/bin/generate_abstracts ARCHIVEID eprintid
- and remember to restart Apache after making the edits to files in cfg/cfg.d.
For (2), look in ~/archives/[ARCHIVEID]/cfg/cfg.d/eprint_render.pl
You can comment out lines for the fields you don't need (you may also want to remove the references to the fields in the workflow - so people aren't entering data when it's not going to be shown).
Cheers,
John
-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of sumesh@ias.ernet.in
Sent: 21 December 2012 06:59
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Abstract shows html tags
Deal All,
Installation of eprints(3.1.3) in new server has some problems.
1. Abstract section is showing the html tags , which is not supposed to do
so.
2. I need to avoid display of 3 fields from the page.
A screenshot is attached herewith for clarity.
Anyone please provide the necessary changes to be made to solve these.
--
Regards
Sumesh.KS
- References:
- [EP-tech] Abstract shows html tags
- From: sumesh@ias.ernet.in
- [EP-tech] Abstract shows html tags
- Prev by Date: [EP-tech] Abstract shows html tags
- Next by Date: [EP-tech] Order of subjects in view
- Previous by thread: [EP-tech] Abstract shows html tags
- Next by thread: [EP-tech] Order of subjects in view
- Index(es):
