[librecat-dev] statictic subfield report

Christoph Krempe krempe at ub.fu-berlin.de
Tue Nov 12 10:13:27 CET 2019


Hi Johann,

Am 12.11.19 um 09:55 schrieb Rolschewski, Johann:
> Hi Christoph,
> 
>> before I start to code by myself: Is the a way to create a statistic of the use of
>> specific assignment of MARC subfields in Catmandu?
>>
>> For example, I want to now
>>
>> the count of value "ddc" in subfield $2 in category 084 or how much category
>> 600, subfield 49, do not have the value "N"
> 
> you can generate (sub)field-level statistics with:
> 
> $ marcstats.pl data.mrc
> # or
> $ catmandu convert MARC to Breaker --handler marc < data.mrc > data.mrc.breaker
> $ catmandu breaker data.mrc.breaker
> # or
> $ catmandu breaker --as XLSX data.mrc.breaker > data.xlsx
> 
> I'm not aware of any generic solution for generating statistics for specific (sub)field values. I would create a fix for these (sub)fields and then use something like
> 
> $ cut | sort | uniq -c

I will write a fix for that task, thank you!

> 
> for calculating the numbers.
> 
> Best
> 
> Johann
> 


-- 
Mit freundlichen Grüßen

Ch. Krempe

__________________________________________________

Christoph Krempe
Abt. Datenverarbeitung
Universitätsbibliothek der FU Berlin
Garystraße 39
D-14195 Berlin

Tel.: 030 83854583
Fax: 030 838454583

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5059 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20191112/00db73fb/attachment.p7s>


More information about the librecat-dev mailing list