Changeset 10977 for trunk/gsdl


Ignore:
Timestamp:
2005-12-09T10:14:24+13:00 (18 years ago)
Author:
kjdon
Message:

extended the match for author metadata - can now have Authors, and also e.g. pub.Authors,Author - in this case it will just look at the first metadata name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/sorttools.pm

    r10257 r10977  
    4949    # is this metadata likely to be a name?
    5050    my $function_name="format_string_name_$lang";
    51     if ($metaname =~ /^(?:\w+\.)?(?:Creator|Author|Editor)(?::.*)?$/
     51    if ($metaname =~ /^(?:\w+\.)?(?:Creators?|Authors?|Editors?)(?:[:,].*)?$/
    5252    && exists &$function_name) {
    5353    no strict 'refs';
     
    8484sub format_string_name_en {
    8585    my ($stringref) = @_;
    86 
    8786    $$stringref =~ tr/A-Z/a-z/;
    8887    $$stringref =~ s/&\S+;//g;
Note: See TracChangeset for help on using the changeset viewer.