Bryan Baldus > MARC-Errorchecks-1.17a > bin/010cleanupscript.pl

Download:
MARC-Errorchecks-1.17a.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: MARC-Errorchecks-1.18

NAME

010 cleanup -- Fixes spacing problems in 010 subfield a.

DESCRIPTION

This version will clean only subfield 'a' of 010 and skips records which have no 010 and those that have no 010 subfield 'a'

OUTLINE OF PROCESS

Get subfield 'a', remove non-digits. If result is exactly 8 digits, substr(result, 0, 2) >=70 or =00 or error. New field a = ' result ' If result is exactly 10 digits, substr(result, 0, 4) >=2001 and <= 2010 (will change as year changes) or error. New field a = ' result' Compare new field a with existing field a and report only those that differ.

TO DO

Think about whether subfield 'z' needs extra spaces removed.

Deal with non-digit characters in original 010a field. Currently these are simply reported and the record is skipped.

LICENSE ^

This code may be distributed under the same terms as Perl itself.

Please note that this code is not a product of or supported by the employers of the various contributors to the code.

AUTHOR ^

Bryan Baldus eija [at] inwave [dot] com

Copyright (c) 2003-2004

syntax highlighting:
http://search.cpan.org/~eijabb/MARC-Errorchecks-1.17a/bin/010cleanupscript.pl
search.cpan.org
crawl=CC-MAIN-2014-15
12710
application/http; msgtype=response
sha1:TZYAC7EV75MJSBX5OHVZMRFRZWRPMEGN
<urn:uuid:d65aa299-dc07-4ebb-bd89-24f5c306646e>
2014-04-17T04:54:30Z
199.15.176.161
sha1:NR2F7XS44RIWIFU4XY77EW4RU3DVW7WL
<urn:uuid:65e02258-775e-4d52-91d3-861a1585083a>
http://search.cpan.org/~eijabb/MARC-Errorchecks-1.17a/bin/010cleanupscript.pl
response
<urn:uuid:39fec141-b91b-445c-94a0-863b53a0b9bf>
robots: classic
hostname: ip-10-147-4-33.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-15
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for April 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf