[EP-tech] Re: Alphabetised Lists and Diacritics
Mark Gregson
mark.gregson at qut.edu.au
Thu Jul 25 04:54:13 BST 2013
Hi Yvonne
You can use the make_single_value_orderkey<http://wiki.eprints.org/w/Category:EPrints_Metadata_Fields#Ordering.2C_Indexing_and_Searching> setting to call a function that manipulates the diacritics to get the result you want. We use the following so that diacritics are ignored for ordering purposes:
use Text::Unidecode;
sub make_id_orderkey_single
{
my ( $self, $value, $session, $langid, $dataset ) = @_;
# convert to upper case ASCII
my $orderkey = uc( unidecode( $value ) );
# ignore apostrophes and hyphens
$orderkey =~ s/['-]//g;
return $orderkey
}
Cheers
Mark
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Budden, Yvonne
Sent: Wednesday, 3 July 2013 1:20 AM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Alphabetised Lists and Diacritics
Dear All,
I wondered if anyone had found a way round this little issue we have been having?
In any of our alphabetised lists on the system if there is a diacritic in the word being alphabetised it is automatically moved to the bottom of the alphabet rather than being integrated into the list. Please see the author Boris Gänsicke in our author views: http://wrap.warwick.ac.uk/view/author_id/index.G.html
Is there any way to change this so that the system treats the letters with diacritics as the same as the base letters?
Many thanks for any help people can provide,
Yvonne
Mrs Yvonne Budden,
Academic Support Manager (Research), University of Warwick
Chair: UK Council of Research Repositories<http://ukcorr.org/> (UKCoRR)
Email: y.c.budden at warwick.ac.uk<mailto:y.c.budden at warwick.ac.uk> | Tel: +44 2476 5 75793<tel:%2B44%202476%205%2075793> / +44 2476 1 51275 | University of Warwick Library, Gibbet Hill Road, Coventry. CV4 7AL
Research Support: http://www2.warwick.ac.uk/services/library/researchandteaching/
Open Access Support: http://go.warwick.ac.uk/lib-researchers/authors
Warwick Research Archive Portal (WRAP): http://wrap.warwick.ac.uk
Submit your paper to WRAP: http://go.warwick.ac.uk/irsubmit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20130725/7ba64a10/attachment.html
More information about the Eprints-tech
mailing list