hectorcorrea / marcli

MARC command line parser
MIT License
117 stars 8 forks source link

Tag 260 / Subfield a & b conflated? #10

Closed wvstolzing closed 1 year ago

wvstolzing commented 2 years ago

marccli appears to extract place information only from the MARC record pertaining to the publisher; the publisher's name gets omitted.

I believe the line responsible is this: https://github.com/hectorcorrea/marcli/blob/59f1aa9466008ce0518aa5d43f79506b4023f629/cmd/marcli/solr.go#L56

From tag 260, the function only extracts subfield a, whereas it should get b (& c) as well; because in their fathomless wisdom, the designers of the MARC system have put place info in 'a', & publisher identity in 'b'. From the 'Understanding MARC' book on the LOC website:

260 Publication, distribution, etc. (Imprint) (R)

Indicator 1: Sequence of publishing statements

Indicator 2: Undefined

Subfields used most often:

$a -- Place of publication, distribution, etc. (R)
$b -- Name of publisher, distributor, etc. (R)
$c -- Date of publication, distribution, etc. (R)

 _Example:_    260 ## $a New York :
                    $b Chelsea House,
                    $c 1986.
hectorcorrea commented 2 years ago

Thanks for the detailed bug report @wvstolzing. The Solr format option is something that is not complete and I have only used it to produce the sample 'books.json` that I use on the Solr for newbies workshop.

I wasn't expecting others to use it, since it is very opinionated on the field names, but if it is indeed useful to others I can implement the changes that you are suggesting.