LibreCat / Catmandu-MARC

Catmandu modules for working with MARC data
https://metacpan.org/release/Catmandu-MARC
Other
8 stars 10 forks source link

MARC record structure #35

Closed cKlee closed 8 years ago

cKlee commented 8 years ago

I'm just wondering. Why is an offset of 5 here. Does '_' indicate an empty subfield?

phochste commented 8 years ago

This is to provide backwards compatibility. In the past every due to bug non-controll fields also contained an underscore field:

[ '245' , ' ' , ' ' , '_' , '' , 'a' , 'test ]

vs:

[ '245' , ' ' , ' ' , 'a' , 'test ]

With these lines both will lead to the same result. The '_' subfield is ignored for non-controll fields

cKlee commented 8 years ago

Thanks!