EPrints Technical Mailing List Archive
Message: #03970
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] epc:if tests for the existence of values in a compound field
- To: eprints <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] epc:if tests for the existence of values in a compound field
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- Date: Wed, 25 Feb 2015 09:26:12 +0000
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" /></epc:if>
... 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, EDINA, The University of Edinburgh. http://edina.ac.uk/ This email was sent via the University of Edinburgh. The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
- Follow-Ups:
- [EP-tech] Re: epc:if tests for the existence of values in a compound field
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: epc:if tests for the existence of values in a compound field
- Prev by Date: [EP-tech] Re: Populating Eprints Repository with data from an OAI Data Provider
- Next by Date: [EP-tech] Re: epc:if tests for the existence of values in a compound field
- Previous by thread: [EP-tech] [Minor packaging bug] Please add dependency on libconfig-general-perl to Debian package
- Next by thread: [EP-tech] Re: epc:if tests for the existence of values in a compound field
- Index(es):