Recently on this list it was discussed whether letters as indicators should be allowed 
or not.
As I understood it, it was concluded that Field.pm and USMARC.pm should be fixed to 
allow for this.

Good, our national dialect of the MARC format includes letters as indicators at some 
positions.

I have another suggestion related to indicators.

Currently, if USMARC.pm considers any indicator is to be illegal, both indicators will 
be changed into blanks!
I would prefer only the assumed faulty indicator to be altered.

It could be achieved like this:

my ($ind1,$ind2) = unpack("a1 a1", $indicators);
  for my $ind ((\$ind1,\$ind2)) {
    if ( $$ind !~ /^[0-9a-zA-Z ]$/ ) {
      $marc->_warn( "Invalid indicator \"$$ind\" forced to blanks $location for tag 
$tagno\n" );
      $$ind = " ";
    }
}

(Yes, I went ahead of things and also put the allowence of letters in...)

Leif
======================================
Leif Andersson, Systems Librarian
Stockholm University Library
SE-106 91 Stockholm
SWEDEN
Phone : +46 8 162769  
Mobile: +46 70 6904281

Reply via email to