[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Re: epc:if tests for the existence of values in a compound field
- Subject: [EP-tech] Re: epc:if tests for the existence of values in a compound field
- From: af05v at ecs.soton.ac.uk (Field A.N.)
- Date: Wed, 25 Feb 2015 09:37:27 +0000
- In-reply-to: <54ED9534.email@example.com>
- References: <54ED9534.firstname.lastname@example.org>
Can you be more explicit about the way in which it doesn't work?
Have you considered the EPrints Control switch statement:
...also, are you sure the field isn't called 'creators'?
Business Relationship Manager and Community Lead
On 25 Feb 2015, at 09:26, Ian Stuart wrote:
> I'm writing a citation schema, and when it comes to compound fields, I
> don't want to have a table with just the column headings.
> I tried
> <epc:if test="creator"><epc:print expr="creator" /></epc:if>
> <epc:if test="!(creator)"><epc:phrase ref="eprint_field_nodata"
> ... but this doesn't seem to work
> (and yes, I've restarted the server..... but that shouldn't make a
> difference for a generate-static)
> I'm getting no errors from the xml file, and if I add in a sneaky <hr />
> them that appears in the re-built page.
> How do I avoid rendering these empty tables?
> Ian Stuart.
> Developer: ORI, RJ-Broker, and OpenDepot.org
> Bibliographics and Multimedia Service Delivery team,
> The University of Edinburgh.
> This email was sent via the University of Edinburgh.
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
> *** 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/