[EP-tech] Edit the citation page range

Michael Street mstreet at yorku.ca
Fri May 27 14:42:14 BST 2016


Thank you both for your answers, I'll poke around and see if I can get 
it to work as I need it to.


Hi Mike,

The pagerange field is of type ‘pagerange’.

The logic is within EPrints::MetaField::Pagerange rather than a citation 

It uses the phrases






If there’s a bug with how it works, please log it in 
https://github.com/eprints/eprints/issues (and suggest a fix :o)

If you’re looking to change it to comply with local policies (i.e. not a 
bug in the core EPrints), you could add a custom render_value on the 
field definition.


On 5/26/2016 11:14 AM, Alan.Stiles wrote:
> Hi Michael,
> I think the logic is here 
> https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/MetaField/Pagerange.pm#L33 
> for fields of type ‘pagerange’.
> It refers to a variety of phrases in 
> https://github.com/eprints/eprints/blob/3.3/lib/lang/en/phrases/system.xml#L1471 
> to construct the phrase.
> Hope that helps,
> Alan
> *From:*eprints-tech-bounces at ecs.soton.ac.uk 
> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] *On Behalf Of *Michael 
> Street
> *Sent:* 26 May 2016 15:46
> *To:* eprints-tech at ecs.soton.ac.uk
> *Subject:* [EP-tech] Edit the citation page range
> Hi,
> I'd like to edit the citation to fix the page references when it uses 
> either 'p' or 'pp.'.  For some reason if we put in certain ranges, 
> then it doesn't show the 'p' at all.
> Can someone point me to the file that contains the logic as to where 
> it decides whether to use 'p.' or 'pp.'?  I'm unable to find it in the 
> code.
> Thanks,
> Mike.
> -- The Open University is incorporated by Royal Charter (RC 000391), 
> an exempt charity in England & Wales and a charity registered in 
> Scotland (SC 038302). The Open University is authorised and regulated 
> by the Financial Conduct Authority.
> *** 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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160527/f475dae2/attachment.html 

More information about the Eprints-tech mailing list