Print

Print


 > It failed on a file containing all of LC Classification.  I need to
 > figure out why.
-- To reply to myself: Having looked at the "file" db pattern source 
[1], I see that the "file" maintainer introduced a typo into the 
matching pattern for correctly identifying Classification records. 
That's way it's failing for Class records.

Over and out,

Kevin

[1] ftp://ftp.astron.com/pub/file/


On 05/23/2012 03:48 PM, Ford, Kevin wrote:
>> Does it work for bulk files?
> -- It passed on a file containing 215 MARC Bibs and on a file containing 2,574 MARC Auth records.  Don't know if you consider these "bulk," but there is more than 1 record in each file (caveat: "file" stops after evaluating the first line, so of the 2,574 Auth records, the last 2,573 could be invalid).  It failed on a file containing all of LC Classification.  I need to figure out why.
>
>> Kevin, do you have examples of the output?
> -- I received "MARC21 Bibliography" and "MARC21 Authority" respectively.  In theory, if Leader 20-23 are not "4500" then "(non-conforming)" should be appended to the identification.  If requested, the mimetype - application/marc - should also be outputted.
>
> Rgds,
>
> Kevin
>
>
>
>
>> -----Original Message-----
>> From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of
>> Ross Singer
>> Sent: Wednesday, May 23, 2012 3:29 PM
>> To: [log in to unmask]
>> Subject: Re: [CODE4LIB] MARC Magic for file
>>
>> Wow, this is pretty cool.
>>
>> Kevin, do you have examples of the output?
>>
>> Does it work for bulk files?
>>
>> I mean, I could just try this on my Ubuntu machine, but it's all the
>> way downstairs...
>>
>> -Ross.
>>
>> On May 23, 2012, at 3:14 PM, Ford, Kevin wrote:
>>
>>> I finally had occasion today (read: remembered) to see if the *nix
>> "file" command would recognize a MARC record file.  I haven't tested
>> extensively, but it did identify the file as MARC21 Bibliographic
>> record.  It also correctly identified a MARC21 Authority Record.  I'm
>> running the most recent version of Ubuntu (12.04 - precise pangolin).
>>>
>>> I write because the inclusion of a "file" MARC21 specification rule
>> in the magic.db stems from a Code4lib exchange that started in March
>> 2011 [1] (it ends in April if you want to go crawling for the entire
>> thread).
>>>
>>> Rgds,
>>>
>>> Kevin
>>>
>>> [1]
>>> https://listserv.nd.edu/cgi-
>> bin/wa?A2=ind1103&L=CODE4LIB&T=0&F=&S=&P=1
>>> 12728
>>>
>>> --
>>> Kevin Ford
>>> Network Development and MARC Standards Office Library of Congress
>>> Washington, DC