Changeset 618


Ignore:
Timestamp:
1999-09-22T10:11:35+12:00 (25 years ago)
Author:
sjboddie
Message:

removed a couple of instances where =~ /\w/ was used to test for an empty
string. this doesn't work for chinese as most characters don't match \w

Location:
trunk/gsdl/perllib/classify
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/AZList.pm

    r537 r618  
    7676    # if this document doesn't contain the metadata element we're
    7777    # sorting by we won't include it in this classification
    78     if (defined $metavalue && $metavalue =~ /\w/) {
     78    if (defined $metavalue && $metavalue ne "") {
    7979    if ($self->{'metaname'} eq 'Creator') {
    8080        &sorttools::format_string_name_english (\$metavalue);
  • trunk/gsdl/perllib/classify/AZSectionList.pm

    r537 r618  
    8989    # if this section doesn't contain the metadata element we're
    9090    # sorting by we won't include it in this classification
    91     if (defined $metavalue && $metavalue =~ /\w/) {
     91    if (defined $metavalue && $metavalue ne "") {
    9292    if ($self->{'metaname'} eq 'Creator') {
    9393        &sorttools::format_string_name_english (\$metavalue);
Note: See TracChangeset for help on using the changeset viewer.