EPrints Technical Mailing List Archive
Message: #04320
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Rendering a metafield - use different format in Listing and Abstract page
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Rendering a metafield - use different format in Listing and Abstract page
- From: Adam Field <af05v@ecs.soton.ac.uk>
- Date: Wed, 17 Jun 2015 19:42:17 +0100
I've solved this problem by using a virtual field with a custom renderer. The virtual field's render method reads the value from the actual field you're interested in and renders it differently. The problem with virtual fields is that I think they're hard to test for in epxml (and possibly also with is_set). You can see an example from the tweepository package here: https://github.com/gobfrey/tweepository/blob/master/cfg/cfg.d/z_tweepository_libs.pl#L314 (field definition) https://github.com/gobfrey/tweepository/blob/master/cfg/cfg.d/z_tweepository_libs.pl#L1710 (render method) -- Adam Field Business Relationship Manager and Community Lead EPrints Services
|
- References:
- [EP-tech] Rendering a metafield - use different format in Listing and Abstract page
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Rendering a metafield - use different format in Listing and Abstract page
- Prev by Date: [EP-tech] Item Type - magazines and newspapers
- Next by Date: [EP-tech] Eprints Indexer
- Previous by thread: [EP-tech] Rendering a metafield - use different format in Listing and Abstract page
- Next by thread: [EP-tech] Re: Rendering a metafield - use different format in Listing and Abstract page
- Index(es):