Changeset 11932


Ignore:
Timestamp:
2006-06-19T14:26:42+12:00 (18 years ago)
Author:
mdewsnip
Message:

Place functions are now case-folded and some plurals are dealt with.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/perllib/plugins/CICPlug.pm

    r11927 r11932  
    558558
    559559        # Create place functions mapping
     560        $place_function = lc($place_function);
    560561        $place_function =~ s/\(.*\)//g;
    561562        $place_function =~ s/^\s*//;
    562563        $place_function =~ s/\s*$//;
     564        $place_function =~ s/classroom$/classrooms/;
     565        $place_function =~ s/department buildings$/department building/;
     566        $place_function =~ s/faculty office$/faculty offices/;
     567        $place_function =~ s/garden$/gardens/;
     568        $place_function =~ s/residence halls$/residence hall/;
    563569        next if ($place_function eq "");
    564570        push(@{$place_function_to_ids_mapping{$place_function}}, $place_doc_obj->get_OID());
Note: See TracChangeset for help on using the changeset viewer.