EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02119
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Alphabetised Lists and Diacritics
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Alphabetised Lists and Diacritics
- From: Mark Gregson <mark.gregson@qut.edu.au>
- Date: Thu, 25 Jul 2013 13:54:13 +1000
Hi Yvonne You can use the make_single_value_orderkey 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@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Budden, Yvonne 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 (UKCoRR) Email: y.c.budden@warwick.ac.uk | Tel: +44 2476 5 75793 / +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 |
- References:
- [EP-tech] Alphabetised Lists and Diacritics
- From: "Budden, Yvonne" <Y.C.Budden@warwick.ac.uk>
- [EP-tech] Alphabetised Lists and Diacritics
- Prev by Date: [EP-tech] New Webinar@AIMS: " How to select appropriate encoding strategies for producing Linked Open Data (LOD)-enabled bibliographic data", 31st July
- Next by Date: [EP-tech] skipping certain documents for full text indexing
- Previous by thread: [EP-tech] Alphabetised Lists and Diacritics
- Next by thread: [EP-tech] value of eprint_id while importing records via XML
- Index(es):