BerkeleyLibrary / marc

MARC utilities for the UC Berkeley Library
MIT License
0 stars 0 forks source link

Behavior of `MARC::Record` `data_fields`, `each_data_field`, and `data_fields_by_tag` extension methods is counterintuitive #1

Open dmolesUC opened 2 years ago

dmolesUC commented 2 years ago

data_fields_by_tag

Expected

Actual

data_fields / each_data_field

Actual

dmolesUC commented 2 years ago

See BerkeleyLibrary/tind #4 for an example of the kind of problem this can cause.

dmolesUC commented 2 years ago

Note, though, that fixing this could be a breaking change for users that rely on the order.