File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -218,21 +218,21 @@ def each_with_metadata_for_marc21
218218 each_raw_record_with_metadata_for_marc21
219219 . slice_when { |i , j | !same_record? ( i [ :marc ] , j [ :marc ] ) }
220220 . with_index do |records_to_combine , index |
221- if records_to_combine . length == 1
222- yield ( records_to_combine . first [ :marc ] , records_to_combine . first . except ( :marc ) )
223- else
224- bytes = records_to_combine . pluck ( :marc_bytes ) . join
221+ if records_to_combine . length == 1
222+ yield ( records_to_combine . first [ :marc ] , records_to_combine . first . except ( :marc ) )
223+ else
224+ bytes = records_to_combine . pluck ( :marc_bytes ) . join
225225
226- record = merge_records ( *records_to_combine . pluck ( :marc ) )
226+ record = merge_records ( *records_to_combine . pluck ( :marc ) )
227227
228- yield record , {
229- **records_to_combine . first . except ( :marc , :marc_bytes ) ,
230- index : index ,
231- bytecount : bytes . length ,
232- length : bytes . length ,
233- checksum : Digest ::MD5 . hexdigest ( bytes )
234- }
235- end
228+ yield record , {
229+ **records_to_combine . first . except ( :marc , :marc_bytes ) ,
230+ index : index ,
231+ bytecount : bytes . length ,
232+ length : bytes . length ,
233+ checksum : Digest ::MD5 . hexdigest ( bytes )
234+ }
235+ end
236236 end
237237 end
238238
You can’t perform that action at this time.
0 commit comments