X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=fingerprinter;h=06f62f7c94ded84974ddc965582e9fb3ced3d903;hp=246252d1bd4c14a10eae3402489a854ecad57889;hb=f26caf3c919e7c65b48be7f268bee6ade13b2eac;hpb=1e9fab6004a4d35d41314ce4cf059e5427b2b4b6 diff --git a/fingerprinter b/fingerprinter index 246252d..06f62f7 100755 --- a/fingerprinter +++ b/fingerprinter @@ -80,6 +80,15 @@ sub populate_marc { $marc{date1} = substr($my_008,7,4) if ($my_008); $marc{date2} = substr($my_008,11,4) if ($my_008); # UNUSED + unless ($marc{date1} and $marc{date1} =~ /\d{4}/) { + my $my_260 = $record->field('260'); + my $date1 = $my_260->subfield('c') if $my_260; + if (defined $date1 and $date1 =~ /\d{4}/) { + $marc{date1} = $date1; + print XF ">> using 260c as date1 on $id\n"; + } + } + # item_form if ( $marc{record_type} =~ /[gkroef]/ ) { # MAP, VIS $marc{item_form} = substr($my_008,29,1) if ($my_008);