EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07509
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Phrases, Pins and If
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, "James Kerwin" <jkerwin2101@gmail.com>, Alan Stiles <alan.stiles@open.ac.uk>
- Subject: Re: [EP-tech] Phrases, Pins and If
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Thu, 4 Oct 2018 10:43:58 +0000
Hi James, > emboldened with epscript / citation file You may be able to do what you need using a citation style instead. You could copy e.g. the document/default.xml citation file to document/email_embargo_details.xml In this file you could test whether values are set - and create the statement regarding the embargo details you need. In your perl, you can then set the 'emreason' to $emreason = $document->render_citation( "email_embargo_details" ); and $mail = $repo->html_phrase( "eprint_thesis_notify_mail", emreason => $emreason ); #include other pins too! Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of James Kerwin via Eprints-tech Ahhh I see! It's such a relief to know that what I can't do... can't be done that way. I was emboldened with epscript when I was altering a citation file last week so thought I would push it with phrases. Alan, these phrases are for an email that gets generated based on user fields that may be either empty or populated (e.g. an embargo reason may be provided, or it won't). I was attempting to test for emreason being eual to '' (single quotes)
so that might be why they look unbalanced. Anyway, thank you both for helping and tolerating my silly questions. Thanks, James On Thu, Oct 4, 2018 at 10:45 AM Alan.Stiles <alan.stiles@open.ac.uk> wrote:
|
- Follow-Ups:
- Re: [EP-tech] Phrases, Pins and If
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Phrases, Pins and If
- References:
- [EP-tech] Phrases, Pins and If
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Phrases, Pins and If
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Re: [EP-tech] Phrases, Pins and If
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Phrases, Pins and If
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Phrases, Pins and If
- Prev by Date: Re: [EP-tech] Phrases, Pins and If
- Next by Date: [EP-tech] Origin of <pin>
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):