Modify NCIP::ILS::Evergreen->find_location_failover.
[working/NCIPServer.git] / lib / NCIP / ILS / Evergreen.pm
index 63e83f5..b19ceee 100644 (file)
@@ -2801,15 +2801,11 @@ sub find_location_failover {
     }
     my $org_unit;
     if ($location) {
-        # Because Auto-Graphics. (This should be configured somehow.)
-        $location =~ s/^[^-]+-//;
         $org_unit = $self->retrieve_org_unit_by_shortname($location);
     }
     if ($request && $message && !$org_unit) {
         $location = $request->{$message}->{InitiationHeader}->{ToAgencyId}->{AgencyId};
         if ($location) {
-            # Because Auto-Graphics. (This should be configured somehow.)
-            $location =~ s/^[^-]+-//;
             $org_unit = $self->retrieve_org_unit_by_shortname($location);
         }
     }