Shortening forenames does not use betweenInitialsDelim option

Stefan Freudenberg - April 23, 2009 - 15:26
Project:Bibliography Module
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The function theme_biblio_format_authors in biblio_theme.inc does not respect the option betweenInitialsDelim when shortening author's forenames (can be more than one).

My attached patch fixes this and also replaces dashes by the delimiter character. I am using Vancouver style i.e. initials are concatenated without a delimiter. I am not sure if it makes sense to replace the dashes in other cases.

AttachmentSize
format_authors.patch849 bytes

#1

rjerome - April 23, 2009 - 16:20

Could you give me an example of an forename you where having trouble with?

#2

Stefan Freudenberg - April 23, 2009 - 21:25

All persons with more than one forename produce the problem like "Ko, Han Seok". It was displayed as Ko H S instead of Ko HS using Vancouver style. As for the dashes: Lu, Xiao-Hong is displayed as Lu XH in PubMed citations but Lu X-H with Biblio, Vancouver style.

#3

rjerome - April 24, 2009 - 00:31
Status:active» fixed

Ok, I've committed it.

#4

System Message - May 8, 2009 - 00:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.