EPrints Technical Mailing List Archive

Message: #05743


< 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,


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


--Mike



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
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@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.

-- 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/