EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04472
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: DataObj->render_citation options
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: DataObj->render_citation options
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- Date: Fri, 10 Jul 2015 10:15:26 +0000
Thanks Adam, kind of useful – I was trying to figure out if it was possible to pass a ‘nolink’ flag from a call to DataObj->render_citation($style, %opts) that will get picked up by Metafield->render_value($session,
$value, $alllangs, $nolink, $object) but I keep getting lost in the twisty rabbit warren between the functions! From: Adam Field [mailto:af05v@ecs.soton.ac.uk]
The actual rendering happens here: But is is a confusing, twisty route. A call to render_citation should look like this: $eprint->render_citation('citation_name', %params); ...where params is a hash that looks like this: ( thing1 => DOM_OBJECT, thing2 => DOM_OBJECT, flags => {
flag1 => 1,
flag2 => 0,
flag3 => 1, }, ) Params are things that are passed through that may be used in the citation. Generally speaking, these are dom objects to be put into the citation or flags to base conditionals upon. Does that help? -- I am currently not working in the UK. Due to timezone differences (GMT -9) email responses may take longer. On 9 Jul 2015, at 20:21, Alan.Stiles <alan.stiles@open.ac.uk> wrote:
|
- Follow-Ups:
- [EP-tech] Re: DataObj->render_citation options
- From: Adam Field <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: DataObj->render_citation options
- References:
- [EP-tech] DataObj->render_citation options
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] Re: DataObj->render_citation options
- From: Adam Field <af05v@ecs.soton.ac.uk>
- [EP-tech] DataObj->render_citation options
- Prev by Date: [EP-tech] Re: DataObj->render_citation options
- Next by Date: [EP-tech] Problems having the secure.xml template loaded OR How to get a different $config{base_url} for secure connections?
- Previous by thread: [EP-tech] Re: DataObj->render_citation options
- Next by thread: [EP-tech] Re: DataObj->render_citation options
- Index(es):