EPrints Technical Mailing List Archive

Message: #05736


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Edit the citation page range


Hi Mike,

The pagerange field is of type ‘pagerange’.

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

 

It uses the phrases

lib/metafield/pagerange:from_page

lib/metafield/pagerange:same_page

lib/metafield/pagerange:range

or

lib/metafield/pagerange:other

 

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.

 

Cheers,

John

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Michael Street
Sent: 26 May 2016 15:46
To: eprints-tech@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.